Merge lp:~cyphermox/evolution/2011-02-25 into lp:~ubuntu-desktop/evolution/ubuntu

Proposed by Mathieu Trudel-Lapierre
Status: Merged
Merged at revision: 175
Proposed branch: lp:~cyphermox/evolution/2011-02-25
Merge into: lp:~ubuntu-desktop/evolution/ubuntu
Diff against target: 136 lines (+110/-1)
4 files modified
debian/changelog (+10/-0)
debian/evolution-plugins.install (+1/-1)
debian/patches/96_git_sent_draft_folders_wizard_setup_7215cf0.patch (+98/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~cyphermox/evolution/2011-02-25
Reviewer Review Type Date Requested Status
Michael Terry Approve
Review via email: mp+51352@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Michael Terry (mterry) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-02-24 15:33:04 +0000
3+++ debian/changelog 2011-02-25 19:04:56 +0000
4@@ -1,3 +1,13 @@
5+evolution (2.32.2-0ubuntu3) UNRELEASED; urgency=low
6+
7+ * debian/evolution-plugins.install: Re-add the face plugin that was dropped
8+ accidentally. (LP: #682266)
9+ * debian/patches/96_git_sent_draft_folders_wizard_setup_7215cf0.patch: Set
10+ remote Sent and Drafts folders when setting up accounts using the startup
11+ wizard. (LP: #720383)
12+
13+ -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Fri, 25 Feb 2011 11:10:51 -0500
14+
15 evolution (2.32.2-0ubuntu2) natty; urgency=low
16
17 * debian/patches/10_desktop_shortcuts.patch
18
19=== modified file 'debian/evolution-plugins.install'
20--- debian/evolution-plugins.install 2010-10-18 16:24:22 +0000
21+++ debian/evolution-plugins.install 2011-02-25 19:04:56 +0000
22@@ -1,1 +1,1 @@
23-debian/tmp/usr/lib/evolution/2.32/plugins/*{attachment-reminder,audio-inline,bbdb,email-custom-header,subject-thread,save-calendar,select-one-source,copy-tool,mail-to-task,mailing-list-actions,mail-notification,default-mailer,mail-attachments-import-ics,prefer-plain,backup-restore,email-custom-header,templates,vcard-inline,pst-import,image-inline}*.{so,eplug,xml}
24+debian/tmp/usr/lib/evolution/2.32/plugins/*{face,attachment-reminder,audio-inline,bbdb,email-custom-header,subject-thread,save-calendar,select-one-source,copy-tool,mail-to-task,mailing-list-actions,mail-notification,default-mailer,mail-attachments-import-ics,prefer-plain,backup-restore,email-custom-header,templates,vcard-inline,pst-import,image-inline}*.{so,eplug,xml}
25
26=== added file 'debian/patches/96_git_sent_draft_folders_wizard_setup_7215cf0.patch'
27--- debian/patches/96_git_sent_draft_folders_wizard_setup_7215cf0.patch 1970-01-01 00:00:00 +0000
28+++ debian/patches/96_git_sent_draft_folders_wizard_setup_7215cf0.patch 2011-02-25 19:04:56 +0000
29@@ -0,0 +1,98 @@
30+From 7215cf088f73cfa61e877a83fa0fdd4227095725 Mon Sep 17 00:00:00 2001
31+From: Milan Crha <mcrha@redhat.com>
32+Date: Fri, 11 Feb 2011 11:58:29 +0000
33+Subject: Bug #637727 - Sent/Draft folder not set in startup-wizard account
34+
35+With modifications due to backporting of the patch for 2.91 to 2.32,
36+by Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
37+
38+---
39+Index: evolution-2.32.2/mail/e-mail-local.c
40+===================================================================
41+--- evolution-2.32.2.orig/mail/e-mail-local.c 2010-10-14 17:18:36.000000000 -0400
42++++ evolution-2.32.2/mail/e-mail-local.c 2011-02-25 13:03:24.277179299 -0500
43+@@ -43,20 +43,24 @@
44+ };
45+
46+ static CamelStore *local_store;
47++static gboolean mail_local_initialized = FALSE;
48+
49+ void
50+ e_mail_local_init (const gchar *data_dir)
51+ {
52+- static gboolean initialized = FALSE;
53+ CamelService *service;
54+ CamelURL *url;
55+ gchar *temp;
56+ gint ii;
57+ GError *local_error = NULL;
58+
59+- g_return_if_fail (!initialized);
60++ if (mail_local_initialized)
61++ return;
62++
63+ g_return_if_fail (data_dir != NULL);
64+
65++ mail_local_initialized = TRUE;
66++
67+ url = camel_url_new ("mbox:", NULL);
68+ temp = g_build_filename (data_dir, "local", NULL);
69+ camel_url_set_path (url, temp);
70+@@ -106,6 +110,7 @@
71+ CamelFolder *
72+ e_mail_local_get_folder (EMailLocalFolder type)
73+ {
74++ g_return_val_if_fail (mail_local_initialized, NULL);
75+ g_return_val_if_fail (CHECK_LOCAL_FOLDER_TYPE (type), NULL);
76+
77+ return default_local_folders[type].folder;
78+@@ -114,6 +119,7 @@
79+ const gchar *
80+ e_mail_local_get_folder_uri (EMailLocalFolder type)
81+ {
82++ g_return_val_if_fail (mail_local_initialized, NULL);
83+ g_return_val_if_fail (CHECK_LOCAL_FOLDER_TYPE (type), NULL);
84+
85+ return default_local_folders[type].folder_uri;
86+@@ -122,6 +128,7 @@
87+ CamelStore *
88+ e_mail_local_get_store (void)
89+ {
90++ g_return_val_if_fail (mail_local_initialized, NULL);
91+ g_return_val_if_fail (CAMEL_IS_STORE (local_store), NULL);
92+
93+ return local_store;
94+Index: evolution-2.32.2/modules/startup-wizard/evolution-startup-wizard.c
95+===================================================================
96+--- evolution-2.32.2.orig/modules/startup-wizard/evolution-startup-wizard.c 2010-10-14 17:18:38.000000000 -0400
97++++ evolution-2.32.2/modules/startup-wizard/evolution-startup-wizard.c 2011-02-25 13:04:41.927179275 -0500
98+@@ -25,6 +25,7 @@
99+ #include <e-util/e-extension.h>
100+ #include <e-util/e-import.h>
101+
102++#include <mail/e-mail-local.h>
103+ #include <mail/em-account-editor.h>
104+ #include <capplet/settings/mail-capplet-shell.h>
105+ #include <calendar/gui/calendar-config.h>
106+@@ -424,11 +425,21 @@
107+ static GtkWidget *
108+ startup_wizard_new_assistant (EStartupWizard *extension)
109+ {
110++ EShell *shell;
111++ EShellBackend *shell_backend;
112+ EMAccountEditor *emae;
113+ EConfig *config;
114+ EConfigItem *config_item;
115+ GtkWidget *widget;
116+ GSList *items = NULL;
117++ const gchar *data_dir;
118++
119++ shell = startup_wizard_get_shell (extension);
120++ shell_backend = e_shell_get_backend_by_name (shell, "mail");
121++
122++ data_dir = e_shell_backend_get_data_dir (shell_backend);
123++
124++ e_mail_local_init (data_dir);
125+
126+ emae = em_account_editor_new (
127+ NULL, EMAE_ASSISTANT,
128
129=== modified file 'debian/patches/series'
130--- debian/patches/series 2011-02-07 03:55:05 +0000
131+++ debian/patches/series 2011-02-25 19:04:56 +0000
132@@ -28,3 +28,4 @@
133 95-git-16-quote_names_in_preview_d132f8f.patch
134 95-git-17_bcc_search_rules_06ba028.patch
135 95-git-18-crash_on_contact_move_098a7ab.patch
136+96_git_sent_draft_folders_wizard_setup_7215cf0.patch

Subscribers

People subscribed via source and target branches