use uids to manipulate mails
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 29 Mar 2016 08:38:13 +0000 (10:38 +0200)
committerOlivier Matz <olivier.matz@6wind.com>
Tue, 29 Mar 2016 08:38:13 +0000 (10:38 +0200)
commitc3f8bd76c0ca6ccaf323c0df86cf6b233b90fe1d
tree03796ab61ff14d1105f990c108a248214a4b8882
parent4057b301a70d66aba805613e6c8798aaf86c719b
use uids to manipulate mails

The item identifier can be modified in some conditions, for instance
after an expunge operation. This could leads to manipulate the wrong
mail. Use uids instead, which does not vary for a given mail.

Signed-off-by: Olivier Matz <zer0@droids-corp.org>
imapami/actions.py
imapami/rules.py