Mercurial > masqmail
annotate admin/rmail @ 276:1abc1faeb45d
for -t cmdline args are now added to the rcpt list instead of substracted
Please read the diff and the section about -t in man/masqmail.8.
Masqmail's behavior had been like the one of exim/smail, now it's
similar to postfix.
Masqmail does it now the most simple way, regarding the code.
Also, addr args are always recipients, -t does not change their meaning.
-t makes the addrs from rcpt hdrs, rcpt addrs too.
It would have been logical too, to ignore the cmdline args,
in the sense of ``headers *instead of* args'' but none of the
popular MTAs does it that way and it would have been a bit more
complicated in the code.
Anyway, this is a corner-case that should better be avoided completely.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Fri, 03 Dec 2010 21:05:34 -0300 |
parents | cab46cefa4ce |
children |
rev | line source |
---|---|
86 | 1 #!/bin/sh |
2 # | |
3 # Dummy UUCP rmail command for postfix/qmail systems | |
4 # | |
5 # written by luciano l. mannucci <luke@nameron.smd.sublink.org> | |
6 # improved by Wietse Venema <wietse@porcupine.org> | |
7 # see: | |
8 # List: postfix-users | |
9 # Subject: Rmail: very small fix | |
10 # From: luke@nameron.smd.sublink.org (luciano l. mannucci) | |
11 # Date: 2000-09-13 14:31:30 | |
12 # URL: http://marc.info/?l=postfix-users&m=96885536302087 | |
13 # | |
14 # taken from postfix-2.5.5/auxiliary/rmail/rmail | |
15 | |
16 | |
17 SENDMAIL="/usr/sbin/sendmail" | |
18 IFS=" " read junk from junk junk junk junk junk junk junk relay | |
19 | |
20 case "$from" in | |
21 *[@!]*) ;; | |
22 *) from="$from@$relay";; | |
23 esac | |
24 | |
25 exec $SENDMAIL -i -f "$from" -- "$@" |