Gnus development mailing list
 help / color / mirror / Atom feed
* nnimap using shell command.
@ 2007-08-21 14:05 Michaël Cadilhac
  2007-08-21 20:05 ` Bjørn Mork
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Michaël Cadilhac @ 2007-08-21 14:05 UTC (permalink / raw)
  To: ding


[-- Attachment #1.1: Type: text/plain, Size: 781 bytes --]

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 :

        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 :

$ imapd
* PREAUTH Ready.
INFO: LOGIN, user=cadilhac, ip=[127.0.0.1], protocol=IMAP

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 :


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: gnus.patch --]
[-- Type: text/x-patch, Size: 946 bytes --]

--- gnus.texi	09 Aug 2007 16:22:28 +0200	7.241
+++ gnus.texi	21 Aug 2007 15:54:10 +0200	
@@ -14254,7 +14254,9 @@
 ssh %s imapd
 @end example
 
-The 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:
 
 @table @samp
 @item s
@@ -16881,8 +16883,10 @@
 
 @vindex imap-shell-program
 @vindex imap-shell-host
-For @acronym{IMAP} connections using the @code{shell} stream, the variable
-@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.
 
 @item nnimap-authenticator
 @vindex nnimap-authenticator

[-- Attachment #1.3: Type: text/plain, Size: 499 bytes --]


and maybe change imap.el to not wait indefinitely, but just a few
seconds.

Cheers !

Footnotes: 
[1]  Which is, as we know, that everybody leaves the Restaurant.

-- 
 |   Michaël `Micha' Cadilhac       |  Une erreur peut devenir exacte        |
 |   http://michael.cadilhac.name   |     selon que celui qui l'a commise    |
 |   JID/MSN:                       |  s'est trompé ou non.                  |
 `----  michael.cadilhac@gmail.com  |          -- Pierre Dac            -  --'

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nnimap using shell command.
  2007-08-21 14:05 nnimap using shell command Michaël Cadilhac
@ 2007-08-21 20:05 ` Bjørn Mork
  2007-08-26 19:53 ` Michaël Cadilhac
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Bjørn Mork @ 2007-08-21 20:05 UTC (permalink / raw)
  To: ding

michael@cadilhac.name (Michaël Cadilhac) writes:

> 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 :
>
>         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 :
>
> $ imapd
> * PREAUTH Ready.
> INFO: LOGIN, user=cadilhac, ip=[127.0.0.1], protocol=IMAP
>
> 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].

Awright.  So that's why I've never been able to get this working.  I
actually resorted to using 'nc localhost 143'.  Thought it was just me.



Bjørn
-- 
I have many Polish friends.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nnimap using shell command.
  2007-08-21 14:05 nnimap using shell command Michaël Cadilhac
  2007-08-21 20:05 ` Bjørn Mork
@ 2007-08-26 19:53 ` Michaël Cadilhac
  2007-08-29  9:06 ` Michaël Cadilhac
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Michaël Cadilhac @ 2007-08-26 19:53 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]

michael@cadilhac.name (Michaël Cadilhac) writes:

> 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 :
>
>         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 :
>
> $ imapd
> * PREAUTH Ready.
> INFO: LOGIN, user=cadilhac, ip=[127.0.0.1], protocol=IMAP
>
> 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 :

I've had a glimpse at Eshell, to see how it deals with 2>,
and... well... it doesn't.  So, I guess we can't do much than the
proposed doc change.  Anyone against the commit?

(I'll install it in a few days if nobody complains.)

-- 
 |   Michaël `Micha' Cadilhac       |  Isn't vi that text editor with        |
 |   http://michael.cadilhac.name   |   two modes... One that beeps and      |
 |   JID/MSN:                       |     one that corrupts your file?       |
 `----  michael.cadilhac@gmail.com  |           -- Dan Jacobson         -  --'

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nnimap using shell command.
  2007-08-21 14:05 nnimap using shell command Michaël Cadilhac
  2007-08-21 20:05 ` Bjørn Mork
  2007-08-26 19:53 ` Michaël Cadilhac
@ 2007-08-29  9:06 ` Michaël Cadilhac
  2007-08-31 15:18   ` Michaël Cadilhac
  2007-08-29 14:48 ` Michaël Cadilhac
  2007-08-31 13:54 ` Michaël Cadilhac
  4 siblings, 1 reply; 7+ messages in thread
From: Michaël Cadilhac @ 2007-08-29  9:06 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1447 bytes --]

michael@cadilhac.name (Michaël Cadilhac) writes:

> 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 :
>
>         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 :
>
> $ imapd
> * PREAUTH Ready.
> INFO: LOGIN, user=cadilhac, ip=[127.0.0.1], protocol=IMAP
>
> 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 :

I've had a glimpse at Eshell, to see how it handles the 2> construction,
and... well... it doesn't.  So, I guess we can't do much better than the
proposed doc change.  Anyone against the commit?

(I'll install it in a few days if nobody complains.)

-- 
 |   Michaël `Micha' Cadilhac       |  Isn't vi that text editor with        |
 |   http://michael.cadilhac.name   |   two modes... One that beeps and      |
 |   JID/MSN:                       |     one that corrupts your file?       |
 `----  michael.cadilhac@gmail.com  |           -- Dan Jacobson         -  --'

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nnimap using shell command.
  2007-08-21 14:05 nnimap using shell command Michaël Cadilhac
                   ` (2 preceding siblings ...)
  2007-08-29  9:06 ` Michaël Cadilhac
@ 2007-08-29 14:48 ` Michaël Cadilhac
  2007-08-31 13:54 ` Michaël Cadilhac
  4 siblings, 0 replies; 7+ messages in thread
From: Michaël Cadilhac @ 2007-08-29 14:48 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1538 bytes --]

[I've sent this message twice, but I still don't see it in gmane or
 google groups...]

michael@cadilhac.name (Michaël Cadilhac) writes:

> 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 :
>
>         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 :
>
> $ imapd
> * PREAUTH Ready.
> INFO: LOGIN, user=cadilhac, ip=[127.0.0.1], protocol=IMAP
>
> 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 :

I've had a glimpse at Eshell, to see how it handles the 2> construction,
and... well... it doesn't.  So, I guess we can't do much better than the
proposed doc change.  Anyone against the commit?

(I'll install it in a few days if nobody complains.)

-- 
 |   Michaël `Micha' Cadilhac       |  La culture, c'est comme l'amour.      |
 |   http://michael.cadilhac.name   |     Il faut y aller à petits coups au  |
 |   JID/MSN:                       |  début pour bien en jouir plus tard.   |
 `----  michael.cadilhac@gmail.com  |          -- Pierre Desproges      -  --'

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nnimap using shell command.
  2007-08-21 14:05 nnimap using shell command Michaël Cadilhac
                   ` (3 preceding siblings ...)
  2007-08-29 14:48 ` Michaël Cadilhac
@ 2007-08-31 13:54 ` Michaël Cadilhac
  4 siblings, 0 replies; 7+ messages in thread
From: Michaël Cadilhac @ 2007-08-31 13:54 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

michael@cadilhac.name (Michaël Cadilhac) writes:

> -The 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:

Doc change installed.

-- 
 |   Michaël `Micha' Cadilhac       |  Si j'étais sous-secrétaire d'État     |
 |   http://michael.cadilhac.name   |    aux choux farcis, vous entendriez   |
 |   JID/MSN:                       |  beaucoup parler des choux farcis !    |
 `----  michael.cadilhac@gmail.com  |          -- Nicolas Sarkozy       -  --'

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nnimap using shell command.
  2007-08-29  9:06 ` Michaël Cadilhac
@ 2007-08-31 15:18   ` Michaël Cadilhac
  0 siblings, 0 replies; 7+ messages in thread
From: Michaël Cadilhac @ 2007-08-31 15:18 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 640 bytes --]

michael@cadilhac.name (Michaël Cadilhac) writes:

> michael@cadilhac.name (Michaël Cadilhac) writes:
>
> [3 times the same message]

Theeere they are!  Right after I installed the change!  How cool to see
that they are fine :-)

Sorry for the triple noise (the two duplicates and this very message :-))

-- 
 |   Michaël `Micha' Cadilhac       |  Fenouil                               |
 |   http://michael.cadilhac.name   |                                        |
 |   JID/MSN:                       |    -- Poème de François Le Lionnais    |
 `----  michael.cadilhac@gmail.com  |                                   -  --'

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-08-31 15:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-21 14:05 nnimap using shell command Michaël Cadilhac
2007-08-21 20:05 ` Bjørn Mork
2007-08-26 19:53 ` Michaël Cadilhac
2007-08-29  9:06 ` Michaël Cadilhac
2007-08-31 15:18   ` Michaël Cadilhac
2007-08-29 14:48 ` Michaël Cadilhac
2007-08-31 13:54 ` Michaël Cadilhac

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).