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"
>>> where
>>> "c1" part can change, but "" 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 *

> 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

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


And it should match on the substring ""

Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!

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!
squirrelmail-users mailing list
Posting guidelines:
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives:
List info (subscribe/unsubscribe/change options):

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

  Powered by Linux