Re: mail filtering techniques

2000-01-31 Thread Johann Spies
On Sun, 30 Jan 2000, Phillip Deackes wrote:

 I used to use procmail to deliver mail, but I prefer the Exim approach.

Thanks for the information on your .forward file.  I also use procmail at
the moment.  In my setup I can use the following script to produce a list
of all the email I have received today:

grep `date \+ %a %b %e\` ~/.procmail/log | nl

Does filtering with exim produce a logfile that I can use for the same
purpose?

Johann.
-- 
Johann Spies,Windsorlaan 19, Pietermaritzburg, 3201, South Africa
Tel/Faks 033-346-1310 Sel/Cell 082-255-2388
 Jesus saith unto him, I am the way, the truth, and the
  life; no man cometh unto the Father, but by me.  
John 14:6 


Re: mail filtering techniques

2000-01-31 Thread Phillip Deackes
Johann Spies [EMAIL PROTECTED] wrote:
 
 Thanks for the information on your .forward file.  I also use procmail
 at
 the moment.  In my setup I can use the following script to produce a
 list
 of all the email I have received today:
 
 grep `date \+ %a %b %e\` ~/.procmail/log | nl
 
 Does filtering with exim produce a logfile that I can use for the same
 purpose?

Sorry, I have no idea. Maybe someone else can enlighten us?

Cheers.


--
Phillip Deackes
Debian Linux 


Re: mail filtering techniques

2000-01-31 Thread Mike Werner
On Mon, Jan 31, 2000 at 07:59:36AM +0200, Johann Spies wrote:
 On Sun, 30 Jan 2000, Phillip Deackes wrote:
 
  I used to use procmail to deliver mail, but I prefer the Exim approach.
 
 Thanks for the information on your .forward file.  I also use procmail at
 the moment.  In my setup I can use the following script to produce a list
 of all the email I have received today:
 
 grep `date \+ %a %b %e\` ~/.procmail/log | nl
 
 Does filtering with exim produce a logfile that I can use for the same
 purpose?

exim does indeed log mail that it transfers - both incoming as well
as outgoing.  In that log, it tells where it put incoming mail.  Here's
a sample from my log (warning: this will not wrap very nicely):

2000-01-31 15:18:16 12FNH6-Kj-00 = [EMAIL PROTECTED] H=localhost 
[127.0.0.1] U=mike P=esmtp S=1695 [EMAIL PROTECTED]
2000-01-31 15:18:17 12FNH6-Kj-00 = /home/mike/Mail/debian-user [EMAIL 
PROTECTED] D=userforward T=address_file
2000-01-31 15:18:17 12FNH6-Kj-00 Completed
2000-01-31 15:18:18 12FNH7-Kj-00 = [EMAIL PROTECTED] H=localhost 
[127.0.0.1] U=mike P=esmtp S=2043 [EMAIL PROTECTED]
2000-01-31 15:18:18 12FNH7-Kj-00 = /home/mike/Mail/suzuki-l [EMAIL 
PROTECTED] D=userforward T=address_file
2000-01-31 15:18:18 12FNH7-Kj-00 Completed
2000-01-31 15:18:20 12FNH9-Kj-00 = [EMAIL PROTECTED] H=localhost 
[127.0.0.1] U=mike P=esmtp S=4934 [EMAIL PROTECTED]
2000-01-31 15:18:20 12FNH9-Kj-00 = /home/mike/Mail/suzuki-bikes [EMAIL 
PROTECTED] D=userforward T=address_file
2000-01-31 15:18:20 12FNH9-Kj-00 Completed

The symbol = says who it is from, the = says where exim decided to put
that message.  It looks like your script should work with some minor
changes.  I'm really not sure, but the information that gets logged
might be configurable to some point.  I haven't dug into exim's docs
quite that deeply yet.
-- 
Mike Werner  KA8YSD   |  Where do you want to go today?
ICQ# 12934898 |  As far from Redmond as possible!
'91 GS500E|
Morgantown WV |  Only dead fish go with the flow.


Re: mail filtering techniques

2000-01-30 Thread Pavel Epifanov
On Thu, 27 Jan 2000, Ethan Benson wrote:

=I am wondering what different methods people here are using to filter 
=your mail?   (ie each mailing list to its own mailbox or other such 
=techniques of dealing with several high volume lists)

I am using fetchmail+procmail+pine+postfix.

fetchmail - get mail from POP3 accounts
procmail - filter/place mails to right folders
pine - read/create mail
postfix - local delivery on machine and delivery my mail directly to MX hosts.

My ~/.procmail file looks like:

===cut===
# $Id: .procmailrc,v 1.25 2000/01/28 20:53:46 xxx $

# system
VERBOSE=on
LOGFILE=/var/log/mail/procmail.user
TODAYSDATE=`date +%c`
 
# log
LOG = ..New

# create copy of all mail before processing
:0 c
/var/log/mail-backup

# spam (no To: field)
# exception: CityCat
:0 H
* !^TO
* !^From: Citycat
mail/spam

# anacron (in From:)
:0 H
* ^From:.*\(Anacron\)
mail/noteroot

# JobServe
:0 H
* ^From:[EMAIL PROTECTED]
mail/jobs

# Debian-Russian
:0 H
* ^X-Loop: debian-russian
* ^Precedence: list
mail/Deb-RU

# The rest of CityCat
:0 H
* ^From: CityCat 
mail/CityCat

# confirmation for mails
# not DAEMON, CityCat, Me
# with Return-Receipt ON
:0 Hhcw
* !^FROM_DAEMON
* !^X-Loop: [EMAIL PROTECTED]
* !^From: Citycat
* !^From:.*\[EMAIL PROTECTED]
* ^Return-Receipt-To.*
* ^Subject: \/.*
| (formail -rt \
   -A Precedence: junk \
   -A X-Loop: [EMAIL PROTECTED] \
   -I Subject: Receipt: $MATCH ; \
   echo Dear Sir/Madam, ; \
   echo  ; \
   echo Your message $MATCH ; \
   echo   has been delivered to $LOGNAME at $TODAYSDATE.; \
   echo  ; \
   echo -- ; \
   echo  PROCMAIL confirmation routine at $HOST ; \
   )  | $SENDMAIL -oi -t

# MIME uncompressing
:0
* ^Content-Type: *text/plain
{
  :0 fbw
  * ^Content-Transfer-Encoding: *quoted-printable
  | mimencode -u -q

  :0 Afhw
  | formail -I Content-Transfer-Encoding: 8bit

  :0 fbw
  * ^Content-Transfer-Encoding: *base64
  | mimencode -u -b
  
  :0 Afhw
  | formail -I Content-Transfer-Encoding: 8bit
}
===cut===

---
Regards,
Pavel Epifanov.

[EMAIL PROTECTED] , [EMAIL PROTECTED]



Re: mail filtering techniques

2000-01-30 Thread Phillip Deackes
On Thu, 27 Jan 2000, Ethan Benson wrote:

 I am wondering what different methods people here are using to filter 
 your mail?   (ie each mailing list to its own mailbox or other such 
 techniques of dealing with several high volume lists)

I fetch mail from my IP's POP3 mailserver using fetchmail. The fetched
mail is then handed to Exim to filter and deliver. Simple and elegant.

Here is my ~/.fetchmailrc 

poll pop.clara.net
protocol pop3
username scgf is gsmh on this system
password xxx

Exim gets involved in filtering mail into folders because I have a
~/.forward file like this:

# Exim filter  == do not edit or remove this line!

if error_message then finish endif
logfile $home/eximfilter.log

if $header_to: contains sah1 
then deliver scott

elif $h_x-mailing-list matches ^debian-(.*)@lists\\.debian\\.org
then seen save $home/Mail/Debian 

elif $h_subject: contains CLOS_Linux
then seen save $home/Mail/Corel

elif $h_subject: contains dvduk
then seen save $home/Mail/DVD

elif $h_subject: contains Debian-uk
then seen save $home/Mail/Debian

elif $h_subject: contains Pilot-Unix
then seen save $home/Mail/Pilot-Unix

elif $h_subject: contains AWL
then seen save $home/Mail/Applix

endif


The second rule is neat because it catches all the Debian mailing list
messages.

I used to use procmail to deliver mail, but I prefer the Exim approach.




--
Phillip Deackes
Debian Linux 


Re: mail filtering techniques

2000-01-29 Thread Damon Muller
Quoth Ethan Benson, 
 I am wondering what different methods people here are using to filter 
 your mail?   (ie each mailing list to its own mailbox or other such 
 techniques of dealing with several high volume lists)

I'm on a couple of high-volume mailing lists, easily getting over 100
mails a day, and I too faced this problem when I evolved to linux as my
primary platform.

My strategy is that each mailing list I'm on goes into it's own mailbox
(all stored in ~/Mail). 

As for tools, I use fetchmail to get my mail from the isp. Fetchmail
delivers directly to maildrop (which is a debian package), which has
rules to deliver different groups to different mailboxes. I have the
following line in my .muttrc file (which will give you an idea of the
number of lists I'm on):

Mailboxes ! =freshmeat =debian-security-announce =debian-weekly-news \
=debian-user =profiling-l =security-focus =antionline \
=debian-announce =funny =uni =stuff =work =damage =cep-discussion \
=behavior_analysis-l =umpanews =criminal_profiling =happyhacker

So whenever maildrop delivers any mail to any mailbox, it lets me know.
I can also use `c TAB TAB' to get a list of all my mailboxes, with a
tag showing which ones have new mail.

All in all, I find this to be every bit as efficient as anything I have
used in windoze. Many people on this list will probably recoment
procmail or exim .forward files for forwarding. I have never used
either, as I find maildrop does everything I need, but try out a few
things to find out what works for you.

cheers,

damon



-- 
Damon Muller ([EMAIL PROTECTED]) /  It's not a sense of humor.
* Criminologist /  It's a sense of irony
* Webmeister   /  disguised as one.
* Linux Geek  / - Bruce Sterling 



pgp1zYt6nogRc.pgp
Description: PGP signature


Re: mail filtering techniques

2000-01-27 Thread Gary Hennigan
Ethan Benson [EMAIL PROTECTED] writes:
 I am wondering what different methods people here are using to filter 
 your mail?   (ie each mailing list to its own mailbox or other such 
 techniques of dealing with several high volume lists)
 
 I am going to be switching to mutt soon and the filtering method I 
 have used on macos with Eudora probably will not work well or at all 
 with mutt (i set a color 'label' on differing groups of messages say 
 by list and sort by that in one monolithic in box)
 
 (yes I did figure out the MTA issues, will post a summary of how to 
 do that tomorrow)

I use a two-layer approach. My MTA pushes my mail through procmail. My
procmail filter is setup to put it in one of three places, a box for
Mailing lists mail, a box for mail addressed directly to me, and
everything else to another box (mostly spam).

I use gnus for email reading and it has it's own filtering capability
which I use to sort mail to specific groups using an nnml backend. 

It sounds compilicated, and I suppose it would be if I had to start
from scratch, but this is just the method that's sortf of built up
over many years, and it gives very tight control over my email and a
lot of flexibility.

Gary


Re: mail filtering techniques

2000-01-27 Thread Ehren Wilson
Hello,

I have in the past, depending on what MTA I am using used two different
filtering methods.  When using exim I simply use the built in .forward
filtering which is very well described in there docs and on www.exim.org.
On another system (the one I am currently writing from actually) that runs
sendmail, I use procmail to filter and sort my mail.  Good instrucitons on
how to set this up can be found at

www.ii.com/internet/robots/procmail/

and a bunch of good links are found on the procmail site.  Anyone else
use something else?  I personally found procmail a bit clunky after using
exim's functionality but well mileage will vary.

Ehren Wilson

On Thu, 27 Jan 2000, Ethan Benson wrote:

 hi,
 
 I am wondering what different methods people here are using to filter 
 your mail?   (ie each mailing list to its own mailbox or other such 
 techniques of dealing with several high volume lists)
 
 I am going to be switching to mutt soon and the filtering method I 
 have used on macos with Eudora probably will not work well or at all 
 with mutt (i set a color 'label' on differing groups of messages say 
 by list and sort by that in one monolithic in box)
 
 (yes I did figure out the MTA issues, will post a summary of how to 
 do that tomorrow)
 
 thanks
 
 -- 
 Ethan Benson
 To obtain my PGP key: http://www.alaska.net/~erbenson/pgp/
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 


Re: mail filtering techniques

2000-01-27 Thread Mike Werner
On Thu, Jan 27, 2000 at 04:52:04PM +, Ethan Benson wrote:
 I am wondering what different methods people here are using to filter 
 your mail?   (ie each mailing list to its own mailbox or other such 
 techniques of dealing with several high volume lists)
 
 I am going to be switching to mutt soon and the filtering method I 
 have used on macos with Eudora probably will not work well or at all 
 with mutt (i set a color 'label' on differing groups of messages say 
 by list and sort by that in one monolithic in box)

I use mutt to read mail as well - I'm still amazed at just how configurable
it is.  For my MTA I use exim - it was pretty easy to get setup.  The only
thing that was a bit difficult was getting the message headers rewritten
correctly.  Also, exim has filtering capability built into it.  I looked
at using procmail, but exim's filtering seemed easier to setup.

I'm on a bunch of different lists - something like two dozen.  As a result
I average 200 to 250 emails per day.  I've got each list going into its
own box - this makes it easier to keep track of the different threads going
on in the different lists.  I find this works pretty well - I still get a
bit confused at times but nowhere *near* as confused as when it was all
going into one massive inbox.
-- 
Mike Werner  KA8YSD   |  Where do you want to go today?
ICQ# 12934898 |  As far from Redmond as possible!
'91 GS500E|
Morgantown WV |  Only dead fish go with the flow.