[evolution-patches] GroupWise Mailer : Patch to add a warning if quota exceeds
- From: "Pasupathilingam Sankarasivasubramanian" <psankar novell com>
- To: <evolution-patches gnome org>
- Cc: k Harish <KHarish novell com>, Susarla Parthasarathi <SParthasarathi novell com>
- Subject: [evolution-patches] GroupWise Mailer : Patch to add a warning if quota exceeds
- Date: Fri, 02 Sep 2005 04:13:39 -0600
Hi,
Attached with this mail is the patch to display an error dialog, if mail
sending fails due to quota restrictions. The string used in exchange is
reused so as to maintain string freeze.
Please review.
Thanks,
Sankar
Index: servers/groupwise/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/ChangeLog,v
retrieving revision 1.162
diff -u -p -r1.162 ChangeLog
--- servers/groupwise/ChangeLog 24 Aug 2005 11:44:32 -0000 1.162
+++ servers/groupwise/ChangeLog 2 Sep 2005 09:54:34 -0000
@@ -1,3 +1,9 @@
+2005-09-02 Sankar P <psankar novell com>
+
+ * camel-groupwise-transport.c:
+ (groupwise_send_to):
+ Added condition to handle the Quota errors.
+
2005-08-24 Sankar P <psankar novell com>
* e-gw-connection.[ch] :
Index: servers/groupwise/e-gw-connection.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/e-gw-connection.c,v
retrieving revision 1.131
diff -u -p -r1.131 e-gw-connection.c
--- servers/groupwise/e-gw-connection.c 31 Aug 2005 04:26:07 -0000 1.131
+++ servers/groupwise/e-gw-connection.c 2 Sep 2005 09:54:39 -0000
@@ -143,6 +143,8 @@ e_gw_connection_parse_response_status (S
case 59910: return E_GW_CONNECTION_STATUS_INVALID_CONNECTION;
case 59923: return E_GW_CONNECTION_STATUS_REDIRECT;
case 53530: return E_GW_CONNECTION_STATUS_OTHER;
+ /* FIXME: 58652 should be changed with an enum.*/
+ case 58652: return 58652;
/* FIXME: map all error codes */
}
Index: camel/providers/groupwise/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/ChangeLog,v
retrieving revision 1.108
diff -u -p -r1.108 ChangeLog
--- camel/providers/groupwise/ChangeLog 25 Aug 2005 06:50:29 -0000 1.108
+++ camel/providers/groupwise/ChangeLog 2 Sep 2005 09:54:40 -0000
@@ -1,3 +1,9 @@
+2005-09-02 Sankar P <psankar novell com>
+
+ * e-gw-connection.c:
+ (e_gw_connection_parse_response_status):
+ Added code to handle the Quota errors.
+
2005-08-25 Parthasarathi Susarla <sparthasarathi novell com>
** See bug # 312857
Index: camel/providers/groupwise/camel-groupwise-transport.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/camel-groupwise-transport.c,v
retrieving revision 1.19
diff -u -p -r1.19 camel-groupwise-transport.c
--- camel/providers/groupwise/camel-groupwise-transport.c 31 Aug 2005 04:26:07 -0000 1.19
+++ camel/providers/groupwise/camel-groupwise-transport.c 2 Sep 2005 09:54:40 -0000
@@ -208,6 +208,10 @@ groupwise_send_to (CamelTransport *trans
g_object_unref (item);
if (temp_item)
g_object_unref (temp_item);
+ /* FIXME: 58652 should be changed with an enum.*/
+ if (status == 58652)
+ camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, _("You will not be able to send mails till you clear up some space by deleting some mails.\n"));
+ else
camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, _("Unknown error"));
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]