[PATCH 4/4] Another way of locating UID of just saved message

Sebastian Spaeth Sebastian at SSpaeth.de
Tue Aug 9 08:19:19 BST 2011


On Tue, 26 Jul 2011 10:59:56 +0200, Vladimir.Marek at oracle.com wrote:
> From: Vladimir Marek <vlmarek at volny.cz>
> 
> It works by fetching all headers from new messages from IMAP server an searching
> for our X-OfflineIMAP marker by using reular expression.
> +    def savemessage_fetchheaders(self, imapobj, headername, headervalue):
> +        """ We fetch all new mail headers and search for the right
> +        X-OfflineImap line by hand. The response from the server has form:

Uhh, ahh, this looks like the most hacky solution that I've ever seen
:-). But given that this is the fallback only when:
1) No UIDPLUS extension is there and 
2) Regular search failed,

I have no strong objections. It would be good to have noted in the code
documentation that this is the last-resort-fallback, but I won't object
to this patch :)

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110809/fafedd44/attachment.sig>


More information about the OfflineIMAP-project mailing list