Timothy Luoma wrote,
| Problem is, the app changes the 'From ' line from
|
| >From user(_at_)host(_dot_)com Mon Jun 24 15:08:49 1996
|
| to
|
| >From PopOver Mon Jun 24 15:08:49 1996
|
| This screws up the log because I can't see who the message is from.
You can add the From: and Reply-To: headers to the log if you like:
LOG="`formail -XFrom: -XReply-To:`
"
or without running any programs,
:0 # trailing .* needed to extract rest of line into $MATCH variable
* ^\/From:.*
{ LOG="$MATCH
" }
| Anyone have a hint/clue/guess as to a better way of doing this?
If you really want to fix the From_ header, try this:
:0wfh
* ^From PopOver
| formail -I'From ' | formail
Yes, you need to pipe formail to formail or use two filtering recipes:
:0wfh
* ^From PopOver
| formail -I'From '
:0Awfh
| formail
like that.