Here's the complete recipe for the subject line fully tested to only catch the Plug List messages (which don't use a List header line) whose subject starts with OT
Add to your .procmailrc
:0
* ^From:.*plug-discuss-bounces\@lists\.plug\.phoenix\.az\.us
* ^To:.*Main PLUG discussion list
* ^Subject:.*\<OT\>
${OFFTOPIC}
Be sure you have defined the OFFTOPIC file at the top of your recipe .procmailrc file!
Charles, how is that notebook wireless connection and Apache2 VirtuaHost SSL issue I helped you troubleshoot for your home DSL Name based virtual hosting during the InstallFest? I believe that was you? That was a really fun day?
Join us for the Next PLUG Linux Security HackFest LAB at UAT on September 11, 2008 Noon!
Solutions for Filtering Messages either into Trash, Folder and/or Email forwarding:Gmail: http://mboffin.com/post.aspx?id=1636
OutLook/SharePoint:MS Outlook provides an "invisible" button in the Mail Options if you are not using Explorer. If you need to setup your filtering, this is the best way to do it, before you pop off or SMTP/IMAP your mail to your local system. You can use Wine to run Explorer:
http://www.howtoforge.com/ubuntu_internet_explorer
Here's the full instructions for Outlook's Filtering:
http://72.14.205.104/search?q=cache:ZQVZ1IYr8ocJ:www.towson.edu/AdminFinance/OTS/training/documentation/OutlookWebAccess/OWA_Adv_Options.pdf+Microsoft+Outlook+Web+Access+filtering+subject+line+email&hl=en&ct=clnk&cd=3&gl=us
I worked at a Microsoft/Cisco VAR and supported various MS applications for ICA(certificates in Wireless), MSOutLook and SharePoint, (as well as Sun's Microsoft
SharePoint Portal Server with
Sun Java System Access Manager) while also doing various security [forensics for Warner Pacific College, HSRP/Routers and Pix for Multnomah Athletic Club].
Procmail:Should you be needing a procmail recipe that will exclude the OT messages
A full procmail regex will look like this to exclude "OT" subject headers with : and space from plug-discuss@lists.plug.phoenix.as.us:
Add to your .procmailrc file:
:0
* ^List-Id:.*lists\.plug\.phoenix\.az\.us
* ^Subject:.*OT
${OFFTOPIC}
Will drop into the OFFTOPIC folder.
-----------------------------more procmail/formail fun---------------------------
# Tell your friends to put a "magic word" on the subject
# line of mail they send you.
# Here's the whitelist code from the http://handsonhowto.com/pmail101.html Procmail 101 page
#### Whitelist senders in the text file "ok"
## Important because it's the easiest way to exempt someone
## from the unconditional kills that will come later.
FGREP=/bin/fgrep
FROM=`formail -x From:`
REC=`formail -x Received:`
:0E
* ? (echo "$FROM" | $FGREP -i -f $HOME/ok)
{
LOG="OK "
:0
${DEFAULT}
}
##################################################################
## IMPORTANT NOTE! Do not put any comments or blank lines in
## the files ok, twits, or ORspammers. They must contain ONLY
## exact strings to be matched.
## A blank line in these files will match EVERYTHING, which is
## bad in a whitelist, and disastrous in a blacklist.
##################################################################
-------------------------Let's BlackList all OTspammers [After all there are only about 5 of us?]---------------------
#### Now it gets trickier!
## - Explicit blacklists: "twits" for addresses, "OTspammers" for sites
:0E
* ? (echo "$FROM" | $FGREP -i -f $HOME/twits)
{
LOG="TWIT "
:0
/dev/null
}
:0E
* ? (echo "$REC" | $FGREP -i -f $HOME/OTspammers)
{
LOG="Site "
:0
/dev/null
}
------------------------end recipe-----------------------
http://wapedia.mobi/en/Obnosis || Obnosis.com