From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Committing new smtpmail.el later tonight Date: Wed, 22 Jun 2011 00:46:25 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <8739jogwf9.fsf@lifelogs.com> <87lix9eknu.fsf_-_@lifelogs.com> <878vt52ykv.fsf@lifelogs.com> <878vt25tbf.fsf@lifelogs.com> <87zklbnet1.fsf@lifelogs.com> <87hb7ig7p5.fsf@gmail.com> <877h8eg6v1.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308696423 28894 80.91.229.12 (21 Jun 2011 22:47:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2011 22:47:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 22 00:46:59 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QZ9ii-0004pQ-Hu for ged-emacs-devel@m.gmane.org; Wed, 22 Jun 2011 00:46:56 +0200 Original-Received: from localhost ([::1]:48364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ9ih-00017a-K9 for ged-emacs-devel@m.gmane.org; Tue, 21 Jun 2011 18:46:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ9iS-00017U-Tf for emacs-devel@gnu.org; Tue, 21 Jun 2011 18:46:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ9iR-0008IB-Uy for emacs-devel@gnu.org; Tue, 21 Jun 2011 18:46:40 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:35921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ9iR-0008I4-KM for emacs-devel@gnu.org; Tue, 21 Jun 2011 18:46:39 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QZ9iR-0004hz-0b for emacs-devel@gnu.org; Wed, 22 Jun 2011 00:46:39 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jun 2011 00:46:39 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jun 2011 00:46:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEXlayjjZyaIRRuyWSPF YSXQgVPjaScvGAncZCX38e5qOaveAAACQUlEQVQ4jW2UwW7bMAxAmcYbcrRXoMgxo+0ouxVyMO+4 xUKX42BMKHxLkMHocVDWacc07Qb/gA/+25GyXRvreAglPpMUSSnwW+8AwMNEmgTgwhqUGEqyaf2F wAwxRCRgkOTIIL3/CoNcoAOvTwCIYzBjuzDCRgTejgBswgyFtdbAozyNgbeDqTAGDSXXdd00Wjea lJM6j3OEbnNf1IUuinaj4zzuQS4wzm/jdy3QuugBRWqKpuh3uukBo6ZuBulArDXqHPW/oMZbnccC 8xceL4Xr+J8gPOxcxb2ha8CBQBCA78OrDpT7YM8EoaqCefVCMgcCXj4J86GqHoJzmmyvDnZLofyA ZM69/lQG+0vSZWoiIIcJgTe0x2MZlHe0WFkaMwGfCDtI++eqLHlKNHl3KtgH1kmYrR1ABwD8ybcW kCUS9HvuwMQ/sFHYX3cyyhDtjWwBVWqNUhu78JBVeH1YcHJwN1ApJb57EQN3PVogLVlUaiSpNIIR CJXK1GfLXHzsgM8XcE0OFMSSFovewwfOSZJZy5l+OkAFBuCFDqgxqLiFlz1gnf6AsgfzNodas5LR kGOG4ZZmojaRelJZVD6HCmQk+WNXjVwNgOpYI7+LY6JUsoRdB3w4Y0K94/6Sx/L5VD5M6XFKJqHK xAD4umCSCAekWQ2nAo4lORQmmwGwx5QAeQj5XuL1UDn3l9+xFZEn8TRKzi50LMN/GG3hXYH+BDb8 8sOkd2i762YiKRS5LWEALgkRBhGMwMRv149hctPb/wJDpB5Bg9k6RQAAAABJRU5ErkJggg== Mail-Copies-To: never X-Now-Playing: The Focus Group's _Sketches and Spells_: "Swirling paths" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:BSjCOZ4FoPbdTq/wRE6hlM/iS+8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140817 Archived-At: Yeah, I'm able to reproduce the bug if I don't use the built-in TLS support. `open-network-stream' only does opportunistic STARTTLS upgrades if there's built-in support. Mainly because the non-built-in support is slow, and has historically been slightly buggy. But the problem with smtp.gmail.com isn't that it just offers STARTTLS support, but requires it. So `open-network-stream' should, in this case, do STARTTLS even if Emacs doesn't have built-in support. So I'm wondering what's the best approach here. 1) `open-network-stream' can do opportunistic STARTTLS upgrades for all protocols, using the external STARTTLS support. This will be slower, and may be more buggy. 2) I can add yet another parameter to `open-network-stream', :always-use-starttls-if-possible, and have smtpmail.el set it. This will have least impact overall, but, like, adds yet another parameter, so it's kinda tacky. I think I'll do 2) for now to get things working, and we can reexamine this later. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/