summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivasa Ragavan <srini@linux.intel.com>2011-06-29 02:46:24 +0300
committerSrinivasa Ragavan <sragavan@gnome.org>2011-06-28 16:51:06 -0700
commitabad974fbcc6886a51d41fcfd78828010a210238 (patch)
treeaa5263b9531ef18ebe57a885fe325de8df83b88e
parentcfd1a6b37ec6243f656014a3c68bf9b413302d5c (diff)
downloadevolution-data-server-abad974fbcc6886a51d41fcfd78828010a210238.tar.gz
Create Sent/Drafts for pop.
-rw-r--r--mail/daemon/mail-ops.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/mail/daemon/mail-ops.c b/mail/daemon/mail-ops.c
index fbc53a5a3..d0c6ba84a 100644
--- a/mail/daemon/mail-ops.c
+++ b/mail/daemon/mail-ops.c
@@ -330,7 +330,7 @@ fetch_pop3_folder (const char *uri)
destination = camel_store_get_folder (local, folder_name, 0, NULL);
if (!destination) {
- /* If its first time, create that folder. */
+ /* If its first time, create that folder & Draft/Sent. */
CamelFolderInfo *info;
info = camel_store_create_folder (local, NULL, folder_name, NULL);
@@ -338,6 +338,14 @@ fetch_pop3_folder (const char *uri)
g_warning ("Unable to create POP3 folder: %s\n", folder_name);
else {
destination = camel_store_get_folder (local, folder_name, 0, NULL);
+ g_free (folder_name);
+ folder_name = g_strdup_printf ("%s/Drafts", email);
+
+ info = camel_store_create_folder (local, NULL, folder_name, NULL);
+ g_free (folder_name);
+ folder_name = g_strdup_printf ("%s/Sent", email);
+
+ info = camel_store_create_folder (local, NULL, folder_name, NULL);
}
}
g_free (folder_name);