How to query for headers by regexp?
I need to find all mails with a certain numerical range in my quarantine:
X-Spam-Status: No, score=4.5 tagged_above=2 required=4.6 ...
Assume I'd be looking for 4.5-6.0; so I tried searching for
doveadm import -u restore mdbox:/home/quarantine/mdbox ""
mailbox INBOX header X-Spam-Status "No, score=4.5"
doveadm import -u restore mdbox:/home/quarantine/mdbox ""
mailbox INBOX header X-Spam-Status "No, score=4.6"
etc.
Which would only return 2 Mails, with score score=4.5 What am I doing wrong here? Can I search using regular expressions?
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | https://www.charite.de
Am 23.04.2017 um 18:59 schrieb Ralf Hildebrandt:
I need to find all mails with a certain numerical range in my quarantine:
X-Spam-Status: No, score=4.5 tagged_above=2 required=4.6 ...
Assume I'd be looking for 4.5-6.0; so I tried searching for
doveadm import -u restore mdbox:/home/quarantine/mdbox ""
mailbox INBOX header X-Spam-Status "No, score=4.5"doveadm import -u restore mdbox:/home/quarantine/mdbox ""
mailbox INBOX header X-Spam-Status "No, score=4.6"etc.
Which would only return 2 Mails, with score score=4.5 What am I doing wrong here? Can I search using regular expressions?
Hi Ralf,
i remember doing something equal with dates years ago by combine with
https://wiki.dovecot.org/Tools/Doveadm/Search
did you do a look at this ?
Sorry i cant remember the exact syntax
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG, 80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
participants (2)
-
Ralf Hildebrandt
-
Robert Schetterer