diff options
author | Dan Winship <danw@src.gnome.org> | 2002-05-14 00:15:55 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-05-14 00:15:55 +0800 |
commit | b05542ec2dede738afe1e4dfdb583c822b98a09e (patch) | |
tree | 89d3c6f6b3fb92dca4e9bc93f802ecd780942339 /mail/mail-local.c | |
parent | c538852849865837c38a6603dcd4bf17124b03be (diff) | |
download | gsoc2013-evolution-b05542ec2dede738afe1e4dfdb583c822b98a09e.tar.gz gsoc2013-evolution-b05542ec2dede738afe1e4dfdb583c822b98a09e.tar.zst gsoc2013-evolution-b05542ec2dede738afe1e4dfdb583c822b98a09e.zip |
Update for camel_folder_append_message / camel_folder_transfer_messages_to
* (various places): Update for camel_folder_append_message /
camel_folder_transfer_messages_to API change.
* mail-ops.c (mail_append_mail): Pass the appended_uid to the
callback.
* mail-callbacks.c (composer_save_draft_cb, save_draft_done,
do_edit_messages): Take advantage of the append_message change to
keep track of the UID of the saved draft so that we can delete the
old copy of the draft each time we save a new one. Remove the
FIXME suggesting we should do that, since we're doing it now. :)
svn path=/trunk/; revision=16766
Diffstat (limited to 'mail/mail-local.c')
-rw-r--r-- | mail/mail-local.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/mail-local.c b/mail/mail-local.c index 98a2c78e6f..fcb8305ba1 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -275,7 +275,7 @@ mlf_expunge(CamelFolder *folder, CamelException *ex) } static void -mlf_append_message(CamelFolder *folder, CamelMimeMessage *message, const CamelMessageInfo *info, CamelException *ex) +mlf_append_message(CamelFolder *folder, CamelMimeMessage *message, const CamelMessageInfo *info, char **appended_uid, CamelException *ex) { MailLocalFolder *mlf = MAIL_LOCAL_FOLDER(folder); CamelFolder *f; @@ -285,7 +285,7 @@ mlf_append_message(CamelFolder *folder, CamelMimeMessage *message, const CamelMe camel_object_ref((CamelObject *)f); LOCAL_FOLDER_UNLOCK(mlf); - camel_folder_append_message(f, message, info, ex); + camel_folder_append_message(f, message, info, appended_uid, ex); camel_object_unref((CamelObject *)f); } @@ -686,7 +686,7 @@ mail_local_folder_reconfigure (MailLocalFolder *mlf, const char *new_format, int camel_folder_freeze(mlf->real_folder); uids = camel_folder_get_uids(fromfolder); - camel_folder_transfer_messages_to(fromfolder, uids, mlf->real_folder, TRUE, ex); + camel_folder_transfer_messages_to(fromfolder, uids, mlf->real_folder, NULL, TRUE, ex); camel_folder_free_uids(fromfolder, uids); if (camel_exception_is_set(ex)) goto cleanup; |