Subject: smtpmail: erroneous STARTTLS capability check

From: [email-masked] (Ludovic Courtès)
Date: Tue, 27 Sep 2011 18:13:08 +0200

Hello,

smptmail.el reads this (since revision 104665):

		   (lambda (capabilities)
		     (and (string-match "-STARTTLS" capabilities)
			  "STARTTLS\r\n"))

This check doesn’t work with the Zimbra SMTP server I’m using, which has
this capability string:

  "250-mail1-xyz.fr\n250-8BITMIME\n250-SIZE 20971520\n250 STARTTLS\n"

(Note the lack of a hyphen before “STARTTLS”.)

Removing the hyphen in the ‘string-match’ call above fixes the problem.

Thanks,
Ludo’.