Brian Salter-Duke <[EMAIL PROTECTED]> wrote on Fri, 27 Oct 2000:
> It is not the attachment I want to filter and F is filter-entry for the
> attachment. I want to alter the message itself.

Like Brian Tatge already said, the message body *is* an attachement,
from the MIME point of view (and how the compose menu shows it).
Usually people think in terms of "message body text" and "message
attachements", but in fact these are just different parts of the same
multi-part message.  The mail reader decides how they are shown to the
user.  A part of the message may also be indicated to be "inline" for
showing as part of the "body text", or it can be "attachment" for the
usual meaning of attachments.

Anyway, using filter-entry on the message body text should do what you
want.  If you also need to have the headers for whatever tasks the
filter script does, then it does get a bit more tricky.  I see two
possible solutions:

1. Change your $editor to work on a temporary file, set $edit_headers,
and invoke the "edit-headers" function.  Then change your $editor value
back to normal, maybe $edit_headers too.

2. Edit the message as usual, but change your $sendmail to actually
point to a script that first runs your filter and then sends the message
to the real sendmail/MTA.  The advantage of this that the script will
see all the headers, not just those you can see with edit-headers.  The
disadvantage is that message sent and saved Fcc copy will not be the
same, unless you do something like add a Bcc to yourself.  Also, you
won't be able to see the changes before sending.


Hope this helps,
Mikko
PS. No need to send emails to me privately, I'm on the list (as the MFT
header in this email should indicate...).
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
You don't have to know anything to have an opinion.

Reply via email to