From: Reiner Steib <reinersteib+gmane@imap.cc>
To: ding@gnus.org
Subject: Re: nnimap with openssl stopping up after connecting in Windows
Date: Sun, 11 Jan 2009 22:30:09 +0100 [thread overview]
Message-ID: <871vv9pm3i.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <u1vv9vhw9.fsf@dod.no> (Steinar Bang's message of "Sun, 11 Jan 2009 19:04:22 +0100")
On Sun, Jan 11 2009, Steinar Bang wrote:
>>>>>> Steinar Bang <sb@dod.no>:
>
>> 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))
,----[ <f1> 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/
next prev parent reply other threads:[~2009-01-11 21:30 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-19 11:56 Vista, secure imap and firewalls? Steinar Bang
2008-11-19 17:37 ` Steinar Bang
2008-11-22 18:44 ` nnimap with openssl stopping up after connecting in Windows (Was: Vista, secure imap and firewalls?) Steinar Bang
2008-11-22 23:37 ` nnimap with openssl stopping up after connecting in Windows Steinar Bang
2008-11-24 9:12 ` Steinar Bang
2008-11-24 1:38 ` Steven E. Harris
2008-11-24 10:09 ` Simon Josefsson
2008-11-24 11:13 ` Steinar Bang
2008-12-11 20:46 ` When and how to look in ' *nnimap* ' buffers? (Was: nnimap with openssl stopping up after connecting in Windows) Steinar Bang
2008-12-21 18:34 ` nnimap with openssl stopping up after connecting in Windows Steinar Bang
2008-12-25 0:26 ` Steinar Bang
2008-12-26 11:21 ` Steinar Bang
2008-12-26 11:27 ` Steinar Bang
2008-12-26 13:13 ` Steinar Bang
2008-12-26 14:04 ` Steven E. Harris
2008-12-26 15:57 ` Steinar Bang
2008-12-26 17:25 ` Steinar Bang
2008-12-26 17:40 ` Steinar Bang
2008-12-31 13:06 ` Steinar Bang
2009-01-01 18:48 ` Steinar Bang
2008-12-26 14:12 ` Steven E. Harris
2008-12-26 15:58 ` Steinar Bang
2009-01-01 22:23 ` Steven E. Harris
2009-01-02 7:59 ` Steinar Bang
2009-01-02 13:10 ` Steven E. Harris
2009-01-02 13:37 ` Steinar Bang
2009-01-11 17:30 ` Steinar Bang
2009-01-11 18:04 ` Steinar Bang
2009-01-11 21:30 ` Reiner Steib [this message]
2009-01-12 8:41 ` Steinar Bang
2009-01-12 8:57 ` Steinar Bang
2009-01-15 12:43 ` Steinar Bang
2009-01-12 0:23 ` Steven E. Harris
2009-01-01 22:35 ` Steven E. Harris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871vv9pm3i.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).