Nathan Wheeler | 21 Dec 2011 17:17

IMAP IDLE + UIDL patch

Hello Everyone,

I was able to use Clint's patch for IMAP UID from back in 2004 to patch a more recent version 6.3.9 (this is what
the 10.04 Ubuntu repos use). It works just fine except when I use IDLE with IMAP. It doesn't seem to write the
UID it created in the .fetchids file with IDLE.

Has anyone gotten this to work? I'm not too good with C myself.

Original patch: http://lists.ccil.org/pipermail/fetchmail-friends/2004-March/008445.html

Thanks,

Nathan
Matthias Andree | 26 Dec 2011 11:41
Picon
Picon

Re: IMAP IDLE + UIDL patch

Am 21.12.2011 17:17, schrieb Nathan Wheeler:
> Hello Everyone,
> 
> I was able to use Clint's patch for IMAP UID from back in 2004 to patch a more recent version 6.3.9 (this is
what the 10.04 Ubuntu repos use). It works just fine except when I use IDLE with IMAP. It doesn't seem to
write the UID it created in the .fetchids file with IDLE.
> 
> Has anyone gotten this to work? I'm not too good with C myself.
> 
> Original patch: http://lists.ccil.org/pipermail/fetchmail-friends/2004-March/008445.html

Nathan,

the patch is conceptually flawed in that it does not heed the
UIDVALIDITY value related to UID.  Porting it to newer (but still
obsolete) versions of fetchmail without adding proper UIDVALIDITY
query/handling is violating the standard and looking for trouble in
practice.

Any attempts to bring in new features are best made on the development
versions (7.0.0 alphas), against the Git master or next branches, or at
the very least against the latest released 6.3.X version (the latter
means running the risk of not being ported forward to future version).

Sorry this isn't more helpful.  I have plans to add IMAP UID support to
fetchmail 7.0.0 to overcome some of the limitations in older fetchmail
releases, but looking at how much progress I've made in the past four
months that I've had a new real-live job, I expect that to take a
(longer) while.

(Continue reading)

Nathan Wheeler | 27 Dec 2011 18:59

Re: IMAP IDLE + UIDL patch

I understand, I wasn't looking for it to be ported to later versions, just if anyone had done any quick work
themselves to get it to work with IDLE. I wasn't to hopeful, mostly curious.

Thanks!

Nathan

-----Original Message-----
From: fetchmail-users-bounces <at> lists.berlios.de
[mailto:fetchmail-users-bounces <at> lists.berlios.de] On Behalf Of Matthias Andree
Sent: Monday, December 26, 2011 2:41 AM
To: fetchmail-users <at> lists.berlios.de
Subject: Re: [fetchmail-users] IMAP IDLE + UIDL patch

Am 21.12.2011 17:17, schrieb Nathan Wheeler:
> Hello Everyone,
> 
> I was able to use Clint's patch for IMAP UID from back in 2004 to patch a more recent version 6.3.9 (this is
what the 10.04 Ubuntu repos use). It works just fine except when I use IDLE with IMAP. It doesn't seem to
write the UID it created in the .fetchids file with IDLE.
> 
> Has anyone gotten this to work? I'm not too good with C myself.
> 
> Original patch: 
> http://lists.ccil.org/pipermail/fetchmail-friends/2004-March/008445.ht
> ml

Nathan,

the patch is conceptually flawed in that it does not heed the UIDVALIDITY value related to UID.  Porting it to
(Continue reading)

Matthias Andree | 27 Dec 2011 20:32
Picon
Picon

Re: IMAP IDLE + UIDL patch

Am 27.12.2011 18:59, schrieb Nathan Wheeler:
> I understand, I wasn't looking for it to be ported to later versions, just if anyone had done any quick work
themselves to get it to work with IDLE. I wasn't to hopeful, mostly curious.

Well, the "IDLE" feature in particular is an odd one, in that it does
not blend in with fetchmail's model of operation, has many quirks, and
took many a fix to get going to the point where it is.  I don't believe
IDLE has much of a future with the current fetchmail model, but I am
open for event-based (one thread holding several file descriptors, which
is prone to unveiling kernel bugs all about) or multithreaded approaches
(which is prone to unveiling library issues...), as well as more
versatile successors of IDLE, although I do not yet know how
widely-supported that is on the server side, and which way I'll go with
future versions.

The one thing I can offer is that people can create
one-rcfile-per-server and use the FETCHMAILHOME environment variable to
run multiple instances of fetchmail that can idle, without getting in
one another's way, but that doesn't bring you anywhere closer to UID
support for IMAP in fetchmail unfortunately.

Best regards,
Matthias

Gmane