/* Server info */
serv_vbox = gtkut_get_options_frame(sieve_vbox, &serv_frame, _("Server information"));
- gtk_widget_show (serv_vbox);
- gtk_box_pack_start (GTK_BOX (page_vbox), serv_vbox, FALSE, FALSE, 0);
SET_TOGGLE_SENSITIVITY (enable_checkbtn, sieve_vbox);
size_group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
/* Encryption */
tls_vbox = gtkut_get_options_frame(sieve_vbox, &tls_frame, _("Encryption"));
- gtk_widget_show (tls_vbox);
- gtk_box_pack_start (GTK_BOX (page_vbox), tls_vbox, FALSE, FALSE, 0);
RADIO_ADD(tls_radio_no, tls_group, hbox, tls_vbox,
_("No encryption"));
* to read the 10th element in order not to break older
* configurations, and to move the password to password
* store.
- * If there are not 10 nor 9 elements, something is wrong. */
- if (num != 9) {
+ * The userid may be missing if it is unset.
+ * If there are not 10, 9 or 8 elements, something is wrong. */
+ if (num != 9 && num != 8) {
g_warning("failed reading Sieve config elements");
}
}
enc_userid = g_base64_encode(config->userid, len);
}
- confstr = g_strdup_printf("%c%c %s %c%hu %hhu %hhu %hhu %s",
+ confstr = g_strdup_printf("%c%c %s %c%hu %hu %hu %hu %s",
config->enable ? 'y' : 'n',
config->use_host ? 'y' : 'n',
config->host && config->host[0] ? config->host : "!",