Re: filter based on header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please do not top-post.

> Paul Lesniewski wrote:
>> On 2/24/16, Marchello Lippi <marchello@xxxxxx> wrote:
>>>  Hi all,
>>>
>>> How do I create filter based on header?
>>> I can see "Match: header" among filter types.
>>> The header I would like to filter is: "Received: from c1.b1.a1.com"
>>> where
>>> "c1" part can change, but "b1.a1.com" part is always the same.
>>> Please help me to do it properly.
>>> Thanks ahead.
>>
>> You have to specify what filtering tool you use before anyone can be
>> of much help.  I can only guess and say that if the filtering
>> mechanism you're using supports regular expression matching, you'd
>> probably put something like:
>>
>> /^Received: from \S+\.b1\.c1\.com/i
>>
>> With or without the delimiters.  If wildcards are used for more simple
>> matching, just:
>>
>> Received: from *.b1.c1.com

> I do not use any other filtering tools but built-in filters in
> SquirrelMail 1.4.23 [SVN]. I just can not made it work with headers (but
> From-based and Subject-based rules works fine). Hope to find out how to
> set it without external tools like procmail. Any built-in specific filter
> example for headers will be appreciated.

There's no built-in filtering.  There is a plugin that SquirrelMail
ships with called "filters" that you must enable in order to use it.
If that's what you did, you have to be specific if you want us to help
you.

The SquirrelMail filters plugin uses IMAP search commands which do not
support wildcards.  In that case you should be able to use this:

Received: .b1.c1.com

And it should match on the substring ".b1.c1.com"

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users



[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux