[Dovecot] POP3 extension to accept UIDL ranges?
Greetings,
is anybody aware of an extension to POP3 that supports UIDL ranges?
It would be very useful for keep-messages-on-server setups (yes, I know, IMAP4 domain) to be able to do UIDL 21-42 to obtain just these 22 UIDs (this would always have to be a multi-line reply, just like UIDL without argument).
If such a thing does not exist yet, perhaps a keyword such as "[X]UIDLRANGES" in the CAPA response might advertise this feature to clients.
Regards,
-- Matthias Andree
On Mar 9, 2006, at 10:53 AM, Matthias Andree wrote:
is anybody aware of an extension to POP3 that supports UIDL ranges?
It would be very useful for keep-messages-on-server setups (yes, I
know, IMAP4 domain) to be able to do UIDL 21-42 to obtain just these 22 UIDs (this would always have to be a multi-line reply, just like UIDL
without argument).If such a thing does not exist yet, perhaps a keyword such as "[X]UIDLRANGES" in the CAPA response might advertise this feature to clients.
So, if no POP3 clients support this, why add an extension instead of
using IMAP?
On Thu, 09 Mar 2006, Timo Sirainen wrote:
So, if no POP3 clients support this, why add an extension instead of
using IMAP?
Hen and egg problem. :-)
Seriously, fetchmail 6.2.5 accidentally used UIDL ranges when using APOP (or the way obsolete RPOP) as the result of the bug, and ISTR the fix was one line of code that adjusted the limit for ranges to 1.
For proper operation, we'd have to support this for LIST as well, but it appears that's basically the same code.
IOW, reenabling UIDL ranges in fetchmail when a server supports them would be a matter of changing less than a dozen lines of code, adding one variable to the server tracking struct, perhaps one line of initializing it and adding two lines to the CAPA parser.
IMAP on the other hand is pretty heavyweight, which spurred Sam Varshavchik to invent SMAP (Simple Message Access P., implemented in Courier-IMAP server-side and CONE client-side).
-- Matthias Andree
participants (2)
-
Matthias Andree
-
Timo Sirainen