From 56737afcb166d3b928f9a89d9ac9d76c079a575d Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 13 Mar 2001 18:59:32 +0000 Subject: Don't allow the user to copy a message to or from the vtrash folder. Set 2001-03-13 Jeffrey Stedfast * camel-folder.c (camel_folder_copy_message_to): Don't allow the user to copy a message to or from the vtrash folder. Set an exception if they try. (camel_folder_move_message_to): This one is a bit more complicated: 1) If the user tried to move a message from the vtrash into the original folder, just undelete the message. 2) If the user tries to move the message to the vtrash folder, then just mark the message as deleted. 3) If the user tries to move the message from the vTrash to a folder other than the original, use the original folder as the source. As another optimization, I've made it so that if the user tries to move a message to the same folder, just no-op. (move_message_to): Unset the deleted flag before moving (assuming it's there). (copy_message_to): Same. * camel-vee-folder.c (camel_vee_folder_get_message_folder): New convenience function to get the folder from which the message uid is derived from. svn path=/trunk/; revision=8677 --- camel/ChangeLog | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'camel/ChangeLog') diff --git a/camel/ChangeLog b/camel/ChangeLog index 612fe4300b..c0b391e099 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,25 @@ +2001-03-13 Jeffrey Stedfast + + * camel-folder.c (camel_folder_copy_message_to): Don't allow the + user to copy a message to or from the vtrash folder. Set an + exception if they try. + (camel_folder_move_message_to): This one is a bit more + complicated: 1) If the user tried to move a message from the + vtrash into the original folder, just undelete the message. 2) If + the user tries to move the message to the vtrash folder, then just + mark the message as deleted. 3) If the user tries to move the + message from the vTrash to a folder other than the original, use + the original folder as the source. As another optimization, I've + made it so that if the user tries to move a message to the same + folder, just no-op. + (move_message_to): Unset the deleted flag before moving (assuming + it's there). + (copy_message_to): Same. + + * camel-vee-folder.c (camel_vee_folder_get_message_folder): New + convenience function to get the folder from which the message uid + is derived from. + 2001-03-13 Dan Winship * providers/imap/camel-imap-store.c (imap_connect): When trying -- cgit v1.2.3