diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-14 02:59:32 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-14 02:59:32 +0800 |
commit | 56737afcb166d3b928f9a89d9ac9d76c079a575d (patch) | |
tree | 739b71e488feec5d3bbdc5c475222b2c0b7b3761 /camel/camel-vee-folder.h | |
parent | b4269e1f42c26ad7e02759d46e61542d1119adcc (diff) | |
download | gsoc2013-evolution-56737afcb166d3b928f9a89d9ac9d76c079a575d.tar gsoc2013-evolution-56737afcb166d3b928f9a89d9ac9d76c079a575d.tar.gz gsoc2013-evolution-56737afcb166d3b928f9a89d9ac9d76c079a575d.tar.bz2 gsoc2013-evolution-56737afcb166d3b928f9a89d9ac9d76c079a575d.tar.lz gsoc2013-evolution-56737afcb166d3b928f9a89d9ac9d76c079a575d.tar.xz gsoc2013-evolution-56737afcb166d3b928f9a89d9ac9d76c079a575d.tar.zst gsoc2013-evolution-56737afcb166d3b928f9a89d9ac9d76c079a575d.zip |
Don't allow the user to copy a message to or from the vtrash folder. Set
2001-03-13 Jeffrey Stedfast <fejj@ximian.com>
* 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
Diffstat (limited to 'camel/camel-vee-folder.h')
-rw-r--r-- | camel/camel-vee-folder.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/camel/camel-vee-folder.h b/camel/camel-vee-folder.h index 3447fd6ba4..0cb16c98dd 100644 --- a/camel/camel-vee-folder.h +++ b/camel/camel-vee-folder.h @@ -51,9 +51,11 @@ struct _CamelVeeFolderClass { }; guint camel_vee_folder_get_type (void); -CamelFolder *camel_vee_folder_new (CamelStore *parent_store, const char *name, guint32 flags, CamelException *ex); +CamelFolder *camel_vee_folder_new (CamelStore *parent_store, const char *name, + guint32 flags, CamelException *ex); -void camel_vee_folder_add_folder(CamelVeeFolder *vf, CamelFolder *sub); -void camel_vee_folder_remove_folder(CamelVeeFolder *vf, CamelFolder *sub); +void camel_vee_folder_add_folder (CamelVeeFolder *vf, CamelFolder *sub); +void camel_vee_folder_remove_folder (CamelVeeFolder *vf, CamelFolder *sub); +CamelFolder *camel_vee_folder_get_message_folder (CamelVeeFolder *vf, const char *uid); #endif /* ! _CAMEL_VEE_FOLDER_H */ |