Subject: [sup-talk] Sending Emails

From: [email-masked] (fedzor)
Date: Thu, 3 Jul 2008 11:26:06 -0400

its not as dumb of a question as you think!

I prowled around in the source, and i even used grep tons of times to  
find where the messages are *actually* sent in the code, but I can't  
find it.

Mr. Morgan, I can only assume that you know exactly where this is.  
Could you point me to it?

-------------------------------------------------------|
~ Ari
if god gives you lemons
YOU FIND A NEW GOD

---

From: [email-masked] (Jeff Balogh)
Date: Thu, 03 Jul 2008 11:38:35 -0400

> Could you point me to it?

I'm not Mr. Morgan, but...

    $ ack sendmail
    lib/sup.rb
    211:        :sendmail => "/usr/sbin/sendmail -oem -ti",
    
    lib/sup/modes/edit-message-mode.rb
--> 285:      IO.popen(acct.sendmail, "w") { |p| p.puts m }
    286:      raise SendmailCommandFailed, "Couldn't execute #{acct.sendmail}" unless $? == 0
    
    lib/sup/account.rb
    4:  attr_accessor :sendmail, :signature
    10:    @sendmail = h[:sendmail]
    40:      [:name, :sendmail, :signature].each { |k| hash[k] ||= @default_account.send(k) }
    
The call is in send_message in lib/sup/modes/edit-message-mode.rb, line 285 in
git-next.

Cheers,
jeff

---

From: [email-masked] (wmorgan-sup at masanjin.net)
Date: Thu, 03 Jul 2008 08:52:35 -0700

>     286:      raise SendmailCommandFailed, "Couldn't execute #{acct.sendmail}"

Yep, this is the actual execution point. It's a call out to whatever
sendmail program you've defined in your configuration.
-- 
William <wmorgan-sup at masanjin.net>