search undeleted messages
This commit is contained in:
parent
72b995dcb1
commit
3c3adda881
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class ImapFilter:
|
|||
)
|
||||
self.imap.select(mailbox=mailbox['mailbox'], readonly=False)
|
||||
self._log.debug("Searching for all messages in mailbox '%s'...", mailbox['mailbox'])
|
||||
typ, data = self.imap.search('UTF-8', 'ALL')
|
||||
typ, data = self.imap.search('UTF-8', 'UNDELETED')
|
||||
if typ != 'OK':
|
||||
self._log.error('Error, server replied: %s', data)
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue