From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68132 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap with openssl stopping up after connecting in Windows Date: Sun, 11 Jan 2009 22:30:09 +0100 Message-ID: <871vv9pm3i.fsf@marauder.physik.uni-ulm.de> References: <833ahh3nud.fsf@torus.sehlabs.com> <877i6th1uo.fsf@mocca.josefsson.org> <87zljpidgh.fsf@hjemme.hjemme.lan> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1231709490 17476 80.91.229.12 (11 Jan 2009 21:31:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Jan 2009 21:31:30 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16576@lists.math.uh.edu Sun Jan 11 22:32:41 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 1LM7vD-00054b-89 for ding-account@gmane.org; Sun, 11 Jan 2009 22:32:39 +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 1LM7sv-0001ot-Eq; Sun, 11 Jan 2009 15:30:17 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LM7ss-0001oD-0W for ding@lists.math.uh.edu; Sun, 11 Jan 2009 15:30:14 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LM7so-00072y-MZ for ding@lists.math.uh.edu; Sun, 11 Jan 2009 15:30:13 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LM7t5-0004Rr-00 for ; Sun, 11 Jan 2009 22:30:27 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id n0BLU8ab029551 for ; Sun, 11 Jan 2009 22:30:08 +0100 (MET) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 585EB1C99A for ; Sun, 11 Jan 2009 22:30:08 +0100 (CET) X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.;yo.b yq4$p;ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Followup-To: ding@gnus.org In-Reply-To: (Steinar Bang's message of "Sun, 11 Jan 2009 19:04:22 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-CTc-dcc2-Metrics: poseidon 1031; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68132 Archived-At: On Sun, Jan 11 2009, Steinar Bang wrote: >>>>>> Steinar Bang : > >> 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...? > > I'm now running it from gnus-load-hook, and have added a (require 'imap) > to ensure that imap-ssl-program is defined before running the function > that modifies the list elements. > > Then it works for the initial Gnus startup as well. Doesn't it work if you put the stuff in ~/.gnus.el? > The code now looks like this: > (if windows-emacs > (progn > (defun use-cygwin-openssl-for-nnimap () > (let ((cygwin-openssl "C:\\cygwin\\bin\\openssl.exe")) You may use "C:/cygwin/bin/openssl.exe". > (if (file-exists-p cygwin-openssl) > (progn > (require 'imap) > (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-load-hook 'use-cygwin-openssl-for-nnimap))) > > The windows-emacs variable is defined like this: > (defvar windows-emacs (string-match "mingw" (emacs-version)) What's wrong with the variable `system-type'. Typically use: (memq system-type '(windows-nt ms-dos)) ,----[ v system-type RET ] | system-type is a variable defined in `src/emacs.c'. | Its value is gnu/linux | | Documentation: | Value is symbol indicating type of operating system you are using. | Special values: | `gnu/linux' compiled for a GNU/Linux system. | `darwin' compiled for Darwin (GNU-Darwin, Mac OS X, ...). | `macos' compiled for Mac OS 9. | `ms-dos' compiled as an MS-DOS application. | `windows-nt' compiled as a native W32 application. | `cygwin' compiled using the Cygwin library. | `vax-vms' or | `axp-vms' compiled for a (Open)VMS system. | Anything else indicates some sort of Unix system. `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/