Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

spam and imap

0 views
Skip to first unread message

Uwe Brauer

unread,
Sep 23, 2003, 11:33:17 AM9/23/03
to
Hello

I am reading my mail via nnimap, using the configuration.
(setq gnus-select-method (list 'nnimap "ucmail.ucm.es"))
(ognus-0.24)

Is there any possibility to use an anti-spam filter (for imap)?

Thanks


Uwe Brauer

Uwe Brauer

unread,
Sep 23, 2003, 2:10:53 PM9/23/03
to
Uwe Brauer <o...@eucmos.sim.ucm.es> writes:

Uwe Brauer <o...@eucmos.sim.ucm.es> writes:

Since I am a victim of MS upgrade patch virus (300 messages a day) I
am in a hurry to settle this.

I found out (lifelogs.com/spam/spam.pdf) that the following setting
should allow some spam filtering with nnimap

(require 'spam)

(setq
nnimap-split-rule 'nnimap-split-fancy
nnimap-split-inbox "INBOX"
nnimap-split-fancy '(|
(: spam-split)
;; default mailbox
"mail"))

I am not sure about the value of the default mailbox "mail" (that is
should it be created, it will be greated automatically?)

To understand the spam filter I also put (setq spam-use-BBDB t)

Then I want spam mail to be put in another imap folder called
INBOX.spam (I am not sure this is possible)

So I set using customize

* Destination for spam-processed articles at summary exit: [Value
Menu] Move to a group: "nnimap+ucmail.ucm.es:INBOX.spam" Where
spam-processed articles will go at summary exit.

I tried with or without quotes (not sure whether is should be a string)
however when visiting my imap INBOX, all new mails, even those whose
authors are in my BBDB got marked like this
E 6667 [ Microsoft Corporatio] 23-Sep 196 newest upgrade
E 6668 [ delivery system ] 23-Sep 15 error advice
E 6669 [ Microsoft Security D] 23-Sep 192 Newest Security Upgrade
E 6670 [ MS Mail Delivery Sys] 23-Sep 15 Failure Announcement
E 6671 [ "Microsoft Corporati] 23-Sep 206 last network security upgrade
E 6672 [ MS Corporation Techn] 23-Sep 208
E 6673 [ Uwe Brauer ] 23-Sep 0 test my spam
E 6674 [ Mail Service ] 23-Sep 16
$. 6675 [ fetchmail-friends-re] 23-Sep 133 Fetchmail-friends Digest
$. 6676 [ idah...@freenet.de] 23-Sep 115 Reply urgently
$. 6677 [ MS Inet Email Storag] 23-Sep 16 Letter
$. 6678 [ System ] 23-Sep 15 Abort Report
$. 6679 [ xemacs-patches-reque] 23-Sep 452 xemacs-patches digest
$. 6680 [ Internet Mail System] 23-Sep 14 Bug Announcement
$. 6681 [ MS Network Mail Deli] 23-Sep 12 Bug Notice

Now when leaving the summary, the spams were not moved to the group I
specified.
What did I do wrong?
Any help is greatly apreciated.

Uwe Brauer

Ted Zlatanov

unread,
Sep 23, 2003, 3:39:35 PM9/23/03
to
On Tue, 23 Sep 2003, o...@mat.ucm.es wrote:

> Since I am a victim of MS upgrade patch virus (300 messages a day) I
> am in a hurry to settle this.
>
> I found out (lifelogs.com/spam/spam.pdf) that the following setting
> should allow some spam filtering with nnimap

Please get the latest CVS Gnus and look at the manual. It will give
you a much better explanation of all the options and configuration
for spam.el. The spam.pdf file is an overview I wrote in January (I
should probably mark it as outdated).

> (require 'spam)

You should also set spam-install-hooks to t, or set one of the
spam-use-XYZ variables before loading spam.el. If you do neither,
spam.el will not install its hooks.

Your split rules look OK.

> I am not sure about the value of the default mailbox "mail" (that is
> should it be created, it will be greated automatically?)

Yes. You'll be asked about it.

> To understand the spam filter I also put (setq spam-use-BBDB t)

That will recognize people in your BBDB and mark their messages as
ham (not spam).

> Then I want spam mail to be put in another imap folder called
> INBOX.spam (I am not sure this is possible)

Set the spam-split-group variable to the destination,
e.g. "INBOX.spam". Note that this will apply to all backends, so
you'll get nnimap:spam, nnml:spam, etc.

> Now when leaving the summary, the spams were not moved to the group
> I specified. What did I do wrong? Any help is greatly apreciated.

See spam-install-hooks above, read the manual from CVS, and you
should be OK. Feel free to ask more questions.

Thanks
Ted

Berend de Boer

unread,
Sep 23, 2003, 4:59:40 PM9/23/03
to
>>>>> "Uwe" == Uwe Brauer <o...@eucmos.sim.ucm.es> writes:

Uwe> Hello I am reading my mail via nnimap, using the
Uwe> configuration. (setq gnus-select-method (list 'nnimap
Uwe> "ucmail.ucm.es")) (ognus-0.24)

Uwe> Is there any possibility to use an anti-spam filter (for
Uwe> imap)?

I wrote emc for that reason: http://www.pobox.com/~berend/emc/.

It's still in beta stage, so you might try that. I appreciate any
feedback, and I apologize for the manual not being completely
finished.

--
Regards,

Berend. (-:

Uwe Brauer

unread,
Sep 24, 2003, 8:58:50 AM9/24/03
to
Berend de Boer <ber...@xsol.com> writes:

> I wrote emc for that reason: http://www.pobox.com/~berend/emc/.
>
> It's still in beta stage, so you might try that. I appreciate any
> feedback, and I apologize for the manual not being completely
> finished.

Hi

Thanks for this at the moment I need a drastical solution, that is all
mail not being in a whitelist, will be classified as spam.

So I might try out your package later.


Uwe

Uwe Brauer

unread,
Sep 24, 2003, 1:02:16 PM9/24/03
to


Hello

thanks for answer, I did install the latest snapshot and
cared about the hooks, so my setting is (due to the new manual):

(setq
nnimap-split-rule 'nnimap-split-fancy
nnimap-split-inbox "INBOX"
nnimap-split-fancy '(|
(: spam-split)
;; default mailbox

"mymail"))
(setq spam-use-BBDB-exclusive t)
(setq spam-use-BBDB t)
(require 'spam) ;this has to be placed there.

It started to work.


>> I am not sure about the value of the default mailbox "mail" (that is
>> should it be created, it will be greated automatically?)
>
> Yes. You'll be asked about it.

The imap server had already a imap directory called mail, hence I
have chosen "mymail"

Then in worked like charm, that is the ham mail is moved to the mymail
folder (group) the spam mail to the spam folder (group).
The only inconvenience is that I configure always my groups such that
they are always visible and that all messages are displayed. In the
imap case this lead to
So
461: nnimap+ucmail.ucm.es:mymail
98: nnimap+ucmail.ucm.es:spam have been created.
458: mymail

a little confusing I'd say, but this seems to be a problem with gnus
way of dealing with imap groups. I asked about this in a different mail.


However 2 question occur to me:

1. The splitting is necessary and essential, I cannot keep my ham mail
in the imap inbox and move only the spam to the spam folder
(group)?
2. The variables which appears in the customise buffer as

* Destination for spam-processed articles at summary exit: [Value Menu] Expire


Where spam-processed articles will go at summary exit.

Do I understand correctly this is thought for splitting (moving)
already classified mail further?


Thanks again, now thanks to spam.el I can breath again.

Uwe

Ted Zlatanov

unread,
Sep 24, 2003, 3:52:01 PM9/24/03
to
On Wed, 24 Sep 2003, o...@mat.ucm.es wrote:

> 1. The splitting is necessary and essential, I cannot keep my ham
> mail in the imap inbox and move only the spam to the spam folder
> (group)?

I don't understand the question, sorry. It's a little confusing. Do
you mean you want to leave mail in the INBOX except for spam? Gnus
can't do that currently (maybe you can send mail back to INBOX, but
I've never tried it, and it seems like a bad idea).

> 2. The variables which appears in the customise buffer as
>
> * Destination for spam-processed articles at summary exit: [Value
> Menu] Expire Where spam-processed articles will go at summary exit.
>
> Do I understand correctly this is thought for splitting (moving)
> already classified mail further?

Yes. If you have spam in any group, you can send it to another
location when you exit that group. You can also optionally process it
as spam, for bogofilter training for instance.

Ted

Uwe Brauer

unread,
Sep 25, 2003, 12:05:58 PM9/25/03
to
Ted Zlatanov <t...@lifelogs.com> writes:


>
> I don't understand the question, sorry. It's a little confusing. Do
> you mean you want to leave mail in the INBOX except for spam? Gnus
> can't do that currently (maybe you can send mail back to INBOX, but
> I've never tried it, and it seems like a bad idea).
>

yes this was what I had in mind, I as tempted to use the setting


(setq
nnimap-split-rule 'nnimap-split-fancy
nnimap-split-inbox "INBOX"
nnimap-split-fancy '(|
(: spam-split)
;; default mailbox

"INBOX"))

but was afraid to mess up my INBOX, could invoke a infinite loop.

Uwe

Ted Zlatanov

unread,
Oct 2, 2003, 2:04:13 PM10/2/03
to
On Thu, 25 Sep 2003, o...@mat.ucm.es wrote:

> Ted Zlatanov <t...@lifelogs.com> writes:
>
>
>>
>> I don't understand the question, sorry. It's a little confusing.
>> Do you mean you want to leave mail in the INBOX except for spam?
>> Gnus can't do that currently (maybe you can send mail back to
>> INBOX, but I've never tried it, and it seems like a bad idea).
>>
> yes this was what I had in mind, I as tempted to use the setting

> but was afraid to mess up my INBOX, could invoke a infinite loop.

Why don't you give it a try? It's actually a useful thing if it
works, so the INBOX can be spam-filtered in place. If it doesn't, we
can use an intermediate group and move the articles back into INBOX.

Ted

Uwe Brauer

unread,
Oct 2, 2003, 5:36:34 PM10/2/03
to

ok I was brave I did the following setting:


(setq
nnimap-split-rule 'nnimap-split-fancy
nnimap-split-inbox "INBOX"
nnimap-split-fancy '(|
(: spam-split)

"INBOX"))

it seems to work, I still don't understand why this does not create a
infinite loop but anyhow.


Uwe

0 new messages