[Users] Filter->Condition: test for missing Date header?

wwp wwp at claws-mail.org
Mon Mar 24 23:40:02 UTC 2025


Hello Pierre,


On Mon, 24 Mar 2025 19:22:30 -0400 Pierre Fortin via Users <users at lists.claws-mail.org> wrote:

[snip]
> Didn't have to wait long for one of these messages.
> However, this rule didn't trigger; so I opened the Filter Log, cleared
> it, and manually filtered which gave:
> [2025-03-24 19:08:36] filtering message (manually)
>                        message file: /home/pfortin/Mail.pfortin/inbox/72296
>                        Date: (null)
>                        From: 楽天証券からのお知らせ  <supportcontact at glaq.com>
>                        To: pfortin at pfortin.com
>                        Subject: 【楽天証券】株式取引手数料最大50%OFF!期間限定スペシャルオファー
> [2025-03-24 19:08:36] processing rule 'No Date' [ ~header "Date" regexpcase "." color 2 ]
> > rule is not account-based  
> [2025-03-24 19:08:36] checking if message matches [ ~header "Date" regexpcase "." ]
> > message does not match  
> 
> Also tried: header "Date" regexpcase "."  (contains)
> 
> So it appears there's no way to check for a missing header...
> 
> I suspect the "juice ain't worth the squeeze" to add Header "is missing" as a 3rd choice to "contains"/"doesn't contain".

I also thought of: ~headers_part regexp "^Date: ", but it's maybe too
late this evening for me to think clearly :-/.


Regards,

-- 
wwp
https://useplaintext.email/


More information about the Users mailing list