Tach Liste. Kann mir bitte jemand kurz mit formail in meiner procmailrc helfen: Folgendes funktioniert: :0 * TO.*testaccount@feile.net ! mail@localhost Warum funktioniert dann folgendes nicht: :0 * TO.*testaccount@feile.net | formail -A "X-Loop: blabla" ! mail@localhost Gegenüber der funktionierenden Regel oben möchte ich halt einfach noch den X-Loop-Header einfügen und die Mail dann weiterleiten. Ob der Header eingefügt wird weiß ich nicht, jedenfalls wird die Mail nicht an mail@localhost weitergeleitet. Wo liegt der Denkfehler? Danke. Andy -- Andreas Feile Schaible MedienPartner GmbH Stievestraße 16 80638 München Mail: andy.feile@schaible.net Tel.: 0179 2960250 Fax: 089 17300770 Neu: Das Media Kompetenz Center im Internet unter http://www.schaible.net .
Hallo Andy, also, ich mache das so, allerdings ohne "!mail@localhost": :0 * ^[Tt]o:.*name@host.domain * !^X-Loop: blabla # um Loopback zu verhindern | (formail -rk -A "X-Loop: blabla") !mail@localhost | sendmail -t probiere es einfach mal so. Gruß Sören * Andy Feile schrieb am 15 Mär 2002:
Tach Liste.
Kann mir bitte jemand kurz mit formail in meiner procmailrc helfen:
Folgendes funktioniert:
:0 * TO.*testaccount@feile.net ! mail@localhost
Warum funktioniert dann folgendes nicht:
:0 * TO.*testaccount@feile.net | formail -A "X-Loop: blabla" ! mail@localhost
Gegenüber der funktionierenden Regel oben möchte ich halt einfach noch den X-Loop-Header einfügen und die Mail dann weiterleiten. Ob der Header eingefügt wird weiß ich nicht, jedenfalls wird die Mail nicht an mail@localhost weitergeleitet.
Wo liegt der Denkfehler?
Danke. Andy
-- Andreas Feile Schaible MedienPartner GmbH Stievestraße 16 80638 München
Mail: andy.feile@schaible.net Tel.: 0179 2960250 Fax: 089 17300770
Neu: Das Media Kompetenz Center im Internet unter http://www.schaible.net .
-- Um die Liste abzubestellen, schicken Sie eine Mail an: suse-linux-unsubscribe@suse.com Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken Sie eine Mail an: suse-linux-help@suse.com
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Soeren Mindorf ~ ~ Industriemeister der Elektrotechnik ~ ~ Wrangelstrasse 33 ~ ~ 24105 Kiel ~ ~ E-Mail1: soeren@mindorf.org ~ ~ E-Mail2: soerenmm@web.de ~ ~ Homepage: http://www.mindorf.org ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Fri, 15 Mar 2002, Andy Feile wrote:
Kann mir bitte jemand kurz mit formail in meiner procmailrc helfen:
Folgendes funktioniert:
:0 * TO.*testaccount@feile.net ! mail@localhost
Warum funktioniert dann folgendes nicht:
:0 * TO.*testaccount@feile.net | formail -A "X-Loop: blabla" ! mail@localhost
Aus "man procmailrc":
:0 [flags] [ : [locallockfile] ]
Am Fre, 15 Mär 2002 schrieb Peter Blancke:
On Fri, 15 Mar 2002, Andy Feile wrote:
Kann mir bitte jemand kurz mit formail in meiner procmailrc helfen:
Folgendes funktioniert:
:0 * TO.*testaccount@feile.net ! mail@localhost
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.
Geht vielleicht :0 * TO.*testaccount@feile.net { :0 | formail -A "X-Loop: blabla" :0 ! mail@localhost } 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
Hallo, On Fri, 15 Mar 2002, Christoph Maurer wrote:
Am Fre, 15 Mär 2002 schrieb Peter Blancke:
On Fri, 15 Mar 2002, Andy Feile wrote:
: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.
Geht vielleicht :0 * TO.*testaccount@feile.net { :0 | formail -A "X-Loop: blabla"
:0 ! mail@localhost }
Macht das nicht 2 Mails draus? Aus man procmailex: Suppose you have two accounts, you use both accounts regu larly, but they are in very distinct places (i.e. you can only read mail that arrived at either one of the accounts). You would like to forward mail arriving at account one to account two, :0 c * !^X-Loop: yourname@your.main.mail.address | formail -A "X-Loop: yourname@your.main.mail.address" | \ $SENDMAIL -oi yourname@the.other.account Ergo wuerde ich mal folgendes testen: ==== :0 * ^TO_testaccount@feile.net * !^X-Loop: testaccount@feile.net | ( formail -A"X-Loop: testaccount@feile.net" ) \ | $SENDMAIL -oi mail@localhost ==== (Achtung: Eine Actionzeile, da Umbruch mit \ maskiert.) -dnh -- [Java sei nicht das Gelbe vom Ei] Es ist auch nicht das Weiße vom Ei. Eher das grün-bräunliche eines verschimmelten Gammel-Eis. Java ist die gelbliche Ab- lagerung an Pissoirs. Java ist der Schimmelpilz der IT-Branche. Mag sein, daß es eine Funktion erfüllt, aber sie ist noch nicht gefunden worden. -- fefe
participants (5)
-
Andy Feile
-
Christoph Maurer
-
David Haller
-
Peter Blancke
-
Sören Mindorf