<<< Date Index >>>     <<< Thread Index >>>

Re: Automated message processing



Am 2008-09-05 07:46:09, schrieb Peter Davis:
> I understand that.  I guess what I should have said was "Mutt doesn't 
> give me any way to pass a pointer to the message file.  All I can do is 
> pipe the contents of the message."

HOW do you filter the E-Mails?

If you are using procmail, you can use TRAP (in front  of  the  matching
procmail recipe) to add an extra header to the message using:

:0
* ^Subject:.*subscribe me
{
  TRAP='cat ${LASTFOLDER} |formail -f -I "X-Folder: ${LASTFOLDER}" 
>${LASTFOLDER}.tmp && mv -f ${LASTFOLDER}.tmp ${LASTFOLDER}'

  :0
  .Subscribe_folder/.
}

Note:  I put the TRAP inside a recipe since I do not  want  to  have  it
       executed on ANY other messages I receive

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature