Hi Federico De Fazio! I'm a programmer and I want to do dumb things!
I have tried for some time, with no results, trying to change the From: line
in a header of an email.
Use sed. For instance, when I filter mail from this mailing
list, I use it on the Subject: line like so:
# bounce Procmail posts
:0 E:
* ^Resent-From: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
{
:0:
* !^Subject:.*[[]Procmail[]]
| sed s/^"Subject:"/"Subject: [Procmail]"/ \
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| formail -A"X-procmail-notice: Subject header(s) modified" >>$MAILDIR/lists
:0 E:
$MAILDIR/lists
}
You could use something similar for the From: line like:
:0:
* my recipie criteria
| sed s/^"From".*/"From: you(_at_)other(_dot_)site(_dot_)com"/ \
| formail -A"To: fax(_at_)some(_dot_)mailer(_dot_)com | $SENDMAIL -oi -t
either use sendmail, or just have the sed line and pipe it into
Elm with an ~/.elm/elmheaders file set up.
Oh yes, with this recipie, any lines in the body of the message
that start with "From:" will also be affected. I haven't found a way
around it yet. :-(
Also Is it possible to forward emails - but not forward any attachments?
Hmm...you would probally want to pipe the e-mail into an external
program. Perhaps metamail? I dunno, as I don't "do" MIME.
Merry Christmas,
--
<Doug Muth>--<dmuth+8628122519961646341294221570(_at_)ot(_dot_)com> - Spam me
and die!
Think your homepage sucks? You haven't seen http://www.ot.com/~dmuth yet!!
Anti-virus software and utils: | The Transformers fanfiction:|"Est Sularus|
http://www.ot.com/~dmuth/virus | http://www.ot.com/~dmuth/tf |oth Mithas!"|
-=-=-=-=Send a blank e-mail to dmuth+help(_at_)ot(_dot_)com for PGP key,
etc.-=-=-=-=-