Gnus development mailing list
 help / color / mirror / Atom feed
* Re: "no process" gnus bug when moving messages from nnml to imap folder
       [not found]       ` <xeiavd10j1ug.fsf@kobe.laptop>
@ 2011-02-03 21:00         ` Lars Ingebrigtsen
  2011-02-03 21:33           ` Giorgos Keramidas
  0 siblings, 1 reply; 20+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-03 21:00 UTC (permalink / raw)
  To: Giorgos Keramidas; +Cc: emacs-devel, ding

I've verified that I can reproduce the error, but I'm not quite sure
what the solution is.  The message is really corrupt (ending in a lot of
NUL characters), and Gmail just seems to close its connection.  Does
their IMAP server segfault?  I have no idea.

Moving the same message to a Dovecot server works perfectly, so it seems
likely that it's just another shoddy Google product.

Obviously the error message in this case would be better than a
backtrace, and I'll fix that at least.

If anyone has any input on whether Gnus should try to, er, encode the
message in some way before pushing it to Gmail, I'm all ears.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen



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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-03 21:00         ` "no process" gnus bug when moving messages from nnml to imap folder Lars Ingebrigtsen
@ 2011-02-03 21:33           ` Giorgos Keramidas
  2011-02-03 21:39             ` Giorgos Keramidas
                               ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Giorgos Keramidas @ 2011-02-03 21:33 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: emacs-devel, ding

On Thu, 03 Feb 2011 13:00:45 -0800, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> I've verified that I can reproduce the error, but I'm not quite sure
> what the solution is.  The message is really corrupt (ending in a lot of
> NUL characters), and Gmail just seems to close its connection.  Does
> their IMAP server segfault?  I have no idea.
>
> Moving the same message to a Dovecot server works perfectly, so it seems
> likely that it's just another shoddy Google product.
>
> Obviously the error message in this case would be better than a
> backtrace, and I'll fix that at least.
>
> If anyone has any input on whether Gnus should try to, er, encode the
> message in some way before pushing it to Gmail, I'm all ears.

I think there are two slightly related problems at work here.  One of
them is that Gmail disconnects after we send NUL characters so we can't
move the message and we throw a backtrace.

Another is that once this happens *once* for some message, then it's no
longer possible to `B m' even other normal messages.  It seems that when
Gmail drops the connection Gnus gets 'stuck' trying to recover from the
dropped connection, or trying to use the connection that is no longer
available.




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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-03 21:33           ` Giorgos Keramidas
@ 2011-02-03 21:39             ` Giorgos Keramidas
  2011-02-03 21:42               ` Giorgos Keramidas
  2011-02-04  8:38             ` Eli Zaretskii
  2011-02-04  8:58             ` Lars Ingebrigtsen
  2 siblings, 1 reply; 20+ messages in thread
From: Giorgos Keramidas @ 2011-02-03 21:39 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: emacs-devel, ding

On Thu, 03 Feb 2011 13:33:57 -0800, Giorgos Keramidas <gkeramidas@gmail.com> wrote:
> On Thu, 03 Feb 2011 13:00:45 -0800, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>> I've verified that I can reproduce the error, but I'm not quite sure
>> what the solution is.  The message is really corrupt (ending in a lot of
>> NUL characters), and Gmail just seems to close its connection.  Does
>> their IMAP server segfault?  I have no idea.
>>
>> Moving the same message to a Dovecot server works perfectly, so it seems
>> likely that it's just another shoddy Google product.
>>
>> Obviously the error message in this case would be better than a
>> backtrace, and I'll fix that at least.
>>
>> If anyone has any input on whether Gnus should try to, er, encode the
>> message in some way before pushing it to Gmail, I'm all ears.
>
> I think there are two slightly related problems at work here.  One of
> them is that Gmail disconnects after we send NUL characters so we can't
> move the message and we throw a backtrace.
>
> Another is that once this happens *once* for some message, then it's no
> longer possible to `B m' even other normal messages.  It seems that when
> Gmail drops the connection Gnus gets 'stuck' trying to recover from the
> dropped connection, or trying to use the connection that is no longer
> available.

Here's what my *Messages* buffer says after one such connection drop,
for example:

  Opening nnimap server on gmail...
  Opening connection to imap.gmail.com via tls...
  Opening TLS connection to `imap.gmail.com'...
  Opening TLS connection with `gnutls-cli --insecure -p 993 imap.gmail.com'...failed
  Opening TLS connection with `gnutls-cli --insecure -p 993 imap.gmail.com --protocols ssl3'...failed
  Opening TLS connection with `openssl s_client -connect imap.gmail.com:993 -no_ssl2 -ign_eof'...done
  Opening TLS connection to `imap.gmail.com'...done
  Opening nnimap server on gmail...done
  Moving to nnimap+gmail:archive/2001: (3135)...
  nnimap-send-command: Buffer *nnimap imap.gmail.com 993  *nntpd**<2> has no process

It looks like Gnus *does* attempt to recover, reconnects to Gmail using
openssl for ssl encryption, and then, for some reason, fails to find the
connection it just opened.

At the same time, my buffer list *does* include at least _one_ valid
connections to Gmail's imap server:

   ,-----------------------------------------------------------------------
   | MR Name                                          Size Mode             Filename/Process
   | -- ----                                          ---- ----             ----------------
   |[ Default ]
   | *  *scratch*                                      463 Lisp Interaction
   | *  *unsent wide reply to Giorgos Keramidas*      2734 Message          ~/News/drafts/drafts/5
   | *% *Summary nnml:posted*                          977 Summary
   | *% *Article nnml:posted*                         1522 Article
   | *% *Group*                                       2331 Group
   | *  *Messages*                                    7852 Fundamental
   | *% *Summary nnml:mail.archive-2001*             78917 Summary
   | *  *gnus trace*                                  2099 Fundamental
   | *  *nnimap imap.gmail.com 993  *nntpd**             0 Fundamental
   | *  *imap log*                                   17217 Fundamental
=> | *  *nnimap imap.gmail.com nil  *nntpd**           491 Fundamental      (*nnimap*<1> run)
   |    .bbdb                                        18944 Fundamental      ~/.bbdb
   |    *sent wide reply to Lars Ingebrigtsen*        1636 Message          ~/News/drafts/drafts/2
   |    *sent mail to Lars Ingebrigtsen*              1808 Message          ~/News/drafts/drafts/4
   |  % *Article nnml:mail.archive-2001*                 0 Article
   | *  *nnimap imap.gmail.com 993  *nntpd**<2>          0 Fundamental
   | *  .newsrc-dribble                              18332 Fundamental      ~/.newsrc-dribble
   |
   |    17 buffers                                  155323                  5 files, 1 process
   `-----------------------------------------------------------------------

The `*nnimap imap.gmail.com 993 *nntpd**' buffer seems disconnected
though.  So does `*nnimap imap.gmail.com 993 *nntpd**<2>'.




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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-03 21:39             ` Giorgos Keramidas
@ 2011-02-03 21:42               ` Giorgos Keramidas
  0 siblings, 0 replies; 20+ messages in thread
From: Giorgos Keramidas @ 2011-02-03 21:42 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: emacs-devel, ding

On Thu, 03 Feb 2011 13:39:31 -0800, Giorgos Keramidas <gkeramidas@gmail.com> wrote:
> Here's what my *Messages* buffer says after one such connection drop,
> for example:

Another thing that may be useful is that the buffer-process problem
_only_ manifests when I try `B m' to move messages from one folder to
another.  If I type `g' in my *Groups* buffer to check for new messages,
a new connection is made to Gmail's imap server and messages are checked
successfully.  My *Messages* buffer then shows:

    Checking new news...
    Opening connection to imap.gmail.com via tls...
    Opening TLS connection to `imap.gmail.com'...
    Opening TLS connection with `gnutls-cli --insecure -p 993 imap.gmail.com'...failed
    Opening TLS connection with `gnutls-cli --insecure -p 993 imap.gmail.com --protocols ssl3'...failed
    Opening TLS connection with `openssl s_client -connect imap.gmail.com:993 -no_ssl2 -ign_eof'...done
    Opening TLS connection to `imap.gmail.com'...done
    Reading active file via nnml...
    Opening nnml server...done
    Reading incoming mail from file...
    Wrote /home/gkeramidas/Mail/mail/freebsd/questions/12886
    nnml: Reading incoming mail (1 new)...done
    Reading active file via nnml...done
    nnimap read 0k [7 times]
    nnimap read 1k [5 times]
    nnimap read 2k [6 times]
    nnimap read 3k [2 times]
    nnimap read 4k [2 times]
    nnimap read 5k [7 times]
    nnimap read 6k [6 times]
    nnimap read 7k
    nnimap read 8k [2 times]
    nnimap read 9k [2 times]
    nnimap read 10k [8 times]
    nnimap read 11k [17 times]
    nnimap read 12k [3 times]
    nnimap read 13k [4 times]
    nnimap read 15k [8 times]
    nnimap read 16k [4 times]
    nnimap read 17k
    nnimap read 18k [2 times]
    nnimap read 19k [9 times]
    nnimap read 21k
    nnimap read 22k
    nnimap read 23k [9 times]
    nnimap read 24k [12 times]
    nnimap read 25k [7 times]
    nnimap read 26k [2 times]
    nnimap read 27k [2 times]
    nnimap read 28k [3 times]
    nnimap read 29k [10 times]
    nnimap read 30k [9 times]
    Reading active file via nndraft...done
    Checking new news...done
    Retrieving newsgroup: nnml:mail.INBOX...
    Fetching headers for nnml:mail.INBOX...done
    Scoring...done
    Scoring...done
    Generating summary...done
    No more unseen articles
    Expiring articles...done



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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-03 21:33           ` Giorgos Keramidas
  2011-02-03 21:39             ` Giorgos Keramidas
@ 2011-02-04  8:38             ` Eli Zaretskii
  2011-02-04  8:50               ` Giorgos Keramidas
  2011-02-04  8:53               ` Lars Ingebrigtsen
  2011-02-04  8:58             ` Lars Ingebrigtsen
  2 siblings, 2 replies; 20+ messages in thread
From: Eli Zaretskii @ 2011-02-04  8:38 UTC (permalink / raw)
  To: Giorgos Keramidas; +Cc: larsi, ding, emacs-devel

> From: Giorgos Keramidas <gkeramidas@gmail.com>
> Date: Thu, 03 Feb 2011 13:33:57 -0800
> Cc: ding@gnus.org, emacs-devel@gnu.org
> 
> On Thu, 03 Feb 2011 13:00:45 -0800, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> > I've verified that I can reproduce the error, but I'm not quite sure
> > what the solution is.  The message is really corrupt (ending in a lot of
> > NUL characters), and Gmail just seems to close its connection.  Does
> > their IMAP server segfault?  I have no idea.
> >
> > Moving the same message to a Dovecot server works perfectly, so it seems
> > likely that it's just another shoddy Google product.
> >
> > Obviously the error message in this case would be better than a
> > backtrace, and I'll fix that at least.
> >
> > If anyone has any input on whether Gnus should try to, er, encode the
> > message in some way before pushing it to Gmail, I'm all ears.
> 
> I think there are two slightly related problems at work here.  One of
> them is that Gmail disconnects after we send NUL characters so we can't
> move the message and we throw a backtrace.

Don't some network-related functions return null characters if you try
to read from a socket after the connection is closed?



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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-04  8:38             ` Eli Zaretskii
@ 2011-02-04  8:50               ` Giorgos Keramidas
  2011-02-04  8:53               ` Lars Ingebrigtsen
  1 sibling, 0 replies; 20+ messages in thread
From: Giorgos Keramidas @ 2011-02-04  8:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, ding, emacs-devel

On Fri, 04 Feb 2011 10:38:57 +0200, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Giorgos Keramidas <gkeramidas@gmail.com>
>> Date: Thu, 03 Feb 2011 13:33:57 -0800
>> Cc: ding@gnus.org, emacs-devel@gnu.org
>>
>> On Thu, 03 Feb 2011 13:00:45 -0800, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>> > I've verified that I can reproduce the error, but I'm not quite sure
>> > what the solution is.  The message is really corrupt (ending in a lot of
>> > NUL characters), and Gmail just seems to close its connection.  Does
>> > their IMAP server segfault?  I have no idea.
>> >
>> > Moving the same message to a Dovecot server works perfectly, so it seems
>> > likely that it's just another shoddy Google product.
>> >
>> > Obviously the error message in this case would be better than a
>> > backtrace, and I'll fix that at least.
>> >
>> > If anyone has any input on whether Gnus should try to, er, encode the
>> > message in some way before pushing it to Gmail, I'm all ears.
>>
>> I think there are two slightly related problems at work here.  One of
>> them is that Gmail disconnects after we send NUL characters so we can't
>> move the message and we throw a backtrace.
>
> Don't some network-related functions return null characters if you try
> to read from a socket after the connection is closed?

I think they return zero as their status-value but not extra ascii bytes
whose value is zero.




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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-04  8:38             ` Eli Zaretskii
  2011-02-04  8:50               ` Giorgos Keramidas
@ 2011-02-04  8:53               ` Lars Ingebrigtsen
  2011-02-04 18:02                 ` Ted Zlatanov
  1 sibling, 1 reply; 20+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-04  8:53 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Giorgos Keramidas, ding, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> Don't some network-related functions return null characters if you try
> to read from a socket after the connection is closed?

Sounds likely.

I've verified that putting a single NUL character into any mail and then
trying to move it to Gmail will make Gmail hang up the connection.

So the Gmail IMAP servers just aren't compliant -- the IMAP RFC says
that all IMAP servers should be able to take binary data after APPEND, I
seem to recall.

The question is -- what should nnimap do about that?  Introduce a
"quirks mode" for Gmail that just strips all NUL characters?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen



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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-03 21:33           ` Giorgos Keramidas
  2011-02-03 21:39             ` Giorgos Keramidas
  2011-02-04  8:38             ` Eli Zaretskii
@ 2011-02-04  8:58             ` Lars Ingebrigtsen
  2011-02-04 18:23               ` Giorgos Keramidas
  2 siblings, 1 reply; 20+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-04  8:58 UTC (permalink / raw)
  To: Giorgos Keramidas; +Cc: emacs-devel, ding

Giorgos Keramidas <gkeramidas@gmail.com> writes:

> Another is that once this happens *once* for some message, then it's no
> longer possible to `B m' even other normal messages.  It seems that when
> Gmail drops the connection Gnus gets 'stuck' trying to recover from the
> dropped connection, or trying to use the connection that is no longer
> available.

Do you get the same result if you use `B c' instead of `B m'?  I've been
testing with `B c' (since copying is easier -- you can copy as many
times as you want), and I am unable to reproduce this.  If I `B c' a
NUL-bearing message, Gmail drops the connection, and if I then `B c' a
non-NUL message, everything works just fine -- it reestablishes the
connection and copies the message.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen



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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-04  8:53               ` Lars Ingebrigtsen
@ 2011-02-04 18:02                 ` Ted Zlatanov
  2011-02-04 18:08                   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 20+ messages in thread
From: Ted Zlatanov @ 2011-02-04 18:02 UTC (permalink / raw)
  To: ding; +Cc: emacs-devel

On Fri, 04 Feb 2011 00:53:31 -0800 Lars Ingebrigtsen <larsi@gnus.org> wrote: 

LI> I've verified that putting a single NUL character into any mail and then
LI> trying to move it to Gmail will make Gmail hang up the connection.

LI> So the Gmail IMAP servers just aren't compliant -- the IMAP RFC says
LI> that all IMAP servers should be able to take binary data after APPEND, I
LI> seem to recall.

LI> The question is -- what should nnimap do about that?  Introduce a
LI> "quirks mode" for Gmail that just strips all NUL characters?

I would ask the use how to treat the NULs, similarly to how Gnus asks
about unprintable characters in an outgoing e-mail.

Ted




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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-04 18:02                 ` Ted Zlatanov
@ 2011-02-04 18:08                   ` Lars Ingebrigtsen
  2011-02-04 18:28                     ` Ted Zlatanov
  0 siblings, 1 reply; 20+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-04 18:08 UTC (permalink / raw)
  To: ding; +Cc: emacs-devel

Ted Zlatanov <tzz@lifelogs.com> writes:

> I would ask the use how to treat the NULs, similarly to how Gnus asks
> about unprintable characters in an outgoing e-mail.

But only for Gmail servers, I guess?  None of the other I've tried seem
to have any problems with NULs.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-04  8:58             ` Lars Ingebrigtsen
@ 2011-02-04 18:23               ` Giorgos Keramidas
  2011-02-07 11:42                 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 20+ messages in thread
From: Giorgos Keramidas @ 2011-02-04 18:23 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: ding, emacs-devel

On Fri, 04 Feb 2011 00:58:35 -0800, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> Giorgos Keramidas <gkeramidas@gmail.com> writes:
>
>> Another is that once this happens *once* for some message, then it's no
>> longer possible to `B m' even other normal messages.  It seems that when
>> Gmail drops the connection Gnus gets 'stuck' trying to recover from the
>> dropped connection, or trying to use the connection that is no longer
>> available.
>
> Do you get the same result if you use `B c' instead of `B m'?  I've
> been testing with `B c' (since copying is easier -- you can copy as
> many times as you want), and I am unable to reproduce this.  If I `B
> c' a NUL-bearing message, Gmail drops the connection, and if I then `B
> c' a non-NUL message, everything works just fine -- it reestablishes
> the connection and copies the message.

Yes, I get the same result with `B c'.  What seems odd is that I see two
different imap backends in my buffer list.  My ~/.gnus file includes:

  (setq gnus-nntp-server "news.sunsite.dk")
  (setq nntp-authinfo-function 'nntp-send-authinfo)
  (setq gnus-select-method '(nntp "news.sunsite.dk"))
  (setq gnus-secondary-select-methods '((nnml "")
                                        (nnimap "gmail"
                                                (nnimap-address "imap.gmail.com")
                                                (nnimap-server-port 993)
                                                (nnimap-stream tls))))

Completion offers both `nnimap:gmail' and `nnimap:imap.gmail.com' as a
valid `B c' destination, but they both respond that the newly created
imap buffer has no connection when I move or copy messages from an nnml
source folder.

Other imap operations seem to work fine though, e.g. all the following
work fine:

  - copying messages from imap folders to local nnml folders
  - moving messages from imap folders to local nnml folders
  - getting new messages into imap folders by typing `g'
  - flag updates when I modify messages through gmail's web interface
    and type `g' in gnus

I can even see messages marked in Gnus with '!' as starred messages in
the web interface of Gmail, and when I unmark them in Gnus and type `g'
they get unstarred in the web UI too.

Whatever the problem is with `B c' and `B m' it seems specific to using
an imap folder as the destination of the messages.  As a source nnimap
folders seem to work more than fine.  I noticed that nnimap access is
now blazingly fast too.  I started using Gmail's imap access method only
because it's now very very fast to access the messages from Gnus too :-)




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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-04 18:08                   ` Lars Ingebrigtsen
@ 2011-02-04 18:28                     ` Ted Zlatanov
  2011-02-04 19:14                       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 20+ messages in thread
From: Ted Zlatanov @ 2011-02-04 18:28 UTC (permalink / raw)
  To: ding; +Cc: emacs-devel

On Fri, 04 Feb 2011 10:08:40 -0800 Lars Ingebrigtsen <larsi@gnus.org> wrote: 

LI> Ted Zlatanov <tzz@lifelogs.com> writes:
>> I would ask the use how to treat the NULs, similarly to how Gnus asks
>> about unprintable characters in an outgoing e-mail.

LI> But only for Gmail servers, I guess?  None of the other I've tried seem
LI> to have any problems with NULs.

Sure.  It may not work to autodetect gmail.com with Google Apps, if
those support the IMAP access, since they run under another domain name.
Can someone knowledgeable about that comment?  If my suspicion is right,
it would have to be a backend slot variable.

Ted




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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-04 18:28                     ` Ted Zlatanov
@ 2011-02-04 19:14                       ` Lars Ingebrigtsen
  2011-02-04 19:26                         ` Ted Zlatanov
  0 siblings, 1 reply; 20+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-04 19:14 UTC (permalink / raw)
  To: emacs-devel; +Cc: ding

Ted Zlatanov <tzz@lifelogs.com> writes:

> Sure.  It may not work to autodetect gmail.com with Google Apps, if
> those support the IMAP access, since they run under another domain name.
> Can someone knowledgeable about that comment?  If my suspicion is right,
> it would have to be a backend slot variable.

The greeting is

* OK Gimap ready for requests from 198.144.208.130 k9if2067598fax.47

so if we just match for "OK Gimap", then we should probably be safe.

I'm wondering whether to over-engineer this by adding a quirks mode
mechanism, or whether to just special-case this in the -request-accept
function, or, hm.

I'd really prefer that Gnus queried the user instead of the backend, but
Gnus knows absolutely nothing about this, so I guess it would make most
sense to just add a couple of if statements to nnimap-request-accept,
even though it's kinda uglyish.  From my viewpoint as a licenced Over
Engineer.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-04 19:14                       ` Lars Ingebrigtsen
@ 2011-02-04 19:26                         ` Ted Zlatanov
  2011-02-07 10:49                           ` Lars Ingebrigtsen
  0 siblings, 1 reply; 20+ messages in thread
From: Ted Zlatanov @ 2011-02-04 19:26 UTC (permalink / raw)
  To: emacs-devel; +Cc: ding

On Fri, 04 Feb 2011 11:14:18 -0800 Lars Ingebrigtsen <larsi@gnus.org> wrote: 

LI> Ted Zlatanov <tzz@lifelogs.com> writes:
>> Sure.  It may not work to autodetect gmail.com with Google Apps, if
>> those support the IMAP access, since they run under another domain name.
>> Can someone knowledgeable about that comment?  If my suspicion is right,
>> it would have to be a backend slot variable.

LI> The greeting is

LI> * OK Gimap ready for requests from 198.144.208.130 k9if2067598fax.47

LI> so if we just match for "OK Gimap", then we should probably be safe.

Sounds good.

LI> I'm wondering whether to over-engineer this by adding a quirks mode
LI> mechanism, or whether to just special-case this in the -request-accept
LI> function, or, hm.

LI> I'd really prefer that Gnus queried the user instead of the backend, but
LI> Gnus knows absolutely nothing about this, so I guess it would make most
LI> sense to just add a couple of if statements to nnimap-request-accept,
LI> even though it's kinda uglyish.  From my viewpoint as a licenced Over
LI> Engineer.

If it's a single special case, do whatever is simplest.  We can
over-engineer it when there's another such case.

Ted




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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-04 19:26                         ` Ted Zlatanov
@ 2011-02-07 10:49                           ` Lars Ingebrigtsen
  0 siblings, 0 replies; 20+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-07 10:49 UTC (permalink / raw)
  To: Ted Zlatanov; +Cc: ding, emacs-devel

Ted Zlatanov <tzz@lifelogs.com> writes:

> LI> so if we just match for "OK Gimap", then we should probably be safe.
>
> Sounds good.

I've now implemented this, and it seems to work OK.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen



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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-04 18:23               ` Giorgos Keramidas
@ 2011-02-07 11:42                 ` Lars Ingebrigtsen
  2011-02-07 18:45                   ` Giorgos Keramidas
  0 siblings, 1 reply; 20+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-07 11:42 UTC (permalink / raw)
  To: Giorgos Keramidas; +Cc: ding, emacs-devel

Giorgos Keramidas <gkeramidas@gmail.com> writes:

> Completion offers both `nnimap:gmail' and `nnimap:imap.gmail.com' as a
> valid `B c' destination, but they both respond that the newly created
> imap buffer has no connection when I move or copy messages from an nnml
> source folder.

These are just two names for the same server, probably.

> Whatever the problem is with `B c' and `B m' it seems specific to using
> an imap folder as the destination of the messages.

No, as I said previously, it's a bug in Gmail.  It fails when accepting
articles that contain NULs.  I've now added a quirk for this in nnimap.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen



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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-07 11:42                 ` Lars Ingebrigtsen
@ 2011-02-07 18:45                   ` Giorgos Keramidas
  2011-02-14  3:09                     ` Lars Ingebrigtsen
  2011-02-24 11:59                     ` Giorgos Keramidas
  0 siblings, 2 replies; 20+ messages in thread
From: Giorgos Keramidas @ 2011-02-07 18:45 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: ding, emacs-devel

On Mon, 07 Feb 2011 03:42:16 -0800, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>Giorgos Keramidas <gkeramidas@gmail.com> writes:
>> Completion offers both `nnimap:gmail' and `nnimap:imap.gmail.com' as a
>> valid `B c' destination, but they both respond that the newly created
>> imap buffer has no connection when I move or copy messages from an nnml
>> source folder.
>
> These are just two names for the same server, probably.
>
>> Whatever the problem is with `B c' and `B m' it seems specific to using
>> an imap folder as the destination of the messages.
>
> No, as I said previously, it's a bug in Gmail.  It fails when accepting
> articles that contain NULs.  I've now added a quirk for this in nnimap.

Ok, thanks.  Is the quirk in the bzr repo?  If yes, my daily fetch from
the git mirror will pick it up and I'll give it a spin again :)




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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-07 18:45                   ` Giorgos Keramidas
@ 2011-02-14  3:09                     ` Lars Ingebrigtsen
  2011-02-24 11:59                     ` Giorgos Keramidas
  1 sibling, 0 replies; 20+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-14  3:09 UTC (permalink / raw)
  To: emacs-devel; +Cc: ding

Giorgos Keramidas <gkeramidas@gmail.com> writes:

> Ok, thanks.  Is the quirk in the bzr repo?

Yup.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-07 18:45                   ` Giorgos Keramidas
  2011-02-14  3:09                     ` Lars Ingebrigtsen
@ 2011-02-24 11:59                     ` Giorgos Keramidas
  2011-02-25  4:53                       ` Lars Ingebrigtsen
  1 sibling, 1 reply; 20+ messages in thread
From: Giorgos Keramidas @ 2011-02-24 11:59 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: ding, emacs-devel

On Mon, 07 Feb 2011 10:45:01 -0800, Giorgos Keramidas <gkeramidas@gmail.com> wrote:
> On Mon, 07 Feb 2011 03:42:16 -0800, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>>Giorgos Keramidas <gkeramidas@gmail.com> writes:
>>> Completion offers both `nnimap:gmail' and `nnimap:imap.gmail.com' as a
>>> valid `B c' destination, but they both respond that the newly created
>>> imap buffer has no connection when I move or copy messages from an nnml
>>> source folder.
>>
>> These are just two names for the same server, probably.
>>
>>> Whatever the problem is with `B c' and `B m' it seems specific to using
>>> an imap folder as the destination of the messages.
>>
>> No, as I said previously, it's a bug in Gmail.  It fails when accepting
>> articles that contain NULs.  I've now added a quirk for this in nnimap.
>
> Ok, thanks.  Is the quirk in the bzr repo?  If yes, my daily fetch from
> the git mirror will pick it up and I'll give it a spin again :)

Ok, I've rebuilt Emacs and Gnus from a later version [GNU Emacs
24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2011-02-11
on gkeramidas-glaptop].

It still fails to copy my old archived messages to Gmail imap, though.

The message that fails this time is (copied straight from my nnml folder
file at `~/mail/mail/archive/2001/3138'):

  http://people.freebsd.org/~keramida/3138.nnml

When I try to 'B c' this message to `nnimap+gmail:archive/2001' Gnus
fails to copy the message, but there are no NUL bytes in the message
itself.

So as an experiment I saved this message typing `O m' to `~/foo.mbox'
and used Mutt to copy the same message to:

  imaps://gkeramidas@imap.gmail.com/archive/2001

and the copy worked fine.  So I'm not sure if there's something wrong
with the message.  There's definitely something wrong with Gnus when I
try to open a local nnml groupand send messages to imap though.




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

* Re: "no process" gnus bug when moving messages from nnml to imap folder
  2011-02-24 11:59                     ` Giorgos Keramidas
@ 2011-02-25  4:53                       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 20+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-25  4:53 UTC (permalink / raw)
  To: Giorgos Keramidas; +Cc: ding, emacs-devel

Giorgos Keramidas <gkeramidas@gmail.com> writes:

> The message that fails this time is (copied straight from my nnml folder
> file at `~/mail/mail/archive/2001/3138'):
>
>   http://people.freebsd.org/~keramida/3138.nnml
>
> When I try to 'B c' this message to `nnimap+gmail:archive/2001' Gnus
> fails to copy the message, but there are no NUL bytes in the message
> itself.

I'm unable to reproduce this bug.  I'm able to copy that article to
Gmail just fine with the current Gnus.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen



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

end of thread, other threads:[~2011-02-25  4:53 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <xeia1v3p8n5p.fsf@kobe.laptop>
     [not found] ` <8762t1dww9.fsf@gnus.org>
     [not found]   ` <xeia62t0x4f7.fsf@kobe.laptop>
     [not found]     ` <871v3orhhw.fsf@gnus.org>
     [not found]       ` <xeiavd10j1ug.fsf@kobe.laptop>
2011-02-03 21:00         ` "no process" gnus bug when moving messages from nnml to imap folder Lars Ingebrigtsen
2011-02-03 21:33           ` Giorgos Keramidas
2011-02-03 21:39             ` Giorgos Keramidas
2011-02-03 21:42               ` Giorgos Keramidas
2011-02-04  8:38             ` Eli Zaretskii
2011-02-04  8:50               ` Giorgos Keramidas
2011-02-04  8:53               ` Lars Ingebrigtsen
2011-02-04 18:02                 ` Ted Zlatanov
2011-02-04 18:08                   ` Lars Ingebrigtsen
2011-02-04 18:28                     ` Ted Zlatanov
2011-02-04 19:14                       ` Lars Ingebrigtsen
2011-02-04 19:26                         ` Ted Zlatanov
2011-02-07 10:49                           ` Lars Ingebrigtsen
2011-02-04  8:58             ` Lars Ingebrigtsen
2011-02-04 18:23               ` Giorgos Keramidas
2011-02-07 11:42                 ` Lars Ingebrigtsen
2011-02-07 18:45                   ` Giorgos Keramidas
2011-02-14  3:09                     ` Lars Ingebrigtsen
2011-02-24 11:59                     ` Giorgos Keramidas
2011-02-25  4:53                       ` Lars Ingebrigtsen

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