Well allright then [Was Listar: Post rejected by administrivia.]

Bruce Francis pmmail@dmiyu.org
Fri, 03 Nov 2000 12:40:08 -0500 (EST)


On Fri, 03 Nov 2000 12:03:47 -0500, Michael Baum wrote:

>I sincerely hope this isn't an FAQ, but in any event I need help with using variable 
>expressions in a filter for PMMail 2000. 

It was previously asked on/about 8/18/2000.  You might want to check the 
html-ized archives for all of the posts regarding this.

>H.Fromid = "$ab.Family$"
>
>It don't work. Does anyone notice what I've done wrong? (Except, possibly, trusting 
>Help files?)

I'm going to snip-in a couple of replies from Trevor Smith (a few others worked
on this problem).  If these don't completely answer your question, you might try
using Steve's html-ized archives to read all the messages on this one....
--- 
Bruce Francis              BFrancis@pobox.com
 For PGP Public key:  email with Subject "BFrancis Public Key"
________________________________________________________

====="Re: filter question" From: Trevor Smith 18-Aug-00 ================
On Fri, 18 Aug 2000 21:32:07 -0400, Steve Marvin wrote:

>I use a filter for my family (who are all in a group called myfamily) the
>filter is:
>
>h.fromid="$ag.myfamily$"
>
>It opens the mail and plays a wav, hasn't ever missed that I can remember,
>I just tested it again by adding my own email to the group and turning on
>manual - then ran it in a folder that contains a mix including some from
>me. It opened every one from me and skipped all the others.

OOPS! My earlier comments were entirely wrong. Sorry!

As you point out, this action does work (just finally got it to work
here) and the quotes *are* necessary (though that syntax does not
make sense to me and is potentially ambiguous).

In the original filter suggested by Ken, we were using h.from instead
of h.fromid but either will work, depending on what you're looking
for. The only thing that is important is that string in your group
list (name, alias, email address) MUST match exactly with whatever
field you specify on the left.

If the From: line of an incoming message reads:

"Trevor Smith" <trevor@haligonian.com>

and if a group called "friends" has trevor@haligonian.com entered in
its list then this would match:

h.fromid = "$ag.friends$"

because fromid matches exactly the string in the group. But this
would not:

h.from = "$ag.friends$"

because from (the entire header line) does not match exactly since
only the email address is entered in the group.


-- 
 Trevor Smith          |          trevor@haligonian.com
 PGP public key available at: www.haligonian.com/trevor

========================= end ======================
==="Re: filter question - update" From: Trevor Smith 21-Aug-00 ===
On Mon, 21 Aug 2000 16:11:08 -0400, Ken Diehl wrote:

>Regarding the $ag.xxxx$ filter question, I have now gotten it to work. 
>It appears that h.from does not work (for me at least).  What has
>worked is h.fromname and h.fromid.  I suppose an or filter could be

h.from works but you must have the *exact entire* "From:" string in
the "Members" field. For example, to catch a message from me your
"Members" field would need:

"Trevor Smith" <trevor@haligonian.com>

(Quotes are required because they will appear in my "From:" line.)


-- 
 Trevor Smith          |          trevor@haligonian.com
 PGP public key available at: www.haligonian.com/trevor
====================== end ==============================