Hi,
* procmail schrieb am 11 Jan 2005:
Hi,
* Michelle schrieb am 10 Jan 2005:
Am 2005-01-09 14:12:30, schrieb Fabian Braennstroem:
Hi Michelle,
This works fine, but I have no clue about 'sed' so removing
'OpenFoam: Running / Solving / CFD:' doesn't work with the
following:
:0hw
SUBJECT=|formail -xSubject: | sed -e 's OpenFoam: Running / Solving /
CFD: //gi'
This:
SUBJECT=|formail -xSubject: | sed -e 's,OpenFoam:\ Running\ /\ Solving\ /\
CFD:\ ,,gi'
should work.
Yes, that works fine.
I assume to change the 'From'-header I have to do it
similar; probably query the body for the name will be a
problem with formail.
It depends...
I assume that I pipe the whole body through 'sed' and set
with formail the '-xFrom'-field...
Now, I did that with:
:0hw
FROM=|formail -I "" | sed -n -e '/By\ /p' | sed -e
's/^\(.\{0\}\).\{3\}\(.*\)/\1\2/'| sed -e 's/^\(.\{10\}\).\{30\}\(.*\)/\1\2/'
:0 fhw
| formail -i "From:$FROM"
Which should looks for the line with 'By ' and remove the
first 3 columns and the columns from 10. The 'sed' part works
fine, but 'formail' produces weird From-Headers like: '|'
and some did not change at all!?
I tested the 'sed' part separately, so this should not be
the error.
Greetings!
--
Fabian Braennstroem
Duesseldorf/Berlin
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail