Just for the record, Hans got some help on his question about sending SMTP
----- Forwarded by Rob Davenport/USINY/ABB on 08/07/2006 08:40 AM -----
08/04/2006 01:23 PM
Sent by Hans Halvorson
Thank you for following up about this. I got a reply, but from the
ding.gnus list, rather than from the help-emacs-windows list. I will
paste the reply in below, as well as my followup. In short, the
problem is solved! The problem boils down to the fact that the
(signal-process (process-id process) 'SIGALRM)
does not work with Win32 Emacs, even with Cygwin also installed. But
one can mimic that with:
(call-process "c:\\cygwin\\bin\\kill.exe" nil nil nil
"-ALRM" (format "%d" (process-id
or in some other way, e.g. by using 'shell-command'.
It seems to me that this is worth getting into the help-emacs-windows
archive. Do you want to reply to my original message with this
--Begin Forwarded Message--
> I did not exactly attempt the procedure you describe below. But I did
> the following instead:
> I looked at the code of the "original" starttls.el, and used it to
> make the following modifications to a recent version (from Emacs
> 22.0.50 CVS) of starttls.el.
> 1. Added:
> (defcustom starttls-kill-program "c:\\cygwin\\bin\\kill"
> "External kill command to send SIGALRM to starttls."
> :group 'starttls)
> 2. Replaced all three instances of:
> (signal-process (process-id process) 'SIGALRM)
> (call-process starttls-kill-program nil nil nil
> "-ALRM" (format "%d" (process-id
> With these modifications, the most recent version of starttls.el
> worked fine with Cygwin and gnutls-cli 1.0.25. (I am using
> Wanderlust, but I assume that this would also work for gnus.)
> Thank you very much for your help.
> At Wed, 02 Aug 2006 12:04:41 +0900,
> Daiki Ueno wrote:
> > Hi,
> > >>>>> In <87wt9sxzl5.wl%[email protected]>
> > >>>>> Hans wrote:
> > > I'm using the version of starttls.el in Emacs CVS 22.0.50.
> > > I am having some trouble with this version of starttls.el in
> > > interaction with gnutls-cli on cygwin (Windows XP). No mail is sent
> > > (the session hangs), and the trace of the smtp session always ends
> > > with "Ready to start TLS". So, I guess that starttls.el is not
> > > sending SIGALRM to gnutls-cli to tell it to negotiate.
> > > I am curious if I have caused this problem by failing to set some
> > > relevant variable, or if the current version of starttls.el is not
> > > compatible with cygwin.
> > I think "the original" starttls will work on cygwin, which has the
> > following change not installed in either Gnus or Emacs.
> > 2002-02-28 Jun-ya Kato
> > * starttls.el (starttls-kill-program): New user option.
> > (starttls-negotiation-by-kill-program): New user option.
> > (starttls-negotiate): Send SIGALRM by kill.exe if
> > `starttls-negotiation-by-kill-program' is non-nil.
> > Can you test it?
> > $ cvs -z9 -d :pserver:[email protected]:/cvs/root co starttls
> > $ cd starttls
> > $ ./bootstrap
> > $ ./configure && make && make install
> > If it is still useful, I'll ask Kato-san to assign the copyright to
> > Regards,
> > --
> > Daiki Ueno
--End Forwarded Message--
At Fri, 04 Aug 2006 13:08:50 -0400,
[email protected] wrote:
> Sorry Hans, I don't have any answer for you, but wanted to at least let
> you know
> I thought about it. Have you heard from anyone else off the list? If
> not, maybe
> try again.
> ----- Forwarded by Rob Davenport/USINY/ABB on 08/04/2006 10:16 AM -----
> 08/01/2006 06:22 AM
> Hans @gnu.org
> Sent by [email protected]
> To: [email protected]
> Subject: [h-e-w] sending mail and starttls
> I have been trying to send mail via an external smtp server that
> requires authentication using the following setup:
> Emacs 188.8.131.52 (CVS) [Emacs W32] on a Windows XP Machine. Cygwin
> also installed for the GNU utilities, gnutls-cli, openssl etc.. Mail
> client: Wanderlust 2.15.3.
> The difficulty I am having right now is that the starttls negotiation
> is hanging at 'Ready to start TLS.' From browsing the code of
> 'starttls.el', I am guessing that the difficulty is that emacs is not
> sending SIGALRM to the starttls process. (Perhaps though I am totally
> confused...) Does anyone know the secret to sending mail to an
> authenticated smtp server?