aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-19 12:16:40 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-19 12:16:40 +0800
commit02adc1ca5f80cddea6e4b42bd7519b23f299bd50 (patch)
treedccad398dcfad6d4d3c2a59a35064d5ad11a28d1 /mail
parentd19d151d29c6812c50e7434280e75160d85be1e0 (diff)
downloadgsoc2013-evolution-02adc1ca5f80cddea6e4b42bd7519b23f299bd50.tar
gsoc2013-evolution-02adc1ca5f80cddea6e4b42bd7519b23f299bd50.tar.gz
gsoc2013-evolution-02adc1ca5f80cddea6e4b42bd7519b23f299bd50.tar.bz2
gsoc2013-evolution-02adc1ca5f80cddea6e4b42bd7519b23f299bd50.tar.lz
gsoc2013-evolution-02adc1ca5f80cddea6e4b42bd7519b23f299bd50.tar.xz
gsoc2013-evolution-02adc1ca5f80cddea6e4b42bd7519b23f299bd50.tar.zst
gsoc2013-evolution-02adc1ca5f80cddea6e4b42bd7519b23f299bd50.zip
unref the standard folders. (owner_set_cb): Use g_atexit() to call
2001-03-18 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (unref_standard_folders): unref the standard folders. (owner_set_cb): Use g_atexit() to call unref_standard_folders() when evolution-mail exits. This should solve the problem where these folders are not synced when evolution-mail closes (because they still had refs on them on close). svn path=/trunk/; revision=8814
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog9
-rw-r--r--mail/component-factory.c13
-rw-r--r--mail/mail-crypto.c1
3 files changed, 23 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 93b35da7fd..ce7255fecf 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,12 @@
+2001-03-18 Jeffrey Stedfast <fejj@ximian.com>
+
+ * component-factory.c (unref_standard_folders): unref the standard
+ folders.
+ (owner_set_cb): Use g_atexit() to call unref_standard_folders()
+ when evolution-mail exits. This should solve the problem where
+ these folders are not synced when evolution-mail closes (because
+ they still had refs on them on close).
+
2001-03-17 Not Zed <NotZed@Ximian.com>
* mail-mt.c (mail_msg_free): Move the proxy event outside the lock
diff --git a/mail/component-factory.c b/mail/component-factory.c
index c1ed7119f4..8aa12b1e7d 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -165,6 +165,17 @@ static struct {
};
static void
+unref_standard_folders (void)
+{
+ int i;
+
+ for (i = 0; i < sizeof (standard_folders) / sizeof (standard_folders[0]); i++) {
+ if (standard_folders[i].folder)
+ camel_object_unref (CAMEL_OBJECT (standard_folders[i].folder));
+ }
+}
+
+static void
got_folder (char *uri, CamelFolder *folder, void *data)
{
CamelFolder **fp = data;
@@ -220,6 +231,8 @@ owner_set_cb (EvolutionShellComponent *shell_component,
g_free (uri);
}
+ g_atexit (unref_standard_folders);
+
mail_session_enable_interaction (TRUE);
mail_autoreceive_setup ();
diff --git a/mail/mail-crypto.c b/mail/mail-crypto.c
index 744a171c8e..2d21a2e2d8 100644
--- a/mail/mail-crypto.c
+++ b/mail/mail-crypto.c
@@ -264,6 +264,7 @@ pgp_mime_part_sign_prepare_part (CamelMimePart *mime_part, GSList **encodings)
encoding = camel_mime_part_get_encoding (mime_part);
+ /* FIXME: find the best encoding for this part and use that instead?? */
/* the encoding should really be QP or Base64 */
if (encoding != CAMEL_MIME_PART_ENCODING_BASE64)
camel_mime_part_set_encoding (mime_part, CAMEL_MIME_PART_ENCODING_QUOTEDPRINTABLE);