From: Katsumi Yamaoka <yamaoka@jpl.org>
To: mihkel <turakas@gmail.com>
Cc: ding@gnus.org
Subject: Re: Can't send message through smtp with gmail
Date: Thu, 28 Jun 2012 07:28:56 +0900 [thread overview]
Message-ID: <b4m8vf8z8wn.fsf@jpl.org> (raw)
In-Reply-To: <CAKB1TLoNih_2Fwydp7-foCW9nY4P1uccbfWdY79SVhe4FF7-dQ@mail.gmail.com>
mihkel wrote:
> Recently I upgraded to Fedora 17 and to Emacs 24.
> M-x emacs-version:
> GNU Emacs 24.0.97.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.10) of
> 2012-05-21 on x86-15.phx2.fedoraproject.org
> M-x gnus-version
> Ma Gnus v0.6
> After that upgrade I can't send any messages. Error that is shown in
> Messages buffer is:
[...]
> I think the relevant snippet from gnus init file is:
[...]
> (defvar %smtpmail-via-smtp (symbol-function 'smtpmail-via-smtp))
> (defun smtpmail-via-smtp (recipient smtpmail-text-buffer)
> (with-current-buffer smtpmail-text-buffer
> (change-smtp))
> (funcall (symbol-value '%smtpmail-via-smtp) recipient smtpmail-text-buffer))
[...]
`smtpmail-via-smtp' now takes three arguments:
(smtpmail-via-smtp RECIPIENT SMTPMAIL-TEXT-BUFFER &optional
ASK-FOR-PASSWORD)
How about replacing those `(defvar ...' and `(defun ...' with
the defadvice form as follows rather than redefining the function?
(defadvice smtpmail-via-smtp (before change-smtp activate)
"Run `change-smtp' in advance."
(with-current-buffer smtpmail-text-buffer
(change-smtp)))
This is essentially the same, but you don't have to care
the arguments spec change.
next prev parent reply other threads:[~2012-06-27 22:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-27 10:25 mihkel
2012-06-27 22:28 ` Katsumi Yamaoka [this message]
2012-06-28 15:03 ` mihkel
2012-06-28 17:40 ` Richard Riley
2012-06-28 20:45 ` mihkel
2012-06-28 23:47 ` Richard Riley
2012-06-29 6:46 ` mihkel
2012-06-29 9:29 ` Richard Riley
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=b4m8vf8z8wn.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=ding@gnus.org \
--cc=turakas@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;
as well as URLs for NNTP newsgroup(s).