aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/pop3
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-07 06:17:18 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-07 06:17:18 +0800
commitee486f95dcd45fdd4acc5a1893f37e64310f8f15 (patch)
tree707c91170e7af4daf22fab11dd6f969a2980d9b9 /camel/providers/pop3
parentba57a90d939acce8ddc2b480f22de64be5c7a7f8 (diff)
downloadgsoc2013-evolution-ee486f95dcd45fdd4acc5a1893f37e64310f8f15.tar.gz
gsoc2013-evolution-ee486f95dcd45fdd4acc5a1893f37e64310f8f15.tar.zst
gsoc2013-evolution-ee486f95dcd45fdd4acc5a1893f37e64310f8f15.zip
Don't strstr for noselect=yes, that's just plain broken.
2001-08-06 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_info_online): Don't strstr for noselect=yes, that's just plain broken. svn path=/trunk/; revision=11714
Diffstat (limited to 'camel/providers/pop3')
-rw-r--r--camel/providers/pop3/camel-pop3-folder.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c
index b33a9f1569..0032077fd6 100644
--- a/camel/providers/pop3/camel-pop3-folder.c
+++ b/camel/providers/pop3/camel-pop3-folder.c
@@ -285,16 +285,16 @@ pop3_get_message (CamelFolder *folder, const char *uid, CamelException *ex)
char *result, *body;
CamelStream *msgstream;
CamelMimeMessage *msg;
-
+
num = uid_to_number (CAMEL_POP3_FOLDER (folder), uid);
if (num == -1) {
camel_exception_setv (ex, CAMEL_EXCEPTION_FOLDER_INVALID_UID,
_("No message with uid %s"), uid);
return NULL;
}
-
- camel_operation_start_transient(NULL, _("Retrieving POP message %d"), num);
-
+
+ camel_operation_start_transient (NULL, _("Retrieving POP message %d"), num);
+
status = camel_pop3_command (CAMEL_POP3_STORE (folder->parent_store),
&result, ex, "RETR %d", num);
switch (status) {
@@ -304,14 +304,13 @@ pop3_get_message (CamelFolder *folder, const char *uid, CamelException *ex)
g_free (result);
/* fall through */
case CAMEL_POP3_FAIL:
- camel_operation_end(NULL);
+ camel_operation_end (NULL);
return NULL;
}
-
- /* this should be "nnn octets" ? No. RTFRFC. FIXME. */
+
if (result && sscanf (result, "%d", &total) != 1)
total = 0;
-
+
g_free (result);
body = camel_pop3_command_get_additional_data (CAMEL_POP3_STORE (folder->parent_store), total, ex);
if (!body) {
@@ -320,21 +319,21 @@ pop3_get_message (CamelFolder *folder, const char *uid, CamelException *ex)
_("Could not retrieve message from POP "
"server %s: %s"), service->url->host,
camel_exception_get_description (ex));
- camel_operation_end(NULL);
+ camel_operation_end (NULL);
return NULL;
}
-
+
msgstream = camel_stream_mem_new_with_buffer (body, strlen (body));
g_free (body);
msg = camel_mime_message_new ();
camel_data_wrapper_construct_from_stream (CAMEL_DATA_WRAPPER (msg),
CAMEL_STREAM (msgstream));
-
+
camel_object_unref (CAMEL_OBJECT (msgstream));
-
- camel_operation_end(NULL);
-
+
+ camel_operation_end (NULL);
+
return msg;
}
005-10-07 01:36:54 +0800'>2005-10-072-1/+9 * Update to 2.12.1, add a patch to get pkgconfig install in the correctplace..mezz2005-10-043-103/+111 * Break by updating to 2.12.0.kwm2005-09-182-7/+5 * - Remove some dirs that are handled by hicolor-icon-themeahze2005-09-061-2/+0 * Update to 2.12.0.marcus2005-09-053-6/+7 * Convert to USE_AUTOTOOLS, reset $FreeBSD$ tags, and add $MCom$ tags wheremarcus2005-08-261-2/+3 * Add evolution-webcal mkdir_p hack to get this installing.kwm2005-08-231-1/+3 * Update to 2.11.92.marcus2005-08-233-8/+7 * Add quick-lounge-applet, and mark BROKEN.marcus2005-08-184-0/+202 * Update to 2.11.91.marcus2005-08-093-13/+5 * Update to 2.11.90.marcus2005-07-262-5/+4 * Cleanup some leftover locale directories.marcus2005-07-162-1/+6 * Update to 2.11.5.marcus2005-07-152-4/+4 * Add gnome-icon-theme at 2.11.4.adamw2005-07-045-0/+2855 * Remove these ports now that they have been merged into the ports tree.marcus2005-03-149-2771/+0 * Update to 2.10.0.kwm2005-03-082-4/+4 * Update to 2.9.92.kwm2005-03-013-19/+17 * Update to 2.9.91.marcus2005-02-093-5/+20 * Reset $FreeBSD$ tags.adamw2005-01-291-1/+1 * Update to 2.9.90.kwm2005-01-253-6/+19 * Do not remove directories owned by hicolor-icon-theme.marcus2005-01-212-33/+1 * Use the correct mtree file during package installation. Also, it's okaymarcus2005-01-161-4/+2 * Run the mtree command at package install time to fix leftover filemarcus2005-01-152-2/+19 * Handle removal of share/icons/gnome/48x48/apps to fix the leftovers problemmarcus2005-01-132-0/+6 * Update to 2.9.3.adamw2005-01-113-3/+13 * Fix the pkg-plist and gnomehier for uninstall gconf stuff. This should hopefulmezz2004-12-302-8/+1 * - Fix pkg-plist for package buildingahze2004-12-231-2/+4 * Introducing gnomehier 2.0ahze2004-12-233-0/+165 * Update to 2.9.2ahze2004-11-303-80/+144 * -Re-add gnome-icon-theme, at 2.9.1.mezz2004-11-185-0/+2522 * Remove these ports now that they have been merged into the ports tree.marcus2004-11-0819-2974/+0 * Update to 2.8.1.marcus2004-10-176-10/+10 * Update to 2.8.0-1.marcus2004-09-206-5024/+8 * Reset $FreeBSD$ tag.marcus2004-09-142-2/+2 * Update to 2.8.0.marcus2004-09-148-0/+5398 * Update to 2.8.0.marcus2004-09-143-4/+5 * Reset $FreeBSD$ tags.adamw2004-09-131-1/+1 * Update to 2.7.90.marcus2004-09-022-4/+4 * Add gnome-osd, an On-Screen Display infrastructure using Pango textmarcus2004-08-236-0/+98 * Update to 1.3.7.adamw2004-08-163-3/+27 * Update to 1.3.6.marcus2004-08-033-3/+15 * Update to 1.3.5.mezz2004-07-203-7/+7 * Update to 1.3.4.marcus2004-06-303-3/+8 * Update to 1.3.3.marcus2004-06-073-3/+5 * Update to 1.3.2.marcus2004-05-305-0/+2450 * Garbage collection GNOME 2.5. Next stop, GNOME 2.7.marcus2004-04-0617-3001/+0 * Fix up OMF installation.marcus2004-04-021-0/+22 * Remove a bogus INSTALLS_SHLIB.marcus2004-04-021-1/+0 * Update to 2.1.1 for GNOME 2.6 compliance.marcus2004-04-024-0/+189 * Update to 2.6.0.1.marcus2004-03-316-32/+6 * Professionalize the descriptions of the pieces of the GNOMEadamw2004-03-293-3/+5 * Reset all of the $FreeBSD$ tags in preparation for merging with the FreeBSDmarcus2004-03-293-3/+3 * Add missing plist entry.adamw2004-03-281-0/+1 * Fix the plist.marcus2004-03-252-6/+0 * Update to 2.6.0.marcus2004-03-236-8/+14 * Update to 1.2.0.marcus2004-03-233-4/+8 * Update to 1.1.91.marcus2004-03-162-3/+3 * Update to 2.5.90.marcus2004-03-136-6/+18 * Update to 1.1.90.marcus2004-03-093-4/+4 * Update to 1.1.8.marcus2004-02-243-3/+17 * Update to 1.1.7.marcus2004-02-123-2/+10 * Update to 2.5.0.marcus2004-02-058-0/+394 * Update to 1.1.6.marcus2004-01-313-5/+86 * Update to 1.1.5, and add a missing dependency on hicolor-icon-theme.marcus2004-01-144-9/+26