OT: procmail recipe question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I'm trying to use procmail and I'm having trouble getting it to set someheaders. I have one mailing list that sets Newsgroups: in the headerand I want to remove it. I have the following test recipe:
:0* ^Subject:.*\<testing* ^(Mime-Version:|Content-)| formail -IMime-Version: -IContent-
If I understand it correctly, it should remove the Mime-Verion andContent headers.
The recipe gets matched but then doesn't deliver correctly:
procmail: Match on "^Subject:.*\<testing"procmail: Match on "^(Mime-Version:|Content-)"procmail: Executing "formail,-IMime-Version:,-IContent-"procmail: Assigning "LASTFOLDER=formail -IMime-Version: -IContent-"procmail: Notified comsat: "test@:/home/jep/formail -IMime-Version: -IContent-">From jep@xxxxxxxxxxxxxxxx  Mon Feb  2 11:43:03 2009 Subject: testing  Folder: formail -IMime-Version: -IContent-                               1010

It looks like it's trying to put it in a folder starting with formail. Itried putting the mail file on the next line (/var/mail/test), which isthe same way I do it on my kid's procmailrc's, but it seems to ignoreit. Where does procmail get the LASTFOLDER thing from?
Anyone know what I'm doing wrong?
Thanks,James


_______________________________________________CentOS mailing listCentOS@xxxxxxxxxxxxxx://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux