Re: python newbie, linux novice, needs to run spamassassin
- From: Alan_C <mtbr0228AT@xxxxxxxxxxxxxxxx>
- Date: Sat, 18 Mar 2006 04:37:40 GMT
Gates Danderhoff <danderup@xxxxxxxxx> writes:
[ . . ]
I have a very simple request regarding spamassain: I just need an example
of how to run it once you have downloaded one or more emails into a
folder.
I have a python script which runs poplib and is downloading emails into a
folder, say ~/mymailin.
Each time the script is run and emails have been downloaded into the
folder, I would like to run spamassassin to read through the emails in the
folder and check them for their spamminess and if they are spammy, it
should do whatever spamassassin does: add a header and move it to another
folder, say ~/myspam, or maybe ~/mygoodemail if it's not spammy?
I'm unaware if SA can run on a folder. You may instead need poplib hands
off to SA, SA does its thing, SA hands off passes back to poplib and
poplib deposits in folder.
SA only marks (tags as spam) headers (so it appears to me). It's up
to some other filtering unit (procmail or email client with filter,
etc.) to move (a/the spam) according to rules that you tell_it/set in
the filter.
I'm yet to grok the whole thing myself.
But just ran across this:
http://linux.org.mt/article/killspam
Perhaps rare, lay person's terms utilized. Also is for
desktop/workstation, not server.
If you get something working with your few components, please share it
back here as I'd be interested to see it.
BTW if only a few emails per day, I've a Perl script, uses Net::Pop3 to
scans most recent messages on pop3 server, checks (against your list of
allowed parties whom you know, it's a list of their email addresses)
for "disallowed From entries" can see a list offered to delete,
can edit list if needed and/or pass the list back in and in doing so it
deletes only those messages that you told it from pop3 server. Then use
email client to retrieve remaining email from pop3 server. I'd willing
to share the script if someone interested. Switched ISP's and no
longer use the script -- it's login is clear text -- not such a good
idea -- although I think encrypted login is supported via another Perl
module.
--
Cu, Alan abc
.
- Prev by Date: Re: Internet Access problems in Fedora Core 4
- Next by Date: Re: External usb 2 hard drives cases
- Previous by thread: Internet Access problems in Fedora Core 4
- Next by thread: Have you ever considered of mousing ambidextrously?
- Index(es):
Relevant Pages
|