Subject: bin/21018: change sendmail option in /bin/rmail to deliver mails immediately
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yugawa@itv6.org>
List: netbsd-bugs
Date: 04/05/2003 16:21:31
>Number: 21018
>Category: bin
>Synopsis: change sendmail option in /bin/rmail to deliver mails immediately
>Confidential: yes
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Apr 04 23:22:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Takahiro Yugawa
>Release: NetBSD 1.6
>Organization:
>Environment:
System: NetBSD garapi.itv6.org 1.6 NetBSD 1.6 (GARAPI) #1: Thu Dec 5 10:06:59 JST 2002 jasmin@garapi.itv6.org:/usr/src/sys/arch/i386/compile/GARAPI i386
Architecture: i386
Machine: i386
>Description:
current version of /bin/rmail specifies "-oqd" option to invoke
sendmail, so mails sent via uucp won't be delivered until next
queue processing will occur.
>How-To-Repeat:
/bin/rmail [user]
>Fix:
apply a patch below to /usr/src/libexec/rmail/rmail.c and re-build
/bin/rmail.
this change will deliver mails immediately.
--- rmail.c.orig Tue Jan 16 11:38:05 2001
+++ rmail.c Sat Apr 5 16:10:23 2003
@@ -235,7 +235,8 @@
i = 0;
args[i++] = _PATH_SENDMAIL; /* Build sendmail's argument list. */
args[i++] = "-oee"; /* No errors, just status. */
- args[i++] = "-odq"; /* Queue it, don't try to deliver. */
+/* args[i++] = "-odq"; Queue it, don't try to deliver. */
+ args[i++] = "-odi"; /* Deliver in foreground. */
args[i++] = "-oi"; /* Ignore '.' on a line by itself. */
/* set from system and protocol used */
>Release-Note:
>Audit-Trail:
>Unformatted: