Re: Subject: Re: filtering email via perl?
On Wed, Jun 06, 2001 at 04:53:23PM +0200, Martin W?rtele wrote:
> On Wed, Jun 06, 2001 at 11:47:10AM -0300, John R Lenton wrote:
> > if you use exim, read /usr/share/doc/exim/filter.txt.gz
> >
> > an example:
> >
> > # debian-user
> > if $message_headers contains debian-user@lists.debian.org then
> > save /home/john/Mail/Linux/debian-user
> > finish
> > endif
> >
> > I find this infinitely better than procmail.
>
> if you're subscribed to more debian lists you can use something like this:
>
> if $h_x-mailing-list matches "^<debian-(.*)@lists\\\\.debian\\\\.org>" then
> seen save $home/Mail/debian-$1
> endif
>
> to sort every list into a mailbox with the listname.
i also like doing
save Mail/debian-${lc:$1}
in order to
1) use $home-relative paths and
2) lowercasing for canonicalization, Just In Case
(silly to have Debian-User and DEBIAN-USER and debian-user)
okay, it doesn't happen with debian-* lists, but it happens
a lot with other email!
query:
does
seen save ...
stop processing as if you'd said "finish"?
--
DEBIAN NEWBIE TIP #26 from Will Trillich <will@serensoft.com>
:
Do you want a CONSOLE with more than 80 COLUMNS or 24 ROWS?
Experiment with various settings from /etc/TextConfig for use
with "SVGATextMode":
SVGATextMode 80x30x9
Try "apt-get install svgatextmode" to get it. (It won't work with
xterm or rxvt, of course -- only text-mode console display.)
Also see http://newbieDoc.sourceForge.net/ ...
Reply to: