On topic message about Off topic messages Various Solutions

Lisa Kachold lisakachold at obnosis.com
Wed Oct 1 14:19:38 MST 2008


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!

http://wapedia.mobi/en/Obnosis || http://en.wiktionary.org/wiki/obnosis | Obnosis.com

From: lisakachold at obnosis.com
To: charles.jones at ciscolearning.org; plug-discuss at lists.plug.phoenix.az.us
Subject: FW: On topic message about Off topic messages Various Solutions
Date: Wed, 1 Oct 2008 20:59:17 +0000







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 at 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

From: lisakachold at obnosis.com
To: charles.jones at ciscolearning.org
Subject: RE: On topic message about Off topic messages
Date: Tue, 30 Sep 2008 17:17:45 +0000







Charles?

MS Sharepoint provides good filtering, but you need to access it via Explorer.

You can run Explorer in Wine, or just use a co-workers system to login and setup your filters.


Date: Tue, 30 Sep 2008 08:50:23 -0700
From: charles.jones at ciscolearning.org
To: plug-discuss at lists.plug.phoenix.az.us
Subject: Re: On topic message about Off topic messages






  


Lisa Kachold wrote:

  
  No,

What question is "No" a response to?


  you simply the filtering (beit
procmail or simple ciscolearning SharePoint Microsoft Exchange webmail,
or Yahoo, MSN, gmail) as ":OT " [notice space and preceeding colon].

  

Sure, my response was simply pointing out possible subjects that his
regular expression of ".*OT.*" would filter out. Microsoft Outlook Web
Access has no filtering options, not that it matters as I do all of my
filtering with Mozilla Thunderbird :-)



-Charles




  > Date: Mon, 29 Sep 2008 23:55:04 -0700

> From: charles.jones at ciscolearning.org

> To: plug-discuss at lists.plug.phoenix.az.us

> Subject: Re: On topic message about Off topic messages

> 

> Kurt Granroth wrote:

> > * ^Subject:.*OT.*

> > The Subject rule will

> > match any instance of OT... even if it's part of another
word. I

> > was tempted to put a regex in front and back to limit the
matches but

> > didn't, since a) it wouldn't handle things like WayOT and the
like

> > and b) I can't think of many cases where a subject would have
OT

> > in an existing word, anyway.

> > 

> I could think of a few:

> OTHER LINUX DISTROS?

> GOT ROOT?

> OPTICAL DRIVES?

> HOTEL WIFI HACKING

> POTENTIAL EXPLOITS

> OTTERS ATE MY ETHERNET!

> 

> ;-)







See how Windows Mobile brings your life together—at home, work, or on the go. See Now

See how Windows connects the people, information, and fun that are part of your life. See Now

_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20081001/c77ca429/attachment.htm 


More information about the PLUG-discuss mailing list