ProcmailRecipes

From Request Tracker Wiki
Jump to navigation Jump to search

ProcmailRecipes

Here are a few useful procmail recipes you can use in your RT configuration.

#Remove mail from Galaxy@email.com
 :0
 * ? formail -x"From" -x"From:" -x"Reply-To:" -x"Errors-To:"\
    | egrep -i "Galaxy@email.com"
 /dev/null
 
 #Change the from header to a real RT user
 :0 fhw
 * ? formail -x"From" -x"From:" -x"Reply-To:" -x"Errors-To:" | egrep -i "rt.username@hotmail.com"
 |formail -I "From: rtusername@realdomain.com"
 
 #Add the big tag in front of the subject
 :0 fhw
 * ^Subject:\/.*
 | formail -I "Subject: {* -BIG- *} $MATCH"
 
 
 

Recipe Requests

-Redirect or bounce an email message via procmail. (our exchange users do not have permissions to re-direct via outlook)