[ libetpan-Bugs-2918352 ] mailimap_extension_data_parse return value oddity

"SourceForge.net" <[email protected]> Mon, 21 Dec 2009 00:22:24 +0000
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
Bugs item #2918352, was opened at 2009-12-20 16:22
Message generated for change (Tracker Item Submitted) made by hawk777
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=429696&aid=2918352&group_id=41064

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IMAP4
Group: Latest stable - libEtPan!
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Chris Head (hawk777)
Assigned to: Nobody/Anonymous (nobody)
Summary: mailimap_extension_data_parse return value oddity

Initial Comment:
Looking in src/low-level/imap/mailimap_extension.c, the function mailimap_extension_data_parse() returns MAILIMAP_ERROR_PARSE if mailimap_extension_list == NULL, but returns MAILIMAP_NO_ERROR if, after iterating through the list, every single extension returns MAILIMAP_ERROR_PARSE. It seems very odd that this function returns different values based on whether or not any external extensions are registered.... even if none of the extensions are interested in handling the message! I suspect maybe the default return value at the bottom should also be MAILIMAP_ERROR_PARSE?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=429696&aid=2918352&group_id=41064

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev