[Alpine-info] Filter patterns and whitespace
Bret Busby via Alpine-info
alpine-info at u.washington.edu
Thu Jul 17 16:53:03 PDT 2025
On 18/7/25 07:44, Joshua Miller via Alpine-info wrote:
> On Thu, Jul 17, 2025 at 6:28 PM Eduardo Chappa via Alpine-info
> <alpine-info at u.washington.edu <mailto:alpine-info at u.washington.edu>> wrote:
>
> On Wed, 16 Jul 2025, Ferdinand Goldmann via Alpine-info wrote:
>
> > Hi,
> >
> > wanted to filter out annoying spam mails using a filter rule on
> the domain of
> > the spam sender. The spam mails From fields all have the format of
> >
> > From: Annoying Sender at foo.host.com <mailto:Sender at foo.host.com>
> >
> > where the "@foo.host.com <http://foo.host.com>" part is always
> the same.
>
> Have you tried using scores instead? The idea is to give scores to
> messages based on certain characteristics. All scores are added, so you
> would filter based on the total score. To avoid the space problem you
> would define two (or more) score rules where each rule matches each
> part
> of the From field that you identified for messages you want to filter.
>
>
> Perhaps I'm misunderstanding, but I think using a pattern match like
> "From pattern = @foo.host.com <http://foo.host.com>" would do what is
> being asked. That will match mails coming from "Annoying
> Sender at foo.host.com <mailto:Sender at foo.host.com>" as well as
> "Bob at foo.host.com <mailto:Bob at foo.host.com>".
>
Alternatively, if you do not want to filter out everyone in the domain
name, simply use, for
"From: Annoying Sender at foo.host.com <mailto:Sender at foo.host.com>"
the parameter
Sender at foo.host.com
That should work.
Try it...
..
Bret Busby
Armadale
West Australia
(UTC+0800)
..............
More information about the Alpine-info
mailing list