diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 3 | ||||
-rw-r--r-- | mail/mail-config-druid.c | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 4341f962f8..a9f14d2d44 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,8 @@ 2001-01-11 Miguel de Icaza <miguel@gnu.org> + * mail-config-druid.c (incoming_type_changed): Guess the default + MAIL value for MBOX and Maildir files. + * mail-callbacks.c (configure_mail): Force finalization of the function before returning fixing the FIXME that was there. diff --git a/mail/mail-config-druid.c b/mail/mail-config-druid.c index cc0413fe03..a68f298969 100644 --- a/mail/mail-config-druid.c +++ b/mail/mail-config-druid.c @@ -450,6 +450,14 @@ incoming_type_changed (GtkWidget *widget, gpointer user_data) if (provider->url_flags & CAMEL_URL_ALLOW_PATH) { if (!dwidget) dwidget = GTK_WIDGET (druid->incoming_path); + + if (!strcmp (provider->protocol, "mbox") || !strcmp (provider->protocol, "maildir")){ + if (getenv ("MAIL")) + gtk_entry_set_text (druid->incoming_path, getenv ("MAIL")); + } else { + gtk_entry_set_text (druid->incoming_path, ""); + } + gtk_widget_set_sensitive (GTK_WIDGET (druid->incoming_path), TRUE); gtk_widget_set_sensitive (label, TRUE); } else { |