evolution r36704 - branches/gnome-2-24/mail



Author: psankar
Date: Fri Oct 31 11:22:44 2008
New Revision: 36704
URL: http://svn.gnome.org/viewvc/evolution?rev=36704&view=rev

Log:

	Disable mail deletion and rename 
	for system folders.


Modified:
   branches/gnome-2-24/mail/ChangeLog
   branches/gnome-2-24/mail/em-folder-tree.c

Modified: branches/gnome-2-24/mail/em-folder-tree.c
==============================================================================
--- branches/gnome-2-24/mail/em-folder-tree.c	(original)
+++ branches/gnome-2-24/mail/em-folder-tree.c	Fri Oct 31 11:22:44 2008
@@ -2185,6 +2185,10 @@
 			info_flags |= CAMEL_FOLDER_VIRTUAL | CAMEL_FOLDER_NOINFERIORS;
 
 		selfolder = em_folder_tree_get_selected_folder (emft);
+
+		if (folder_type_flags & CAMEL_FOLDER_SYSTEM)
+			flags &= ~EM_POPUP_FOLDER_DELETE;
+
 		if (em_utils_folder_is_outbox (selfolder, NULL))
 			info_flags |= CAMEL_FOLDER_TYPE_OUTBOX;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]