* Matthias Fechner <idefix@fechner.net> [25-07-01 18:04]: > wie kann ich denn eine Mail bouncen(evtl. noch oben kleinen Text dazu > schreiben), das ganze von einem bestimmten Absender, mit Hilfe von > procmail? Vielleicht hilft das: man procmailex A more complicated autoreply recipe that implements the functional equivalent of the well known vacation(1) pro- gram. This recipe is based on the same principles as the last one (prevent `ringing' mail). In addition to that however, it maintains a vacation database by extracting the name of the sender and inserting it in the vaca- tion.cache file if the name was new (the vacation.cache file is maintained by formail which will make sure that it always contains the most recent names, the size of the file is limited to a maximum of aproximately 8192 bytes). If the name was new, an autoreply will be sent. As you can see, the following recipe has comments between the conditions. This is allowed. Do not put comments on the same line as a condition though. SHELL=/bin/sh # for other shells, this might need adjustment :0 Whc: vacation.lock # Perform a quick check to see if the mail was addressed to us * $^To:.*\<$\LOGNAME\> # Don't reply to daemons and mailinglists * !^FROM_DAEMON # Mail loops are evil * !^X-Loop: your@own.mail.address | formail -rD 8192 vacation.cache :0 ehc # if the name was not in the cache | (formail -rI"Precedence: junk" \ -A"X-Loop: your@own.mail.address" ; \ echo "-- "; cat $HOME/.signature \ ) | $SENDMAIL -oi -t echo "-- "; cat $HOME/.signature \ ) | $SENDMAIL -oi -t -- Janto Trappe Germany /* rapelcgrq znvy cersreerq! */ GnuPG-Key: http://www.sylence.de/gpgkey.asc Key ID: 0x8C53625F Fingerprint: 35D7 8CC0 3DAC 90CD B26F B628 C3AC 1AC5 8C53 625F
Attachment:
pgpxD5ZZvwOBn.pgp
Description: PGP signature