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 at backup.invalid mdbox:/home/copymail/mdbox "" mailbox INBOX BODY "Greetings of the day" doveadm import -u restore at 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 at 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 at backup.invalid mdbox:/home/copymail/mdbox "" mailbox INBOX BODY "Greetings of the day" > doveadm import -u restore at 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 at gmail.com>
Possibly Parallel Threads
- Massive LMTP Problems with dovecot
- Deliver all addresses to the same mdbox:?
- 2.3.7 slower than 2.3.6?
- dovecot 2.3.7.2-1~bionic: Performance issues caused by excessive IO to ~/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.tmp
- Massive LMTP Problems with dovecot