aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-05-07 11:15:22 +0800
committerDan Winship <danw@src.gnome.org>2000-05-07 11:15:22 +0800
commit58837630600292086b88a1994328d2908bc29b4d (patch)
treecaf51be65989d6ff74777b739f0002a78452b095 /mail/mail-ops.c
parentfcaa6565ec3885f3e2b537d2a0c5aa449378d1fb (diff)
downloadgsoc2013-evolution-58837630600292086b88a1994328d2908bc29b4d.tar.gz
gsoc2013-evolution-58837630600292086b88a1994328d2908bc29b4d.tar.zst
gsoc2013-evolution-58837630600292086b88a1994328d2908bc29b4d.zip
Don't hardcode "inbox" here.
* folder-browser-factory.c (folder_browser_factory): Don't hardcode "inbox" here. * folder-browser.c (folder_browser_set_uri): Don't hardcode "inbox" here either. (folder_browser_load_folder): Create a new store according to the folder browser's URI, and load the mbox file from that store. Parts of this are temporary. * session.c, mail.h: There is no longer a global store, just a global session. * mail-config.c, mail-ops.c: Update for default_session -> session change. fetch_mail is currently broken. svn path=/trunk/; revision=2853
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 34239f8f59..4ff3299d98 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -70,6 +70,7 @@ check_configured (void)
void
fetch_mail (GtkWidget *button, gpointer user_data)
{
+#if 0
FolderBrowser *fb = FOLDER_BROWSER (user_data);
CamelException *ex;
CamelStore *store = NULL;
@@ -145,8 +146,7 @@ fetch_mail (GtkWidget *button, gpointer user_data)
goto cleanup;
}
} else {
- store = camel_session_get_store (default_session->session,
- url, ex);
+ store = camel_session_get_store (session, url, ex);
if (!store) {
mail_exception_dialog ("Unable to get new mail",
ex, fb);
@@ -248,6 +248,9 @@ fetch_mail (GtkWidget *button, gpointer user_data)
camel_exception_free (ex);
if (msg)
gtk_object_unref (GTK_OBJECT (msg));
+#else
+ printf ("Sorry, I'm broken! Try again tomorrow.");
+#endif
}
@@ -291,8 +294,7 @@ composer_send_cb (EMsgComposer *composer, gpointer data)
g_assert (url);
g_free (path);
- transport = camel_session_get_transport (
- default_session->session, url, ex);
+ transport = camel_session_get_transport (session, url, ex);
if (camel_exception_get_id (ex) != CAMEL_EXCEPTION_NONE) {
mail_exception_dialog ("Could not load mail transport",
ex, composer);