29 Oct
2019
29 Oct
'19
11:49 p.m.
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