[comp.mail.elm] filter help

protofan@motcid.UUCP (Mike S. Protofanousis) (02/06/91)

Let's say I have a message from 'John Smith' which has a subject of
'ftp.?????.??' 

Is there any way of setting up a filter rule to save this message
in a folder of name $subject_string.

Example:
From John Smith
Subject xxxx             -----> gets saved to ~/Mail/xxxx

From John Smith
Subject yyyy             -----> gets saved to ~/Mail/yyyy


You get the idea...

-- 
Mike Protofanousis 
msp@pronet.chi.il.us
uunet!motcid!protofan

epeterso@houligan.encore.com (Eric Peterson) (02/06/91)

protofan@motcid.UUCP (Mike S. Protofanousis) writes:

| Is there any way of setting up a filter rule to save this message
| in a folder of name $subject_string.
| 
| Example:
| From John Smith
| Subject xxxx             -----> gets saved to ~/Mail/xxxx
| 
| From John Smith
| Subject yyyy             -----> gets saved to ~/Mail/yyyy

Sure!  Here's a rule that will do it ...

   if (from "John Smith") then save <Home-Dir>/Mail/%s

Where "<Home-Dir>" is the absolute path of your home directory.

There's a whole set of "%" macros available in Filter for using in
generating a folder name.  Check out the Filter guide for a complete
list of these macros.

If you want to do more complicated parsing of the Subject or other
headers, though, you'll need a more powerful filter like Deliver 2.0.

Eric
--
       Eric Peterson <> epeterson@encore.com <> uunet!encore!epeterson
   Encore Computer Corp. * Ft. Lauderdale, Florida * (305) 587-2900 x 5208
Why did Constantinople get the works? Gung'f abobql'f ohfvarff ohg gur Ghexf.

protofan@motcid.UUCP (Mike S. Protofanousis) (02/08/91)

> If you want to do more complicated parsing of the Subject or other
> headers, though, you'll need a more powerful filter like Deliver 2.0.
> 

Where can I get Deliver 2.0?  Is it public domain?
-- 
Mike Protofanousis 
msp@pronet.chi.il.us
uunet!motcid!protofan

chip@tct.uucp (Chip Salzenberg) (02/14/91)

According to protofan@motcid.UUCP (Mike S. Protofanousis):
>Where can I get Deliver 2.0?  Is it public domain?

[ This same info was posted to comp.archives already; whoever's
  doing the filtering, you can ignore this article. ]

Deliver 2.0 patchlevel 12 is the current version.  I *still* haven't
updated the archive servers with patch 12.  If you get patch 11 from
them, let me know and I'll E-Mail patch 12.

It's not PD, but it's freely redistributable.

**FTP: Get Deliver 2.0 PL11 by anonymous FTP from tut.cis.ohio-state.edu.
For those of you without DNS, that's [128.146.8.60].  Here's the relevant
part of the Ohio State archive info:

	Deliver 2.0
	-----------
	Source is Chip Salzenberg <ateng!tct!chip@uunet.uu.net>.
	Root is ~/deliver/deliver-2.0-part-[1234].Z [4 parts], varying sizes
	less than 25Kbytes each.

Note that "~" is the anonymous FTP "pub" directory.  So, after making an
FTP connection as user "anonymous," type the following commands to get
Deliver into the current directory:

	binary
	cd pub/deliver
	get deliver-2.0-part-1.Z deliver.01.Z
	get deliver-2.0-part-2.Z deliver.02.Z
	get deliver-2.0-part-3.Z deliver.03.Z
	get deliver-2.0-part-4.Z deliver.04.Z

**UUCP: Get Deliver 2.0 PL11 by anonymous UUCP from alfred:

    alfred Any ACU 2400 14072909799 "" \d in:--in: anonuucp word: unknown
    alfred Any ACU 1200 14072909799 "" \d\r\d in:--in: anonuucp word: unknown

Alfred's complete file listing is alfred!~/ANON/ls-lR.

Deliver is stored on alfred as four compressed sharchives in the
~/ANON/deliver directory, with a total size of less than 100K.
To get Deliver 2.0 from alfred into the current directory, type:

	uucp alfred!~/ANON/deliver/deliver.01.Z .
	uucp alfred!~/ANON/deliver/deliver.02.Z .
	uucp alfred!~/ANON/deliver/deliver.03.Z .
	uucp alfred!~/ANON/deliver/deliver.04.Z .

Note that wildcards ("deliver.??.Z") will *not* work.
-- 
Chip Salzenberg at Teltronics/TCT     <chip@tct.uucp>, <uunet!pdn!tct!chip>
 "I want to mention that my opinions whether real or not are MY opinions."
             -- the inevitable William "Billy" Steinmetz