diff options
| author | Srinivasa Ragavan <srini@linux.intel.com> | 2011-06-29 02:46:24 +0300 |
|---|---|---|
| committer | Srinivasa Ragavan <srini@linux.intel.com> | 2011-06-29 02:46:24 +0300 |
| commit | a11c8ae7ef3f77707f474a7b064f63125aa73565 (patch) | |
| tree | 900562964904b8d63c4d60a85a4e4b3851256919 | |
| parent | 833b66aa73b50cd0154296381e460d9149df44ff (diff) | |
| download | evolution-data-server-email-factory.tar.gz | |
Create Sent/Drafts for pop.email-factory
| -rw-r--r-- | mail/daemon/mail-ops.c | 10 |
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); |
