Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix Gcc processing on IMAP
@ 2011-02-13 11:11 Tassilo Horn
  2011-02-13 13:40 ` Ted Zlatanov
  0 siblings, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2011-02-13 11:11 UTC (permalink / raw)
  To: ding

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

Hi all,

as I've reported in <874o8enpi0.fsf@member.fsf.org>, Gcc is broken in
the current HEAD.  I wanted to sit it out on an older working revision
till Lars is back, but unfortunately Ted did an interface change in
auth-sources that was synced to emacs, and now emacs has an autoload
cookie for some auth-sources function that is not available in the older
Gnus version...

Since non-working Gcc is effectively data-loss, I've dug into the
relevant code, and Lars seems to have added some quirk for Gmail, which
breaks any IMAP except Gmail. ;-)

I'm no expert with nnimap.el (in fact, 20 minutes ago I had my first
look at it), but I think I could understand what Lars wanted to do.
Here is a patch that fixes the Gcc issue for me.

I have papers on file, but no push access for Gnus git.  Could someone
please commit and push for me?  (I could commit & push on emacs bzr
trunk, but I think this way is easier.)

Bye,
Tassilo


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-nnimap.el-nnimap-request-accept-article-nnimap-proce.patch --]
[-- Type: text/x-patch, Size: 1800 bytes --]

From 6573b041d072fcfacfc7b8e6ae810abeb2f361e7 Mon Sep 17 00:00:00 2001
From: Tassilo Horn <tassilo@member.fsf.org>
Date: Sun, 13 Feb 2011 11:57:42 +0100
Subject: [PATCH] * nnimap.el (nnimap-request-accept-article, nnimap-process-quirk): Fix
 Gcc processing on imap.

---
 lisp/ChangeLog |    5 +++++
 lisp/nnimap.el |    5 +++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ed68f13..1e7b35e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-13  Tassilo Horn  <tassilo@member.fsf.org>
+
+	* nnimap.el (nnimap-request-accept-article, nnimap-process-quirk): Fix
+	Gcc processing on imap.
+
 2011-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* message.el (message-bury): Don't pop up a new window when selected
diff --git a/lisp/nnimap.el b/lisp/nnimap.el
index 94c8f82..be3f812 100644
--- a/lisp/nnimap.el
+++ b/lisp/nnimap.el
@@ -966,7 +966,8 @@ textual parts.")
       (nnimap-add-cr)
       (setq message (buffer-substring-no-properties (point-min) (point-max)))
       (with-current-buffer (nnimap-buffer)
-	(when (setq message (nnimap-process-quirk "OK Gimap " 'append message))
+	(when (setq message (or (nnimap-process-quirk "OK Gimap " 'append message)
+				message))
 	  ;; If we have this group open read-only, then unselect it
 	  ;; before appending to it.
 	  (when (equal (nnimap-examined nnimap-object) group)
@@ -994,7 +995,7 @@ textual parts.")
 
 (defun nnimap-process-quirk (greeting-match type data)
   (when (and (nnimap-greeting nnimap-object)
-	     (string-match "OK Gimap " (nnimap-greeting nnimap-object))
+	     (string-match greeting-match (nnimap-greeting nnimap-object))
 	     (eq type 'append)
 	     (string-match "\000" data))
     (let ((choice (gnus-multiple-choice
-- 
1.7.4


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

* Re: [PATCH] Fix Gcc processing on IMAP
  2011-02-13 11:11 [PATCH] Fix Gcc processing on IMAP Tassilo Horn
@ 2011-02-13 13:40 ` Ted Zlatanov
  2011-02-13 15:15   ` Tassilo Horn
  2011-02-13 19:25   ` Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Ted Zlatanov @ 2011-02-13 13:40 UTC (permalink / raw)
  To: ding

On Sun, 13 Feb 2011 12:11:24 +0100 Tassilo Horn <tassilo@member.fsf.org> wrote: 

TH> as I've reported in <874o8enpi0.fsf@member.fsf.org>, Gcc is broken in
TH> the current HEAD.  I wanted to sit it out on an older working revision
TH> till Lars is back, but unfortunately Ted did an interface change in
TH> auth-sources that was synced to emacs, and now emacs has an autoload
TH> cookie for some auth-sources function that is not available in the older
TH> Gnus version...
...
TH> I'm no expert with nnimap.el (in fact, 20 minutes ago I had my first
TH> look at it), but I think I could understand what Lars wanted to do.
TH> Here is a patch that fixes the Gcc issue for me.

Sorry about that, Tassilo.  I applied your patch.  Lars can check it
more thoroughly but it Works For Me :)

TH> I have papers on file, but no push access for Gnus git.  Could someone
TH> please commit and push for me?  (I could commit & push on emacs bzr
TH> trunk, but I think this way is easier.)

If you like, I can add you to the Git comitters.  I just need the output
of "htpasswd -n tassilo".

Thanks
Ted




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

* Re: [PATCH] Fix Gcc processing on IMAP
  2011-02-13 13:40 ` Ted Zlatanov
@ 2011-02-13 15:15   ` Tassilo Horn
  2011-02-14 15:18     ` Ted Zlatanov
  2011-02-13 19:25   ` Lars Ingebrigtsen
  1 sibling, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2011-02-13 15:15 UTC (permalink / raw)
  To: Ted Zlatanov; +Cc: ding

Ted Zlatanov <tzz@lifelogs.com> writes:

Hi Ted,

> TH> as I've reported in <874o8enpi0.fsf@member.fsf.org>, Gcc is broken
> TH> in the current HEAD.  I wanted to sit it out on an older working
> TH> revision till Lars is back, but unfortunately Ted did an interface
> TH> change in auth-sources that was synced to emacs, and now emacs has
> TH> an autoload cookie for some auth-sources function that is not
> TH> available in the older Gnus version...
>
> Sorry about that, Tassilo.

No, no.  That you incidentially forced me to fix that bug is actually a
good thing, isn't it. ;-)

> I applied your patch.  Lars can check it more thoroughly but it Works
> For Me :)

Great.

> TH> I have papers on file, but no push access for Gnus git.  Could
> TH> someone please commit and push for me?  (I could commit & push on
> TH> emacs bzr trunk, but I think this way is easier.)
>
> If you like, I can add you to the Git comitters.

That would be cool.  Not that I have big plans for Gnus on my TODO list,
but I'm happy to fix a bug here and there when I stumble upon it. :-)

> I just need the output of "htpasswd -n tassilo".

I'll send it to you per private mail.

[Looking gnus.org for some docs...]

Oh, Gnus Resources still has a link to browse the old CVS.  Someone
should remove it...

And on Gnus Distribution, there's some "should be verbatim but is not"
text in Committer Access...

Bye,
Tassilo
-- 
Sent from my Emacs



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

* Re: [PATCH] Fix Gcc processing on IMAP
  2011-02-13 13:40 ` Ted Zlatanov
  2011-02-13 15:15   ` Tassilo Horn
@ 2011-02-13 19:25   ` Lars Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-13 19:25 UTC (permalink / raw)
  To: ding

Ted Zlatanov <tzz@lifelogs.com> writes:

> Sorry about that, Tassilo.  I applied your patch.  Lars can check it
> more thoroughly but it Works For Me :)

Looks good to me.

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




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

* Re: [PATCH] Fix Gcc processing on IMAP
  2011-02-13 15:15   ` Tassilo Horn
@ 2011-02-14 15:18     ` Ted Zlatanov
  0 siblings, 0 replies; 5+ messages in thread
From: Ted Zlatanov @ 2011-02-14 15:18 UTC (permalink / raw)
  To: ding

On Sun, 13 Feb 2011 16:15:39 +0100 Tassilo Horn <tassilo@member.fsf.org> wrote: 

TH> [Looking gnus.org for some docs...]

TH> Oh, Gnus Resources still has a link to browse the old CVS.  Someone
TH> should remove it...

TH> And on Gnus Distribution, there's some "should be verbatim but is not"
TH> text in Committer Access...

The HTML pages are actually in a Git repository.  See
http://git.gnus.org for the details.  I'll deploy changes manually.

Ted




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

end of thread, other threads:[~2011-02-14 15:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-13 11:11 [PATCH] Fix Gcc processing on IMAP Tassilo Horn
2011-02-13 13:40 ` Ted Zlatanov
2011-02-13 15:15   ` Tassilo Horn
2011-02-14 15:18     ` Ted Zlatanov
2011-02-13 19:25   ` 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).