Re: formail in .procmailrc
Moin Peter, Moin Liste. At 15:43 15.03.2002 +0100, Peter Blancke wrote:
Warum funktioniert dann folgendes nicht:
:0 * TO.*testaccount@feile.net | formail -A "X-Loop: blabla" ! mail@localhost
Aus "man procmailrc":
:0 [flags] [ : [locallockfile] ]
<exactly one action line> Du hast mit Deinen _zwei_ "Action lines" die Vorgabe "exactly one action line" einfach zu grosszuegig ausgelegt.
Formuliere Deine "action line" so, dass es _eine_ Zele ergibt und es wird funktionieren. Siehe dazu auch "man formail".
Hmm, habs immer noch nicht ganz kapiert. Jetzt hab ichs so: :0 * <Bedingung> { :0 | formail -A "X-Loop: blabla" :0 ! mail@localhost } Das müßte doch zumindest insofern klappen, als es jetzt "eine Zeile" ist. Was hab ich jetzt nicht verstanden? Gruß. Andy
Moin, > >> * TO.*testaccount@feile.net > Hmm, habs immer noch nicht ganz kapiert. Jetzt hab ichs so: > :0 > *probier 'mal * ^To.*testaccount@feile.net also mit kleinem o bei To. bis denn ... /Frank/
Am Fre, 15 Mär 2002 schrieb Frank Röske: > Moin, > > > >> * TO.*testaccount@feile.net > > Hmm, habs immer noch nicht ganz kapiert. Jetzt hab ichs so: > > :0 > > *> probier 'mal > * ^To.*testaccount@feile.net > > also mit kleinem o bei To. ^TO ersetzt Procmail durch (etwas länglich) (^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?) Aber es muß wirklich ^TO heißen. Gruß Christoph -- Christoph Maurer - 52072 Aachen - Tux#194235 mailto:christoph-maurer@gmx.de - http://www.christophmaurer.de Auf der Homepage u.a.: Installation von SuSE 7.0 auf Notebook Acer Travelmate 508 T, Elektrotechnik an der RWTH Aachen
At Freitag, 15. März 2002 17:23 Christoph Maurer wrote:
Aber es muß wirklich ^TO heißen.
Ja, das mit dem großen O, das stimmt schon. Folgendes klappt nämlich:
:0
* TO.*testaccount@feile.net
{
:0
! mail1@localhost
:0
! mail2@localhost
}
Dieses Konstrukt leitet Mails an testaccount@feile.net an die beiden
Mail-Adressen weiter.
Demgegenüber geht folgendes nicht:
:0
* TO.*testaccount@feile.net
{
:0
formail -A "X-Loop: blabla"
:0
! mail@localhost
}
Da kommt keine Mail bei mail@localhost an (und auch sonst nirgends).
Anscheinend liefert formail die Mail nicht wieder zurück.
--
Andreas Feile
Andreas Feile wrote:
Demgegenüber geht folgendes nicht:
:0 * TO.*testaccount@feile.net { :0 formail -A "X-Loop: blabla"
:0 ! mail@localhost }
Da kommt keine Mail bei mail@localhost an (und auch sonst nirgends). Anscheinend liefert formail die Mail nicht wieder zurück.
Probier mal :0 c formail ...
At Samstag, 16. März 2002 13:35 Ralph Müller wrote:
Da kommt keine Mail bei mail@localhost an (und auch sonst nirgends). Anscheinend liefert formail die Mail nicht wieder zurück.
Probier mal
:0 c
formail ...
Dann kommt zwar eine Mail bei mail@localhost an, aber sie hat keinen X-Loop
gesetzt. Hätte nicht gedacht, daß das so schwierig ist :(
--
Andreas Feile
Dann kommt zwar eine Mail bei mail@localhost an, aber sie hat keinen X-Loop gesetzt. Hätte nicht gedacht, daß das so schwierig ist :( wird das formail überhaupt ausgeführt? Probier 'mal den absoluten Pfad für
Moin, formail (meist /usr/bin/formail) bis denn ... /Frank/
Hallo, On Fri, 15 Mar 2002, Christoph Maurer wrote:
^TO ersetzt Procmail durch (etwas länglich) [..] Aber es muß wirklich ^TO heißen.
Sicher? Bei mir steht in man procmailrc: If the regular expression contains `^TO_' it [..] ^! -dnh -- "The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' (I found it!) but 'That's funny ...'" -- Isaac Asimov
Am Sam, 16 Mär 2002 schrieb David Haller:
Hallo,
On Fri, 15 Mar 2002, Christoph Maurer wrote:
^TO ersetzt Procmail durch (etwas länglich) [..] Aber es muß wirklich ^TO heißen.
Sicher? Bei mir steht in man procmailrc: If the regular expression contains `^TO_' it [..] ^!
If the regular expression contains `^TO_' it will be sub stituted by `(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X- Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)', which should catch all destination specifications containing a specific address. ^^^^^^^ If the regular expression contains `^TO' it will be sub stituted by `(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X- Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)', which should catch all destination specifications containing a specific word. ^^^^^ Verwende aber in der Regel auch ^TO_ Gruß Christoph -- Christoph Maurer - 52072 Aachen - Tux#194235 mailto:christoph-maurer@gmx.de - http://www.christophmaurer.de Auf der Homepage u.a.: Installation von SuSE 7.0 auf Notebook Acer Travelmate 508 T, Elektrotechnik an der RWTH Aachen
participants (6)
-
Andreas Feile
-
Andy Feile
-
Christoph Maurer
-
David Haller
-
Frank Röske
-
Ralph Müller