From 132881e77b90bbe4e82d6fe2a79feae5f2f6b8fb Mon Sep 17 00:00:00 2001 From: William Morgan Date: Fri, 4 Sep 2009 11:21:24 -0400 Subject: [PATCH] minor sup-config output tweaks --- bin/sup-config | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/sup-config b/bin/sup-config index 0ec20df..b37e0b2 100755 --- a/bin/sup-config +++ b/bin/sup-config @@ -166,7 +166,7 @@ account = $config[:accounts][:default] name = axe "What's your name?", account[:name] email = axe "What's your (primary) email address?", account[:email] -say "Ok, your header will look like this:" +say "Ok, your from header will look like this:" say " From: #{name} <#{email}>" say "\nDo you have any alternate email addresses that also receive email?" @@ -216,14 +216,12 @@ else choose do |menu| menu.prompt = "Store my sent mail in? " + menu.choice('Default (an mbox in ~/.sup, aka sup://sent)') { $config[:sent_source] = 'sup://sent'} unless have_sup_sent + valid_sents = Redwood::SourceManager.sources.each do |s| have_sup_sent = true if s.to_s.eql?('sup://sent') - menu.choice(s.to_s) { $config[:sent_source] = s.to_s } if s.respond_to? :store_message end - - menu.choice('Default (sup://sent)') { $config[:sent_source] = 'sup://sent'} unless have_sup_sent - end end @@ -233,7 +231,7 @@ say "Ok, I've saved you up a nice lil' #{Redwood::CONFIG_FN}." say <