Gnus development mailing list
 help / color / mirror / Atom feed
From: Adrian Lanz <lanz@wsl.ch>
To: ding@gnus.org
Subject: Re: smtpmail embedded into fedmail
Date: Sun, 03 Jul 2011 16:35:54 +0200	[thread overview]
Message-ID: <yova8vsfl9dh.fsf@sampling.wsl.ch> (raw)
In-Reply-To: <m3iprjo6fi.fsf@quimbies.gnus.org>

>>>>> On Sun, 03 Jul 2011 15:11:13 +0200
>>>>> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

    > No, that's wrong.  A non-nil return value means that sending
    > failed...

Thanks!!! But, is this new? Because when smtpmail-via-smtp returns a nil
value after successful sending via smtp protocol, feedmail seems to
write out an error message?! Below the relevant part within feedmail? Is
this the "I will fear no evil" thingy?

Adrian.

(defun feedmail-buffer-to-smtpmail (prepped errors-to addr-listoid)
  "Function which actually calls `smtpmail-via-smtp' to send buffer as e-mail."
  ;; I'm not sure smtpmail.el is careful about the following
  ;; return value, but it also uses it internally, so I will fear
  ;; no evil.
  (feedmail-say-debug ">in-> feedmail-buffer-to-smtpmail %s" addr-listoid)
  (require 'smtpmail)
  (if (not (smtpmail-via-smtp addr-listoid prepped))
      (progn
	(set-buffer errors-to)
	(insert "Send via smtpmail failed.  Probable SMTP protocol error.\n")
	(insert "Look for details below or in the *Messages* buffer.\n\n")

[...]





  reply	other threads:[~2011-07-03 14:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-03 12:55 Adrian Lanz
2011-07-03 13:11 ` Lars Magne Ingebrigtsen
2011-07-03 14:35   ` Adrian Lanz [this message]
2011-07-03 20:06     ` Lars Magne Ingebrigtsen
2011-07-03 20:10     ` Lars Magne Ingebrigtsen

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=yova8vsfl9dh.fsf@sampling.wsl.ch \
    --to=lanz@wsl.ch \
    --cc=ding@gnus.org \
    /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;
as well as URLs for NNTP newsgroup(s).