sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 5f09ceedadee7fc72430c26a4e3cf82dac46b3ca
parent 176bf4668284f92fe4fb6561a2fcc7827eab3bce
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date:   Fri, 27 Nov 2009 14:49:06 -0500

makes compose-mode and forward-mode ask_for_contacts logic the same

Diffstat:
M lib/sup/modes/forward-mode.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/sup/modes/forward-mode.rb b/lib/sup/modes/forward-mode.rb
@@ -29,9 +29,9 @@ class ForwardMode < EditMessageMode
   end
 
   def self.spawn_nicely opts={}
-    to = opts[:to] || BufferManager.ask_for_contacts(:people, "To: ") or return if $config[:ask_for_to]
-    cc = opts[:cc] || BufferManager.ask_for_contacts(:people, "Cc: ") or return if $config[:ask_for_cc]
-    bcc = opts[:bcc] || BufferManager.ask_for_contacts(:people, "Bcc: ") or return if $config[:ask_for_bcc]
+    to = opts[:to] || (BufferManager.ask_for_contacts(:people, "To: ") or return if ($config[:ask_for_to] != false))
+    cc = opts[:cc] || (BufferManager.ask_for_contacts(:people, "Cc: ") or return if $config[:ask_for_cc])
+    bcc = opts[:bcc] || (BufferManager.ask_for_contacts(:people, "Bcc: ") or return if $config[:ask_for_bcc])
     
     attachment_hash = {}
     attachments = opts[:attachments] || []