From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68128 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap with openssl stopping up after connecting in Windows Date: Sun, 11 Jan 2009 18:30:28 +0100 Organization: Probably a good idea Message-ID: References: <833ahh3nud.fsf@torus.sehlabs.com> <877i6th1uo.fsf@mocca.josefsson.org> <87zljpidgh.fsf@hjemme.hjemme.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1231695070 2568 80.91.229.12 (11 Jan 2009 17:31:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Jan 2009 17:31:10 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16572@lists.math.uh.edu Sun Jan 11 18:32:22 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1LM4AY-0002w4-RB for ding-account@gmane.org; Sun, 11 Jan 2009 18:32:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1LM49H-0000fJ-2J; Sun, 11 Jan 2009 11:30:55 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LM49F-0000f3-R3 for ding@lists.math.uh.edu; Sun, 11 Jan 2009 11:30:53 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LM499-0000mv-Ff for ding@lists.math.uh.edu; Sun, 11 Jan 2009 11:30:53 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LM49Q-0001Dd-00 for ; Sun, 11 Jan 2009 18:31:04 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LM499-00087G-0K for ding@gnus.org; Sun, 11 Jan 2009 17:30:47 +0000 Original-Received: from cm-84.208.204.180.getinternet.no ([84.208.204.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Jan 2009 17:30:46 +0000 Original-Received: from sb by cm-84.208.204.180.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Jan 2009 17:30:46 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 50 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.208.204.180.getinternet.no Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (windows-nt) Cancel-Lock: sha1:G0UrwIGEylRv0yoI+vQI9/l5IfY= X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68128 Archived-At: Ok. Now I also can report a success. This time with cygwin openssl. My Vista laptop have been blue screening a couple of times. Apparently Vista isn't supposed to do that, so IT support have been on me to turn my laptop in for reinstallation (if it continues to blue screen they will look at the hardware). Since reinstallation is a bit of a hazzle, I've been dragging my heels since mid-November. But on Wednesday I finally turned it in, and got it back on Friday. And this time I wasn't hit with BLODA[1] when installing cygwin, so I got cygwin openssl. I modified the imap-ssl-program to use the full path to the cygwin openssl.exe (I don't like to put cygwin in the PATH. I prefer to put GnuWin32 executables there to avoid line ending confusion for diff and the like) and switched the nnimap server back to ((nnimap "myserver" (nnimap-address "myserver.dyndns.org") (nnimap-stream ssl)) and started Gnus, and it came up and connected to the nnimap server. ...well almost. It failed at first, but when I entered the server buffer and opened the nnimap server it opened. I'm probably running a hook that us run too late...? It's now running in gnus-started-hook. I tried gnus-open-hook and gnus-starting-hook, but both are too late. Does anyone know of a good hook candidate for me to use...? Here's the emacs lisp code from my .emacs file: (if windows-emacs (progn (defun use-cygwin-openssl-for-nnimap () (let ((cygwin-openssl "C:\\cygwin\\bin\\openssl.exe")) (if (file-exists-p cygwin-openssl) (setq imap-ssl-program (mapcar '(lambda (element) (let ((newelement element)) (if (string-match "openssl " element) (setq newelement (replace-match (concat cygwin-openssl " ") t t element))) newelement)) imap-ssl-program))))) (add-hook 'gnus-started-hook 'use-cygwin-openssl-for-nnimap))) [1]