procmail
[Top] [All Lists]

editing body of message with Formail

1999-04-18 17:36:07
My department uses Novell Groupwise.  It has a built in e-mail forwarding
feature, which I use to forward my work e-mail to my home e-mail address.  Once
there, I again forward a copy to my alphanumeric pager, using a Procmail script.

When Groupwise forwards a message, it creates a new header.  The header
information from the original message appears as the first lines in the BODY of
the forwarded message.  Thus, the message body of all my forwarded e-mails
begins with Date, From, To, Subject, Mime-Version,Content-Type,
Content-Transfer-Encoding, and Content-Disposition lines.  The actual "meat" of
the message follows all of this.

Unfortunately, my pager only displays the first 200 characters of the message
body.  I can never see the desired content information. All I get is the
regenerated header information.

I have read the Formail man pages but my knowledge is limited.  I don't know if
what I want to do is possible (eliminate the first unimportant lines of my
forwarded message body).  Can anyone help?  My .procmailrc recipe on my home
account looks something like this:

#if the e-mail is from my work account, then forward a copy to my pager
:0c
*^From:(_dot_)*me(_at_)work
!mypager(_at_)pagenet(_dot_)net

How could I insert a formail section into this recipe to accomplish my goal?

Thanks,

Tom

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