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

Re: procmail/formail to change subject?



> Is it possible to put something like "[user]", and "[security]" in front
> of the appropriate messages?  

try this procmail recipe:

:0
* ^X-Loop:.*debian
{
   :0 chfw
   SUBJECT=| formail -xSubject:

   :0 hfw
   * ^X-Loop:.*debian-user
   | /usr/bin/formail -i "Subject: [user] $SUBJECT"

   :0 hfw
   * ^X-Loop:.*debian-devel
   | /usr/bin/formail -i "Subject: [devel] $SUBJECT"
}

--
saisanthosh



Reply to: