Index: mail/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3912
diff -u -p -r1.3912 ChangeLog
--- mail/ChangeLog	9 Sep 2006 21:27:34 -0000	1.3912
+++ mail/ChangeLog	14 Sep 2006 14:43:33 -0000
@@ -1,3 +1,10 @@
+2006-09-14  Matthew Barnes  <mbarnes@redhat.com>
+
+	Fixes #356177
+
+	* mail-session.c:
+	Remove an unused EMutex.
+
 2006-09-09  Wouter Bolsterlee  <uws+gnome@xs4all.nl>
 
 	* default/nl/Inbox: Dutch welcome message updated by
Index: mail/mail-session.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-session.c,v
retrieving revision 1.111
diff -u -p -r1.111 mail-session.c
--- mail/mail-session.c	24 Apr 2006 06:55:13 -0000	1.111
+++ mail/mail-session.c	14 Sep 2006 14:43:34 -0000
@@ -63,17 +63,12 @@ static int session_check_junk_notify_id 
 #define MAIL_SESSION_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), MAIL_SESSION_TYPE, MailSessionClass))
 #define MAIL_IS_SESSION(o)    (CAMEL_CHECK_TYPE((o), MAIL_SESSION_TYPE))
 
-#define MAIL_SESSION_LOCK(s, l) (e_mutex_lock(((MailSession *)s)->l))
-#define MAIL_SESSION_UNLOCK(s, l) (e_mutex_unlock(((MailSession *)s)->l))
-
 typedef struct _MailSession {
 	CamelSession parent_object;
 
 	gboolean interactive;
 	FILE *filter_logfile;
 
-	EMutex *lock;
-
 	MailAsyncEvent *async;
 } MailSession;
 
@@ -96,7 +91,6 @@ static void ms_thread_msg_free(CamelSess
 static void
 init (MailSession *session)
 {
-	session->lock = e_mutex_new(E_MUTEX_REC);
 	session->async = mail_async_event_new();
 }
 
@@ -107,7 +101,6 @@ finalise (MailSession *session)
 		gconf_client_notify_remove (mail_config_get_gconf_client (), session_check_junk_notify_id);
 
 	mail_async_event_destroy(session->async);
-	e_mutex_destroy(session->lock);
 }
 
 static void
