I want to block all messages from a particular country

Asked by Dick Rounds

In the last few months I have been receivung many emails with a .pdf file attached. Many of these come from sendors in foreign countries.

A knowledgeable person told me that the pdf files contain a Windows virus and I would like to block and/or delete them automatically. Is there a way to develop a filter that would, for example, delete all messages from senders with a Chinese email address?

Dick Rounds

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu evolution Edit question
Assignee:
No assignee Edit question
Solved by:
C de-Avillez
Solved:
Last query:
Last reply:
Revision history for this message
Dmitry Mityugov (dmitry-mityugov) said :
#1

I always wanted to know how to do this in Evolution (there is a way I am sure), but finally I just switched to Thunderbird Mail that contains an embedded spam filter; you can mark suspicious messages as spam (and not spam messages as not spam) and the filter will learn from your actions. It took 3 times to me to teach the filter to recognize those messages with pdf attachments; now they are moved to spam folder automatically.

And of course, Google Mail has a spam filter too

Revision history for this message
Dick Rounds (dickrounds) said :
#2

Thanks Dmitry.

I've tried using wildcards to filter on anyone fro various countries but
Evolution donesn't seem to accept them.

I may try Thunderbird.

Dick

On Sat, 28 Jul 2007 09:25:14 -0400, Dmitry Mityugov
<email address hidden> wrote:

> Your question #10550 on evolution in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/evolution/+question/10550
>
> Status: Open => Answered
>
> Dmitry Mityugov proposed the following answer:
> I always wanted to know how to do this in Evolution (there is a way I am
> sure), but finally I just switched to Thunderbird Mail that contains an
> embedded spam filter; you can mark suspicious messages as spam (and not
> spam messages as not spam) and the filter will learn from your actions.
> It took 3 times to me to teach the filter to recognize those messages
> with pdf attachments; now they are moved to spam folder automatically.
>
> And of course, Google Mail has a spam filter too
>

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Revision history for this message
Best C de-Avillez (hggdh2) said :
#3

Evolution also has spam filters. You can use spamassassin or bogofilter (either one or the other, but not both at the same time). No matter which one you use, the filters have to be trained first -- and this is the same for almost any spam filters, on almost all email clients.

So.

1. Install either bogofilter or spamassassin ('sudo apt-get install bogofilter' or 'sudo apt-get install spamassassin')
2. Configure your Evo to use one of them.
3. restart Evo.
4. train the spam plugin.

One easy way to train it is to save a bit of spam -- leave it in the junk folder, for example. Afte collected some tens of it, go and mark all of them as spam.

Then get some of good emails, and mark them as ham.

You should be all set.

Revision history for this message
Dick Rounds (dickrounds) said :
#4

I'm feeling very stupid!

I had no trouble installing bogofilter but I'm completely lost on how to
configure Evolution. I've searched for help in doing that without success.
If you could provide a little more guidance I'd really appreciate it.

Dick

On Tue, 07 Aug 2007 12:31:30 -0400, hggdh
<email address hidden> wrote:

> Your question #10550 on evolution in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/evolution/+question/10550
>
> Status: Open => Answered
>
> hggdh proposed the following answer:
> Evolution also has spam filters. You can use spamassassin or bogofilter
> (either one or the other, but not both at the same time). No matter
> which one you use, the filters have to be trained first -- and this is
> the same for almost any spam filters, on almost all email clients.
>
> So.
>
> 1. Install either bogofilter or spamassassin ('sudo apt-get install
> bogofilter' or 'sudo apt-get install spamassassin')
> 2. Configure your Evo to use one of them.
> 3. restart Evo.
> 4. train the spam plugin.
>
> One easy way to train it is to save a bit of spam -- leave it in the
> junk folder, for example. Afte collected some tens of it, go and mark
> all of them as spam.
>
> Then get some of good emails, and mark them as ham.
>
> You should be all set.
>

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Revision history for this message
C de-Avillez (hggdh2) said :
#5

No problem, Dick.

Go to Edit/Plugins, then enable Bogofilter, and disable spamassasin.

Err... what version of Evolution are you running? YMMV...

Revision history for this message
Dick Rounds (dickrounds) said :
#6

OK-did that-Now I need to go back and read your 1st how to again. Won't be
until tomorrow, though.

I'm using V 2.10.1

Thanks again.

Dick

On Tue, 07 Aug 2007 16:12:33 -0400, hggdh
<email address hidden> wrote:

> Your question #10550 on evolution in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/evolution/+question/10550
>
> Status: Open => Needs information
>
> hggdh requested for more information:
> No problem, Dick.
>
> Go to Edit/Plugins, then enable Bogofilter, and disable spamassasin.
>
> Err... what version of Evolution are you running? YMMV...
>

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Revision history for this message
Dick Rounds (dickrounds) said :
#7

Seems to be working with bogofilter. I still need to do the training thing.

Dick