courier support



Hello,

I needed the following patch in order to be able to use gyrus 0.3.5 with
courier-imap server:

diff -u src.orig/gyrus-admin-acl.c src/gyrus-admin-acl.c
--- src.orig/gyrus-admin-acl.c  2005-05-20 20:51:55.000000000 +0300
+++ src/gyrus-admin-acl.c       2005-11-25 03:43:30.496913000 +0200
@@ -84,7 +84,7 @@
                return FALSE;
        }

-       gchar *msg = g_strdup_printf (". setacl \"%s\" \"%s\" %s\n",
+       gchar *msg = g_strdup_printf (". ACL STORE \"%s\" \"user=%s\" %s\n",
                                      mailbox, user, permissions);
        gyrus_admin_write_channel (admin, msg);
        g_free (msg);
diff -u src.orig/gyrus-admin.c src/gyrus-admin.c
--- src.orig/gyrus-admin.c      2005-08-28 19:00:11.000000000 +0300
+++ src/gyrus-admin.c   2005-11-25 05:08:48.240752000 +0200
@@ -318,7 +318,7 @@
                                (admin->priv->treeview_users));
        gtk_tree_store_clear (store);

-       msg = g_strdup (". list * *\n");
+       msg = g_strdup (". list inbox. *\n");
        error = gyrus_admin_write_channel (admin, msg);
        g_free (msg);
        g_return_if_fail (error == G_IO_ERROR_NONE);
diff -u src.orig/gyrus-admin-mailbox.c src/gyrus-admin-mailbox.c
--- src.orig/gyrus-admin-mailbox.c      2005-08-26 19:56:51.000000000 +0300
+++ src/gyrus-admin-mailbox.c   2005-11-25 03:43:30.508913750 +0200
@@ -46,6 +46,7 @@
                               gint *quota_limit, gint *quota_used,
                               gchar **error)
 {
+#if 0
        gchar *msg, **parts;
        msg = g_strdup_printf (". getquota \"%s\"\n", mailbox_path);
        gyrus_admin_write_channel (admin, msg);
@@ -79,6 +80,7 @@
        }
        g_free (msg);
        g_strfreev (parts);
+#endif
        return TRUE;
 }
 
diff -u src.orig/gyrus-main-app.c src/gyrus-main-app.c
--- src.orig/gyrus-main-app.c   2005-08-28 16:31:14.000000000 +0300
+++ src/gyrus-main-app.c        2005-11-25 05:05:04.594775000 +0200
@@ -594,7 +594,7 @@
        state = (CORBA_char *)
                bonobo_ui_engine_xml_get_prop (ui_engine, command,
                                               "sensitive", &invalid);
-       state[0] = (sensitive)? '1' : '0';
+//     state[0] = (sensitive)? '1' : '0';

        bonobo_ui_engine_xml_set_prop (ui_engine, command, "sensitive",
                                       state, "gyrus-menubar");


Quota support is commented out as I work with ACLs for now, and
the last change is because I got segfault otherwise:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209485632 (LWP 10267)]
0x080522c1 in gyrus_main_app_menu_item_set_sensitive (app=0x8602c60, 
    command=0x80572a7 "/commands/ViewReport", sensitive=0) at gyrus-main-app.c:597
597		state[0] = (sensitive)? '1' : '0';
(gdb) bt
#0  0x080522c1 in gyrus_main_app_menu_item_set_sensitive (app=0x8602c60, 
    command=0x80572a7 "/commands/ViewReport", sensitive=0) at gyrus-main-app.c:597
#1  0x08052355 in gyrus_main_app_menu_set_sensitive (app=0x8602c60, sens=0)
    at gyrus-main-app.c:616
#2  0x080524c9 in gyrus_main_app_on_switch_page (notebook=0x863f128, page=0x8772a28, 
    page_num=0, user_data=0x8602c60) at gyrus-main-app.c:303
#3  0x058fdfc4 in gtk_marshal_VOID__UINT_STRING () from /usr/lib/libgtk-x11-2.0.so.0
#4  0x00b07285 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#5  0x00b1575b in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0
#6  0x00b16eb0 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#7  0x00b17223 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#8  0x0591308e in gtk_notebook_get_current_page () from /usr/lib/libgtk-x11-2.0.so.0
#9  0x05914c2a in gtk_notebook_insert_page_menu () from /usr/lib/libgtk-x11-2.0.so.0
#10 0x05915184 in gtk_notebook_append_page () from /usr/lib/libgtk-x11-2.0.so.0
#11 0x080521d8 in gyrus_main_app_append_page (app=0x8602c60, session=0x874f5f0)
    at gyrus-main-app.c:566
#12 0x08053adc in gyrus_session_on_button_open_clicked (widget=0x8639440, user_data=0x8602c60)
    at gyrus-session.c:694
#13 0x00b127e7 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0


Regards,
Nerijus



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