From b38a35a5187475b13210474cea7140025793b502 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 28 Mar 2001 17:48:07 +0000 Subject: Set up the sent/drafts folder buttons. (folder_picker_clicked): Pop up the * mail-account-gui.c (mail_account_gui_new): Set up the sent/drafts folder buttons. (folder_picker_clicked): Pop up the folder selector when sent or drafts is clicked. (mail_account_gui_save): Save the sent/drafts folders. * mail-config.c (account_copy): copy sent/drafts info (config_read): read sent/drafts info (mail_config_write): write sent/drafts info * mail-callbacks.c (composer_send_cb, composer_postpone_cb): split out some common code here (and fix inconsistencies). Always set headers on the message giving the account name, transport, and sent folder to use. * mail-ops.c (mail_send_message): If the message has an X-Evolution-Account header, use the transport/sent folder info for that account (assuming it still exists). Otherwise, if it has X-Evolution-Transport and/or X-Evolution-Fcc, use those. If not, use the default transport and sent folder. FIXME: Falls back silently to the default sent folder if it can't open the account-specific one... (send_queue_send): remove the X-Evolution-Transport, etc processing here, as it gets done by mail_send_message now. FIXME: We only sync the default sent folder. * component-factory.c (owner_set_cb): While setting up the standard folders, also record their URIs. svn path=/trunk/; revision=8991 --- mail/mail-account-gui.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mail/mail-account-gui.h') diff --git a/mail/mail-account-gui.h b/mail/mail-account-gui.h index 2684dd934c..9950157ece 100644 --- a/mail/mail-account-gui.h +++ b/mail/mail-account-gui.h @@ -51,6 +51,10 @@ typedef struct { CamelProvider *provider; } MailAccountGuiService; +typedef struct { + char *name, *uri; +} MailAccountGuiFolder; + typedef struct { GtkWidget *top; MailConfigAccount *account; @@ -77,6 +81,12 @@ typedef struct { /* account management */ GtkEntry *account_name; GtkToggleButton *default_account; + + /* special folders */ + GtkButton *drafts_folder_button; + MailAccountGuiFolder drafts_folder; + GtkButton *sent_folder_button; + MailAccountGuiFolder sent_folder; } MailAccountGui; -- cgit v1.2.3