How do I search for "greetings of the day"
My users say that "greetings of the day" occurs in academic spam a lot. Since I don't trust my users, I opted to verify this bold claim.
But how do I search for a sequence of multiple words?
doveadm import -u restore@backup.invalid mdbox:/home/copymail/mdbox "" mailbox INBOX BODY "Greetings of the day" doveadm import -u restore@backup.invalid mdbox:/home/copymail/mdbox "" mailbox INBOX TEXT "Greetings of the day" (what's the difference betweeen BODY and TEXT?)
Is it even possible, given that "the" and "of" are probably stop words?
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
On Tue, 29 Oct 2019, Ralf Hildebrandt wrote:
But how do I search for a sequence of multiple words?
doveadm import -u restore@backup.invalid mdbox:/home/copymail/mdbox "" mailbox INBOX BODY "Greetings of the day" doveadm import -u restore@backup.invalid mdbox:/home/copymail/mdbox "" mailbox INBOX TEXT "Greetings of the day" (what's the difference betweeen BODY and TEXT?)
From what I remember, BODY does message body, TEXT does header and body (the entire messages).
Is it even possible, given that "the" and "of" are probably stop words?
If your looking for the entire strings "Greetings of the day" anywhere, then use
doveadm fetch ... TEXT "Greetings of the day"
else if any sequence of these words in the body, use
doveadm fetch ... BODY "Greetings" \
AND BODY "of" \
AND BODY "the"
AND DAY "day"
Joseph Tam <jtam.home@gmail.com>
participants (2)
-
Joseph Tam
-
Ralf Hildebrandt