From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/492 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.user Subject: Re: IMAP splitting problem Date: Thu, 23 May 2002 18:34:54 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138667475 7176 80.91.229.2 (31 Jan 2006 00:31:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:31:15 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:27:40 2006 Original-Path: quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: 178.230.13.217.in-addr.dgcsystems.net Original-X-Trace: quimby.gnus.org 1022172788 29549 217.13.230.178 (23 May 2002 16:53:08 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 23 May 2002 16:53:08 GMT User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:DIHdV2Uz3wwNP/mx4QRtDZfUyWY= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:632 Original-Lines: 66 X-Gnus-Article-Number: 632 Tue Jan 17 17:27:40 2006 Xref: news.gmane.org gmane.emacs.gnus.user:492 Archived-At: Patrick Gundlach 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)))))))