procmail
[Top] [All Lists]

Re: remove text from body and change subject and author

2005-01-12 05:43:26
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...

Thanks for your help and getting me curious about 'sed' :-)

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

<Prev in Thread] Current Thread [Next in Thread>