Add a "char **appended_uid" argument, for the caller to optionally pass in
authorDan Winship <danw@src.gnome.org>
Mon, 13 May 2002 16:15:29 +0000 (16:15 +0000)
committerDan Winship <danw@src.gnome.org>
Mon, 13 May 2002 16:15:29 +0000 (16:15 +0000)
commit32822af2e84ca3aa6701d0e5451ebb5f29e72c83
treefd00efeac244af27c7dc6fc1ca26a9f787c0b45b
parent6b23f8c80fa05b96e11aa47d7f53f293a35cd86b
Add a "char **appended_uid" argument, for the caller to optionally pass in

* camel-folder.c (camel_folder_append_message): Add a "char
**appended_uid" argument, for the caller to optionally pass in a
variable to receive the UID of the appended message (if the
provider knows it).
(camel_folder_transfer_messages_to): Likewise, add "GPtrArray
**transferred_uids"
(transfer_messages_to): Update default implementation to handle
transferred_uids.

* camel-disco-folder.c (disco_append_message,
disco_transfer_messages_to): Update for API changes.

* camel-disco-diary.c (camel_disco_diary_replay): Update the
diary's temporary uid->real uid map when replaying appends and
transfers.

* providers/imap/camel-imap-folder.c (imap_append_offline,
imap_append_online, imap_transfer_offline): Pass back the new
UIDs, when requested and available.
(imap_append_resyncing): Pass back the new UIDs when requested and
available. Remove the diary uidmap managing code since
CamelDiscoDiary can handle that itself now.
(imap_transfer_online, imap_transfer_resyncing): Update for new
APIs, but don't actually pass back the new UIDs yet. (It's tricky
since the COPYUID response may not be in the same order as the
input uids.)

* providers/local/camel-maildir-folder.c (maildir_append_message):
Pass back the new UID if requested.

* providers/local/camel-mbox-folder.c (mbox_append_message):
Likewise.

* providers/local/camel-mh-folder.c (mh_append_message): Likewise.

* providers/local/camel-spool-folder.c (spool_append_message):
Likewise.

* camel-digest-folder.c (digest_append_message,
digest_transfer_messages_to): Update for API changes.

* camel-filter-driver.c (camel_filter_driver_filter_message,
do_copy, do_move): Update for API changes.

* camel-vee-folder.c (vee_append_message,
vee_transfer_messages_to): Likewise.

* camel-vtrash-folder.c (vtrash_append_message,
vtrash_transfer_messages_to): Likewise.
15 files changed:
camel/ChangeLog
camel/camel-digest-folder.c
camel/camel-disco-diary.c
camel/camel-disco-folder.c
camel/camel-disco-folder.h
camel/camel-filter-driver.c
camel/camel-folder.c
camel/camel-folder.h
camel/camel-vee-folder.c
camel/camel-vtrash-folder.c
camel/providers/imap/camel-imap-folder.c
camel/providers/local/camel-maildir-folder.c
camel/providers/local/camel-mbox-folder.c
camel/providers/local/camel-mh-folder.c
camel/providers/local/camel-spool-folder.c