Fixes: c3f8bd76c0ca ("use uids to manipulate mails")
Signed-off-by: Olivier Matz <zer0@droids-corp.org>
mail_data = {'item': item, 'inbox': inbox}
if parts != []:
resp, data = ami.imap.uid("FETCH", item, parts_str)
mail_data = {'item': item, 'inbox': inbox}
if parts != []:
resp, data = ami.imap.uid("FETCH", item, parts_str)
if resp != 'OK':
ami.logger.warning(
"search failed: server response = %s, skip item",
if resp != 'OK':
ami.logger.warning(
"search failed: server response = %s, skip item",