diff options
Diffstat (limited to 'mail/mail-config-druid.c')
-rw-r--r-- | mail/mail-config-druid.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 { |