[pmmail-list] Filter for Absence of "To" Header

Sorin Srbu pmmail-list@blueprintsoftwareworks.com
Wed, 26 Nov 2003 08:38:35 +0100


On Tue, 25 Nov 2003 20:50:40 -0500 (EST), Kenn Yuill wrote:

>Does anyone had a filter to initiate an action based on the absence of
>the "To" header?
>Obviously, h.To="" doesn't work, except when the header is blank.  I
>tried h.Toname="$h.Toname$", which seemed to hang PMMail/2, since the
>content of other notes could not be displayed in the viewing pane, but
>PMMail/2 did shut down in an orderly fashion.
>The purpose of the filter was to move any returned receipts to a
>separate folder, rather than the one designated for the correspondence
>to & from the recipient of the original note.

Just looked into this the other day. From the pmm help-file:

>How do I filter SPAM?
>
>Lately most SPAMmers have begun sending their junk mail as BCC (blind carbon copy).   In this method of sending your name never appears in the TO:
> or CC: field of the message.  This method of sending actually makes it quite easy to filter messages of this sort.
>
>I always suggest moving messages to a folder named SPAM instead of directly to the trash.  This way it allows you to check the messages  on occasion to make sure that no legitimate ones are trashed.
>
>The filter is a complex one and can be pasted into PMMail as is:
>
>!(header.to="$c.acctid$" | h.cc="$c.acctid$" | h.Resent-To="$c.acctid$" | h.Apparently-To="$c.acctid$")
>
>Then check the INCOMING box and set the actions you wish to perform on the messages it catches.


Helpful?



BW,

Sorin

# Sorin Srbu, Systems Engineer		Web: http://www.farmfak.uu.se/organisk/
# Dept of Medicinal Chemistry,		Phone: +46 (0)18-4714482 >> 5 signals >> GSM
# Div of Org Pharm Chem,			Mobile Phone: +46 (0)701-718023
# BMC, Box 574, Uppsala University	Fax: +46 (0)18-4714474
# SE-751 23 Uppsala, Sweden		Visit: BMC, Husargatan 3, D5:512b
#
# Public PGP key available on request.
#
# ()  ascii ribbon campaign - against html e-mail 
# /\
#
#
# Harmless tagline follows:
#
# Artificial Intelligence: the art of making computers that behave 
like the ones in movies. ¡ Bill Bulko
- pmmail-list - The PMMail Discussion List ---------------------------
To POST to the list, send your message to:
pmmail-list@blueprintsoftwareworks.com

To UNSUBSCRIBE, send a message to mdaemon@bmtmicro.com 
with the first line of the message body being...
UNSUBSCRIBE pmmail-list@blueprintsoftwareworks.com
---------------------------------------------------------------------