From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65070 Path: news.gmane.org!not-for-mail From: michael@cadilhac.name (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.gnus.general Subject: nnimap using shell command. Date: Tue, 21 Aug 2007 16:05:43 +0200 Organization: Epita/LRDE Message-ID: <87d4xhkmo8.fsf@lrde.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: sea.gmane.org 1187705379 22232 80.91.229.12 (21 Aug 2007 14:09:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2007 14:09:39 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13580@lists.math.uh.edu Tue Aug 21 16:09:37 2007 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 1INUQI-0001iv-UU for ding-account@gmane.org; Tue, 21 Aug 2007 16:09:35 +0200 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 1INUOQ-0003pe-Id; Tue, 21 Aug 2007 09:07:38 -0500 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 1INUOO-0003pK-Fm for ding@lists.math.uh.edu; Tue, 21 Aug 2007 09:07:36 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1INUOH-0000oH-DU for ding@lists.math.uh.edu; Tue, 21 Aug 2007 09:07:36 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1INUOG-0003zl-00 for ; Tue, 21 Aug 2007 16:07:28 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1INUOB-0005Al-Bs for ding@gnus.org; Tue, 21 Aug 2007 16:07:23 +0200 Original-Received: from ivr94-6-82-230-255-91.fbx.proxad.net ([82.230.255.91]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Aug 2007 16:07:23 +0200 Original-Received: from michael by ivr94-6-82-230-255-91.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Aug 2007 16:07:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 97 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ivr94-6-82-230-255-91.fbx.proxad.net X-Website: http://michael.cadilhac.name Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVWPh+Tai+5r5YKBAEU CQQzGAtiq7gjAAACR0lEQVQ4jW2UzW7lIAyFzVW8BzTZX5DmCZLuU2H2pMXv/ypzbK7aSh2kRCRf /HNsE0q7Sg+RQ7JFKaqtrRNAl5AIIKe6D5DBqgbmUAe5hBI1wIRFAHjeM0RKtZi7XVVEpb0BSNfA IddChChT5DildSLWOWhY5IEItMnncZgFcUAc/5jjwCMsDosRNdfKPDTFEdVBW8C+RebDb4N5Orio RhM1+11IJyx0ng2+LryFHBMPDQDYHrY6IfGuU3ouiXTQNE8LIJDKOWpNxERTFrggQwRPd7USUsTW fJ0XbR3bdj5KgBYy4SACpxDeUYEUAzLmtJ1iIrD2gczPq8Qomjhsh/RjGIgKIO8p7NITjwlx7WID nsnQe5NeuTvoBpi8LX6vLLOh5icjOHqBypgnuSp7M+RE1agbQKHQr5E2z1WObhYW4gMqeGQL7joM jCf2DxSk5ApADSYHfFF4igNfJZL1z0GKP0FN02s4XiDXr7V5P94W6I9v8MfBOQDmfwAaVYt+x8Da v4DJvX8BAdin3Knm5yMZYAO4ABDkDniZLLfi4P40gP1F0TPGZOu0CGwA1lcowxwlGy6A9705mD0V jHCxwVZT/hYdRJVUGZNlx6l7ScQBTluof6Wj6bsPYlvpwoTvXFD9gHPn2TZPF3ntI2ecxVrW5MrV XiCie5EeNa7BlWu/HNSkprDUva163PHxAv5jyGV7gVzyAghSKOTnat85UIYFICXbD2NV9rRiv0BS tKQsg6OHH4A15F1WW+UHKHHa32h6aPnAm3/pUcWp+WYnTQAAAABJRU5ErkJggg== User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:SnYFlGh34TEfZn1hiNikkA/Nbws= X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65070 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable When using `imap-shell-program' (with a nnimap-stream of 'shell), the process is created `as is' with start-process. The docstring of start-process says=A0: If you want to separate standard output from standard error, invoke the command through a shell and redirect one of them using the shell syntax. Well, this is fun, because my distant imapd says the following=A0: $ imapd * PREAUTH Ready. INFO: LOGIN, user=3Dcadilhac, ip=3D[127.0.0.1], protocol=3DIMAP Oh, heck. Gnus is searching for PREAUTH on the INFO line, doesn't found it, and just wait until the end of time to see what's happening next[1]. Well, I'm not comfortable with the use of `2> /dev/null' on a package meant to work on Windows, so I propose this more radical change=A0: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=gnus.patch Content-Transfer-Encoding: quoted-printable =2D-- gnus.texi 09 Aug 2007 16:22:28 +0200 7.241 +++ gnus.texi 21 Aug 2007 15:54:10 +0200=09 @@ -14254,7 +14254,9 @@ ssh %s imapd @end example =20 =2DThe valid format specifier characters are: +Make sure nothing is interfering with the output of the program, e.g., +don't forget to redirect the error output to the void. The valid format +specifier characters are: =20 @table @samp @item s @@ -16881,8 +16883,10 @@ =20 @vindex imap-shell-program @vindex imap-shell-host =2DFor @acronym{IMAP} connections using the @code{shell} stream, the variab= le =2D@code{imap-shell-program} specify what program to call. +For @acronym{IMAP} connections using the @code{shell} stream, the +variable @code{imap-shell-program} specify what program to call. Make +sure nothing is interfering with the output of the program, e.g., don't +forget to redirect the error output to the void. =20 @item nnimap-authenticator @vindex nnimap-authenticator --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable and maybe change imap.el to not wait indefinitely, but just a few seconds. Cheers=A0! Footnotes:=20 [1] Which is, as we know, that everybody leaves the Restaurant. =2D-=20 | Micha=EBl `Micha' Cadilhac | Une erreur peut devenir exacte = | | http://michael.cadilhac.name | selon que celui qui l'a commise = | | JID/MSN: | s'est tromp=E9 ou non. = | `---- michael.cadilhac@gmail.com | -- Pierre Dac - = --' --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (GNU/Linux) iD8DBQFGyvE7UJhDmOfFA3URAo0zAKDKMwpuAb7ezRXX+X4Rq9qZQzkWHwCcCwEd E0woeuIyamqtsB2MjRqKzuc= =tY+7 -----END PGP SIGNATURE----- --==-=-=--