Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: IMAP splitting problem
       [not found] ` <ilud6vpe14p.fsf@latte.josefsson.org>
@ 2002-05-23 12:55   ` Patrick Gundlach
  2002-05-23 16:34     ` Simon Josefsson
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Gundlach @ 2002-05-23 12:55 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:


> > This is in the Messages-buffer when I press g in the group-buffer:
> >
> > nnimap: Fetching (part of) article 6...done
> > IMAP split failed to move irb:INBOX:6 to INBOX.private
> > nnimap: Checking mailboxes...
> > nnimap: Checking mailbox INBOX
> >
> > Does the split stuff above look ok?
> 
> Yes.  If you enable `imap-log', what do you get in the *imap-log*
> buffer?  Most likely the server won't allow you to move the article.

The server allows to create folder from other clients.


[...]
4 UID SEARCH UNSEEN UNDELETED
* SEARCH 8
4 OK Completed (1 msgs in 0.000 secs)
5 UID FETCH 8 BODY.PEEK[HEADER]
* 3 FETCH (UID 8 BODY[HEADER] {927}
[...]
)
5 OK Completed
6 UID COPY 8 "INBOX.private"
6 NO Mailbox does not exist
7 EXPUNGE
* 3 EXISTS
* 0 RECENT
7 OK Completed
8 CLOSE
[...]

So it does not even try to create a subfolder

======================================================================
1 -> imap-message-copy: articles="8" mailbox="INBOX.private" dont-create=nil no-copyuid=nocopyuid buffer=nil
| 2 -> imap-send-command-wait: command="UID COPY 8 \"INBOX.private\"" buffer=nil
| | 3 -> imap-send-command: command="UID COPY 8 \"INBOX.private\"" buffer=nil
| | | 4 -> imap-send-command-1: cmdstr="6 UID COPY 8 \"INBOX.private\""
| | | 4 <- imap-send-command-1: nil
| | 3 <- imap-send-command: 6
| | 3 -> imap-wait-for-tag: tag=6 buffer=nil
| | | 4 -> imap-arrival-filter: proc=#<process imap> string="6 NO Mailbox does not exist
"
| | | | 5 -> imap-find-next-line: 
| | | | 5 <- imap-find-next-line: 30
| | | | 5 -> imap-parse-response: 
| | | | | 6 -> imap-parse-resp-text: 
| | | | | | 7 -> imap-parse-resp-text-code: 
| | | | | | 7 <- imap-parse-resp-text-code: nil
| | | | | 6 <- imap-parse-resp-text: nil
| | | | 5 <- imap-parse-response: ((6 NO nil "Mailbox does not exist"))
| | | | 5 -> imap-find-next-line: 
| | | | 5 <- imap-find-next-line: nil
| | | 4 <- imap-arrival-filter: nil
| | 3 <- imap-wait-for-tag: (6 NO nil "Mailbox does not exist")
| 2 <- imap-send-command-wait: (6 NO nil "Mailbox does not exist")
1 <- imap-message-copy: nil
======================================================================

TIA,

  Patrick

-- 
I'll fade into the darkness


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

* Re: IMAP splitting problem
  2002-05-23 12:55   ` Patrick Gundlach
@ 2002-05-23 16:34     ` Simon Josefsson
  2002-05-24 11:28       ` Patrick Gundlach
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Josefsson @ 2002-05-23 16:34 UTC (permalink / raw)


Patrick Gundlach <newsgroup@levana.de> writes:

>> Yes.  If you enable `imap-log', what do you get in the *imap-log*
>> buffer?  Most likely the server won't allow you to move the article.
>
> The server allows to create folder from other clients.
>
>
> [...]
> 4 UID SEARCH UNSEEN UNDELETED
> * SEARCH 8
> 4 OK Completed (1 msgs in 0.000 secs)
> 5 UID FETCH 8 BODY.PEEK[HEADER]
> * 3 FETCH (UID 8 BODY[HEADER] {927}
> [...]
> )
> 5 OK Completed
> 6 UID COPY 8 "INBOX.private"
> 6 NO Mailbox does not exist
> 7 EXPUNGE
> * 3 EXISTS
> * 0 RECENT
> 7 OK Completed
> 8 CLOSE
> [...]
>
> So it does not even try to create a subfolder

Right, the server told the client it is not possible to create one,
from RFC 2060:

,----
|       If the destination mailbox does not exist, a server SHOULD return
|       an error.  It SHOULD NOT automatically create the mailbox.  Unless
|       it is certain that the destination mailbox can not be created, the
|       server MUST send the response code "[TRYCREATE]" as the prefix of
|       the text of the tagged NO response.  This gives a hint to the
|       client that it can attempt a CREATE command and retry the COPY if
|       the CREATE is successful.
`----

However, I added a workaround for this server bug in imap.el long time
ago.  Try upgrading or apply the patch below.

Index: imap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/imap.el,v
retrieving revision 6.4
retrieving revision 6.5
diff -u -p -r6.4 -r6.5
--- imap.el	2001/02/15 09:16:41	6.4
+++ imap.el	2001/04/10 12:54:52	6.5
@@ -1462,8 +1462,11 @@ first element, rest of list contain the 
 	      (if (imap-ok-p (imap-send-command-wait cmd))
 		  t
 		(when (and (not dont-create)
-			   (imap-mailbox-get-1 'trycreate mailbox))
-		  (imap-mailbox-create-1 mailbox)
+			   ;; removed because of buggy Oracle server
+			   ;; that doesn't send TRYCREATE tags (which
+			   ;; is a MUST according to specifications):
+			   ;;(imap-mailbox-get-1 'trycreate mailbox)
+			   (imap-mailbox-create-1 mailbox))
 		  (imap-ok-p (imap-send-command-wait cmd)))))
 	    (or no-copyuid
 		(imap-message-copyuid-1 mailbox)))))))


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

* Re: IMAP splitting problem
  2002-05-23 16:34     ` Simon Josefsson
@ 2002-05-24 11:28       ` Patrick Gundlach
  0 siblings, 0 replies; 4+ messages in thread
From: Patrick Gundlach @ 2002-05-24 11:28 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

Hello Simon,


[...]

thanks for the patch. I think, I am getting closer! The log now
states:

543 OK Completed
544 UID COPY 9 "INBOX.private"
544 NO Mailbox does not exist
545 CREATE "INBOX.private"
545 NO Permission denied
546 EXPUNGE
* 4 EXISTS
* 0 RECENT
546 OK Completed
547 CLOSE

and so on. The server accepts the CREATE statement as follows 

. create INBOX.bla
. NO Permission denied
. create INBOX/bla
. OK Completed

In my case, emacs/gnus/imap should issue the CREATE statement with the
"/" instead of the "." Or did I misunderstand something?



Patrick

-- 
I'll fade into the darkness


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

* Re: IMAP splitting problem
       [not found]   ` <vafadqs76yu.fsf@lucy.cs.uni-dortmund.de>
@ 2002-05-23  1:18     ` those who know me have no need of my name
  0 siblings, 0 replies; 4+ messages in thread
From: those who know me have no need of my name @ 2002-05-23  1:18 UTC (permalink / raw)


<vafadqs76yu.fsf@lucy.cs.uni-dortmund.de> divulged:
>those who know me have no need of my name <not-a-real-address@usa.net> writes:

>> only mail-sources are split, and you've got your imap server as a
>> secondary source.
>
>No, no.  nnimap-split-rule allows for splitting in nnimap, too.

argh, i missed that.  thanks for the catch kai.

-- 
bringing you boring signatures for 17 years


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

end of thread, other threads:[~2002-05-24 11:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <vu8z6dedng.fsf@levana.de>
     [not found] ` <acebuj219pk@enews3.newsguy.com>
     [not found]   ` <vafadqs76yu.fsf@lucy.cs.uni-dortmund.de>
2002-05-23  1:18     ` IMAP splitting problem those who know me have no need of my name
     [not found] ` <ilud6vpe14p.fsf@latte.josefsson.org>
2002-05-23 12:55   ` Patrick Gundlach
2002-05-23 16:34     ` Simon Josefsson
2002-05-24 11:28       ` Patrick Gundlach

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