From: Wolf Christian Vogt <vogt(_at_)fgan(_dot_)de>
leider habe ich ein Problem mit meiner .procmailrc-Datei. Das erste
Rezept (also das simple Forwarding) funktioniert nicht. Das zweite
Rezept (mit mailto und den oben definierten Variablen) funktioniert
einwandfrei.
Christian: leider findet die Liste nur im Englischen statt. (The list
takes place in English.)
He says he has a problem: the first recipe doesn't work. The second
does, and accepts the variable definitions from up-top.
SUBJECT=`/usr/local/bin/formail -xSubject:`
FROM=`/usr/local/bin/formail -xFrom:`
:0 c
! uzsvw7(_at_)ibm(_dot_)rhrz(_dot_)uni-bonn(_dot_)de
The reason this doesn't work is that you didn't include an action line.
You're saying "(a) clone the mail; (b) if it's not from uzsvw7 then do
something"; but you're not saying what to do.
Read "man procmailrc" for some grounding. Also see the procmail list
for pointers to various FAQs.
:0 c
* !^from(_dot_)*gateway(_at_)skyper(_dot_)de
| /xunbund/local-solaris/bin/mailto -s "$SUBJECT $FROM"
5766046(_at_)skyper(_dot_)de < /dev/null
Yes, I would expect that one to work. You have a similar construct to
above but have said what it is you want the recipe to do (the part beginning
with the pipe).
|/usr/local/bin/procmail
Is that what you have in your .forward? You probably want to look at
the notes on .forward in man procmail.
--
\ .-. .-. .-. .-. .-. .-. .-. /
\-d-/-m-\-a-/-n-\-(_at_)-/-n-\-e-/-t-\-c-/-o-\-m-/-.-\-c-/-o-\-m-/
'-' '-' '-' '-' '-' '-' '-' '-'