Bug 236109 - Support IMAP servers that don't have the UIDPLUS extension
Summary: Support IMAP servers that don't have the UIDPLUS extension
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: unspecified Linux
: HI normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords: akonadi-ports-regression
: 245311 250167 (view as bug list)
Depends on:
Blocks: 223438
  Show dependency treegraph
 
Reported: 2010-05-03 02:26 UTC by Salvo "LtWorf" Tomaselli
Modified: 2010-09-15 07:07 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Salvo "LtWorf" Tomaselli 2010-05-03 02:26:35 UTC
Version:           unknown (using 4.4.3 (KDE 4.4.3), Debian packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.32.12-proserpina

Uidplus is an extension to the IMAP protocol, the plugin should state clearly that only a subset of perfectly good IMAP servers will work, instead of making the users think that there is something wrong with the server.
Comment 1 Thomas McGuire 2010-07-06 10:19:14 UTC
I also think supporting servers that don't have UIDPLUS support is important.
This for example is the case for all Nokia servers, and probably for all Exchange servers. There are simply too many of those servers out there, and other IMAP clients support those.
Comment 2 Cyrille Dunant 2010-07-18 16:23:08 UTC
This bug is a regression from the previous kmail, which supported servers without UIDPLUS.

It is also an important use-case, because MS exchange servers which are configured to provide IMAP access can be configured without UIDPLUS (this is my case, and I clearly will not be able to budge the admins)
Comment 3 Alex Merry 2010-07-21 15:04:56 UTC
And, indeed, not all MS Exchange Servers support UIDPLUS at all - it seems Exchange Server 2007 doesn't.
Comment 4 Torgny Nyblom 2010-07-22 15:25:54 UTC
If someone could test and post the reply to a COPY and a APPEND command from an exchange server configured without uidplus we might be able to just ignore the missing capability.
Comment 5 Cyrille Dunant 2010-07-22 15:30:24 UTC
I would gladly do that if given some clues how to do it :)
Comment 6 Torgny Nyblom 2010-07-22 16:20:11 UTC
*** Bug 245311 has been marked as a duplicate of this bug. ***
Comment 7 Alex Merry 2010-07-22 16:36:29 UTC
Afraid not:

* OK The Microsoft Exchange IMAP4 service is ready.
. LOGIN [username] [password]
. OK LOGIN completed.
. CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN IDLE NAMESPACE LITERAL+
. OK CAPABILITY completed.
. SELECT INBOX
* 5 EXISTS
* 0 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)] Permanent flags
* OK [UNSEEN 5] Is the first unseen message
* OK [UIDVALIDITY 3508] UIDVALIDITY value
* OK [UIDNEXT 913] The next unique identifier value
. OK [READ-WRITE] SELECT completed.
. COPY 5 test
. OK COPY completed.
. APPEND test (\Seen) {310}
+ Ready for additional command text.
Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
From: Fred Foobar <foobar@Blurdybloop.COM>
Subject: afternoon meeting
To: mooch@owatagu.siam.edu
Message-Id: <B27397-0100000@Blurdybloop.COM>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

Hello Joe, do you think we can meet at 3:30 tomorrow?

. OK APPEND completed.
. LOGOUT
* BYE Microsoft Exchange Server 2007 IMAP4 server signing off.
. OK LOGOUT completed.
Connection closed by foreign host.
Comment 8 Cyrille Dunant 2010-07-22 17:55:48 UTC
Does this mean that a new akonadi ressource will have to be implemented for the servers which do not have UIDPLUS? Then how will the UI look like if there are two IMAP ressources?
Comment 9 Danny Auble 2010-07-22 18:53:56 UTC
*** This bug has been confirmed by popular vote. ***
Comment 10 Alex Merry 2010-07-22 19:26:57 UTC
I think it would be far simpler to fall back to the behaviour suggested by RFC 4315 in the existing imap resource if UIDPLUS is not supported.
Comment 11 Will Stephenson 2010-07-23 11:21:48 UTC
Also a problem for GroupWise servers running the GWIA agent.  GW7 is supposed to support UIDPLUS, but I'm not sure if it advertises it.  My migration fails due to missing UIDPLUS support, but I'm trying to figure out which version of the server I use.  GW6 uses a custom extension XGWMOVE to move messages, see the following from comp.mail.imap: 

http://www.phwinfo.com/forum/comp-mail-imap/177112-imap-command-move-message.html
Comment 12 Kevin Ottens 2010-08-05 18:02:44 UTC
Should be working now in trunk since I committed r1159559.
Servers without UIDPLUS support aren't blacklisted anymore.
Comment 13 Lindsay Roberts 2010-08-10 00:29:35 UTC
Can confirm successful operation with r1159575, Exchange 2007 server. Thanks many times over, Kevin.
Comment 14 Michael Kuhlmann 2010-09-04 13:09:12 UTC
hello,

i am running kdepim beta 3 packages from kubuntu and kmail refuses to work with the lavabit imap server cause of the missing uidplus capabilities.

is r1159559 commited in beta 3?

michael
Comment 15 Torgny Nyblom 2010-09-04 15:29:10 UTC
(In reply to comment #14)
> hello,
> 
> i am running kdepim beta 3 packages from kubuntu and kmail refuses to work with
> the lavabit imap server cause of the missing uidplus capabilities.
> 
> is r1159559 commited in beta 3?

No, this is for trunk (>=4.6) only and not for the 4.5 branch of kdepim.
Comment 16 Gerd Fleischer 2010-09-04 18:49:05 UTC
Would be nice to have this in 4.5.
Also GMX with IMAP is not working.
Comment 17 Thorben Kröger 2010-09-05 10:30:51 UTC
This also makes my university email account useless.
Please backport this before releasing kmail2...
Comment 18 Samu Voutilainen 2010-09-07 14:59:57 UTC
This would be very important to have upcoming 4.5 branch release, current (first) beta is pretty useless for people using corporate emails.

This also prevents startup of either kmail or kontact at all if you happen to have such mailbox in your configuration. ”Solved” by removing it by hand from kmailrc and then starting the kmail/kontact. 

Those obsolete servers being mostly corporate upkeeped, getting them to upgrade their configurations for minority for nothing, or to other IMAPDs may be very impossible.

+1 from me.
Comment 19 Christophe Marin 2010-09-14 20:53:34 UTC
*** Bug 250167 has been marked as a duplicate of this bug. ***
Comment 20 Will Stephenson 2010-09-14 21:48:14 UTC
Works well for me with trunk and the Novell GroupWise IMAP agent, can we have this in 4.5 branch?
Comment 21 Kevin Ottens 2010-09-15 07:07:31 UTC
Unfortunately not desirable to backport on 4.5, this fix actually depends on the large refactoring which happened in trunk. Such a large change is a rather bad idea for a patch release.