From f3a35ee1d8c7a10349adeb6d4f50f0fe3b096540 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 26 Jul 1996 16:53:58 +0000 Subject: Fixed the sendmail command. svn path=/trunk/; revision=44 --- NEWS | 2 ++ configure.in | 4 ++-- fetchmail.man | 43 +++++++++++++++++++++---------------------- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/NEWS b/NEWS index 82904985..7b22c075 100644 --- a/NEWS +++ b/NEWS @@ -22,6 +22,8 @@ Implement IMAP support. * Added -N/--norewrite option. +* Delivery via sendmail now works. + 3.01: * Fixed a lexical analyzer bug in quoted-string processing. diff --git a/configure.in b/configure.in index eb60c80b..2a490709 100644 --- a/configure.in +++ b/configure.in @@ -60,8 +60,8 @@ case $host in else # Do *not* use the -t option! We explicitly want only # local delivery to the recepients named on the command line. - AC_DEFINE(DEF_MDA,"/usr/lib/sendmail -oem %s") - mdacmd="/usr/lib/sendmail \$u" + AC_DEFINE(DEF_MDA,"/usr/lib/sendmail -oem -fpopmail %s") + mdacmd="/usr/lib/sendmail -fpopmail \$u" fi ;; esac diff --git a/fetchmail.man b/fetchmail.man index 35fc9e36..671a631e 100644 --- a/fetchmail.man +++ b/fetchmail.man @@ -102,7 +102,7 @@ Specify a mail delivery agent to use. This can be used to pass fetched mail to programs like procmail. If the MDA string contains %s, that escape will be expanded into your username on the client machine. Some possible MDAs are "/usr/formail", "/usr/bin/deliver %s", -"/usr/lib/sendmail -oem -t - -q %s". +"/usr/lib/sendmail -oem %s". .TP .B \--protocol proto Specify the protocol to used when communicating with the remote @@ -247,29 +247,28 @@ a mailbox on the server. Contact your server administrator if you don't know the correct user-id and password for your mailbox account. .PP .SH OUTPUT OPTIONS +The normal behavior of +.I popmail +is to deliver mail locally via your system's default mail delivery +agent or MDA (usually +.I /usr/lib/sendmail +but your system may use a different MDA -- the .I popclient -always writes the retrieved messages using Unix mail folder format. This -allows -.I popclient -to be used in conjunction with common mail readers like -.I mail -and -.I elm. -The retrieved messages are normally appended to your default system -mailbox on the local disk, so that when you invoke your mail reader it -can manipulate the retrieved messages like any other mail you receive -on the client machine. If -.I popclient -doesn't know where your mailbox is, or can't modify it safely (e.g. because -your underlying operating system doesn't support mandatory file -locking), it will use the local Mail Delivery Agent -(MDA), usually -/bin/mail(1), +configuration process should detect this automatically). +You can change the MDA the mail is passed to with the -mda or -m option. .PP Using the .B \-o option, you can specify a different mail folder to which the retrieved -messages will be appended. If you prefer, for example, to have your POP +messages will be appended; +.I popclient +always writes the retrieved messages using Unix mail folder format so +the folder will be parsed correctly by Unix mail programs such as +.I elm +or +.I pine. +.PP +If you prefer, for example, to have your POP mail from a machine called 'mailgrunt' stored in the .I mbox file in your home directory, you would start @@ -428,7 +427,7 @@ one server definition. pass secret1 \e localfolder ~/mbox .fi -If you need to include whitespace in a paramter string, enclose the +If you need to include whitespace in a parameter string, enclose the string in double quotes. Thus: .nf @@ -436,7 +435,7 @@ string in double quotes. Thus: proto pop3 \e user jsmith \e pass secret1 \e - mda "/bin/mail -d %s" + mda "/bin/mail %s" .fi Finally, you may have an initial server description headed by the keyword `defaults' instead of `server' followed by a name. Such a record @@ -447,7 +446,7 @@ by individual server descriptions. So, you could write: defaults \e proto pop3 \e user jsmith \e - mda "/bin/mail -d %s" + mda "/bin/mail %s" server pop.provider.net \e pass secret1 \e server mail.provider.net \e -- cgit v1.2.3