Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: its.jeff.balogh@gmail.com (Jeff Balogh)
Subject: [sup-talk] Sending Emails
Date: Thu, 03 Jul 2008 11:38:35 -0400	[thread overview]
Message-ID: <1215099271-sup-5787@archie> (raw)
In-Reply-To: <B6855273-AE8F-4232-B47D-61BC5995AD6C@gmail.com>

fedzor wrote:
> 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?

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


  reply	other threads:[~2008-07-03 15:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03 15:26 fedzor
2008-07-03 15:38 ` Jeff Balogh [this message]
2008-07-03 15:52   ` wmorgan-sup at masanjin.net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1215099271-sup-5787@archie \
    --to=its.jeff.balogh@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox