Discussion:
[maildropl] Two questions - filter problems
Philip Rhoades
2017-04-23 13:26:28 UTC
Permalink
People,

I have this is my .mailfilter file:

# .maidsafe {{{1
if ( /^From:.*maidsafe/ || /^From:.*slack.com/ || /^From:.*safenetwork/
|| /^From:.*safex*/ )
{
exception {
to $DEFAULT/.0_safe/
}
}

but this spam was delivered to the 0_safe folder - from my
.getmail/.maildrop.log file:

File: /home/phil/Maildir/.0_safe/

Date: Tue Apr 18 06:08:04 2017
From: "SafeStreets" <***@QuietJet.net>
Subj: Sleep well this Holliday Season with ADT Get a complete system for
Free
File: /home/phil/Maildir/.0_safe/
(4884)

Markers: ---------------------------------------------
(**) from config file, (II) informational, (WW) warning
--------------------------------------------------------

Why is that mail getting put into that folder? - it doesn't match the
filtering as far as I can see . .

Also, is there a way to check for a missing header "To:" line so those
mails can be filtered to a spam folder?

Thanks!

Phil.
--
Philip Rhoades

PO Box 896
Cowra NSW 2794
Australia
E-mail: ***@pricom.com.au
Marvin Renich
2017-04-23 17:28:52 UTC
Permalink
Post by Philip Rhoades
People,
# .maidsafe {{{1
if ( /^From:.*maidsafe/ || /^From:.*slack.com/ || /^From:.*safenetwork/
|| /^From:.*safex*/ )
^
This is your problem. It is matching "From:", followed by any number of
characters, followed by "safe", followed by zero or more occurrences of
"x" (x*).
Post by Philip Rhoades
{
exception {
to $DEFAULT/.0_safe/
}
}
but this spam was delivered to the 0_safe folder - from my
File: /home/phil/Maildir/.0_safe/
Date: Tue Apr 18 06:08:04 2017
Subj: Sleep well this Holliday Season with ADT Get a complete system for
Free
File: /home/phil/Maildir/.0_safe/
(4884)
...Marvin
Philip Rhoades
2017-04-24 01:58:13 UTC
Permalink
Marvin,
Post by Marvin Renich
Post by Philip Rhoades
People,
# .maidsafe {{{1
if ( /^From:.*maidsafe/ || /^From:.*slack.com/ ||
/^From:.*safenetwork/
|| /^From:.*safex*/ )
^
This is your problem. It is matching "From:", followed by any number of
characters, followed by "safe", followed by zero or more occurrences of
"x" (x*).
Ah . . of course, ZERO or more . .

Many thanks.

BTW, for my other question I put in:

# .z_spam {{{1
if ( !/^To:/ )
{
exception {
to $DEFAULT/.z_spam/
}
}

I hope that works!

Regards,

Phil.
Post by Marvin Renich
Post by Philip Rhoades
{
exception {
to $DEFAULT/.0_safe/
}
}
but this spam was delivered to the 0_safe folder - from my
File: /home/phil/Maildir/.0_safe/
Date: Tue Apr 18 06:08:04 2017
Subj: Sleep well this Holliday Season with ADT Get a complete system for
Free
File: /home/phil/Maildir/.0_safe/
(4884)
...Marvin
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Courier-maildrop mailing list
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
--
Philip Rhoades

PO Box 896
Cowra NSW 2794
Australia
E-mail: ***@pricom.com.au
Loading...