All pastes #386845 Raw Edit

wwp

public text v1 · immutable
·published 2007-03-08 22:32 UTC
rendered paste body
Index: src/wizard.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/Attic/wizard.c,v
retrieving revision 1.1.2.50
diff -u -b -p -r1.1.2.50 wizard.c
--- src/wizard.c        2007/02/09 11:54:35     1.1.2.50
+++ src/wizard.c        2007/03/08 22:32:21
@@ -579,6 +579,8 @@ static gboolean wizard_write_config(Wiza

        if (!mailbox_ok) {
                if (wizard->create_mailbox && prefs_account->protocol != A_IMAP4) {
+fprintf(stderr, "\nwizard_write_config: %s\n", gtk_entry_get_text(
+                                               GTK_ENTRY(wizard->mailbox_name)));
                        mailbox_ok = setup_write_mailbox_path(wizard->mainwin,
                                        gtk_entry_get_text(
                                                GTK_ENTRY(wizard->mailbox_name)));
@@ -684,6 +686,10 @@ static gboolean wizard_write_config(Wiza
        prefs_account->organization = g_strdup(
                                gtk_entry_get_text(GTK_ENTRY(wizard->organization)));
        prefs_account->smtp_server = g_strdup(smtp_server);
+
+       prefs_account->inbox = g_strdup_printf("#mh/%s/inbox",
+                       g_path_get_basename(gtk_entry_get_text(GTK_ENTRY(wizard->mailbox_name))));
+       prefs_account->local_inbox = g_strdup(prefs_account->inbox);

        if (prefs_account->protocol != A_LOCAL)
                prefs_account->recv_server = g_strdup(recv_server);