[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot parse IMAP command after update



On Tue, 20 May 2014 08:17:44 -0700
Nick Lanham wrote:

> At Tue, 20 May 2014 10:01:55 +0200,
> Herbert J. Skuhra wrote:
> > 
> > Den 19.05.2014 07:18, skrev David Maus:
> > > Hi Herbert,
> > > 
> > > At Sun, 18 May 2014 23:03:37 +0200,
> > > Herbert J. Skuhra wrote:
> > >> 
> > >> On Sun, 18 May 2014 09:37:44 +0200
> > >> David Maus wrote:
> > >> 
> > >> > Found the problem and I'm working on a solution: There are two (2) SPC
> > >> > between the flag list and the internal date, but the spec only allows
> > >> > for one.
> > >> 
> > >> After your latest changes I get
> > >> 
> > >> byte-code: Symbol's function definition is void: string-empty-p
> > >> 
> > >> I had to add
> > >> 
> > >> (eval-when-compile (require 'subr-x))
> > >> 
> > >> to elmo/elmo-imap4.el.
> > >> 
> > >> But string-empty-p is only available in Emacs trunk and emacs-24
> > >> branch?
> > >> 
> > > 
> > > Right, thanks for reporting. Should be fixed with the most recent 
> > > commit
> > > 
> > > https://github.com/wanderlust/wanderlust/commit/b0e5d690c10c7a4dade17ac42ced5cda0f86d623
> > 
> > Thank you.
> > 
> > But somehow the recent imap changes break my setup @work (Exchange 
> > 2010).
> > 'wl-fcc' is set to "%inbox" and after sending a message I get:
> > 
> > [09:43:23] -> mailbox size adjusted: INBOX, (2114 . 0)
> > [09:43:23] <-- elmo-imap419 append inbox  (\Seen)  {514+}
> > [09:43:23] <--
> > [09:43:23] -> elmo-imap419 BAD Command Argument Error. 11 *elmo-imap419* 
> > BAD arrived
> > [09:43:23] => ((bad (nil "Command Argument Error. 11")))
> > [09:43:23] -> mailbox size adjusted: inbox, (2114 . 0)2
> > [09:43:23] -> Date: BAD Command Error. 12
> > 
> > -- 
> > Herbert
> 
> Sorry to say, i also spoke too soon.  The recent changes fixed the
> problem when I hit reply, but now when actually sending a message I
> get the error below.  The message is still sent, but the draft
> buffer sticks around and I see a "Could not parse command" error in
> the minibuffer.
> 
> - Nick
> 
> 
> [08:14:30] <-- elmo-imap446 check
> [08:14:30] -> elmo-imap446 OK Success
> *elmo-imap446* OK arrived
> [08:14:30] => ((ok nil))
> [08:14:30] -> mailbox size adjusted: [Gmail]/Drafts, (1 . 0)
> [08:14:30] <-- elmo-imap447 append [Gmail]/Drafts () "20-May-2014 08:14:30 -0700" {357}
> [08:14:30] -> + go ahead
> [08:14:30] =>((continue-req "go ahead"))
> [08:14:30] <-- 
> [08:14:31] -> * 2 EXISTS
> [08:14:31] -> elmo-imap447 OK [APPENDUID 6 2346] (Success)
> *elmo-imap447* OK arrived
> [08:14:31] => ((ok (appenduid ("6" 2346))) (exists 2) (continue-req "go ahead"))
> [08:14:31] -> mailbox size adjusted: [Gmail]/Drafts, (2 . 0)
> [08:14:31] <-- elmo-imap448 check
> [08:14:31] -> elmo-imap448 OK Success
> *elmo-imap448* OK arrived
> [08:14:31] => ((ok nil))
> [08:14:31] -> mailbox size adjusted: [Gmail]/Drafts, (2 . 0)
> [08:14:45] <-- elmo-imap449 select "[Gmail]/Sent Mail"
> [08:14:45] -> * FLAGS (\Answered \Flagged \Draft \Deleted \Seen $Phishing nonjunk $NotPhishing)
> [08:14:45] -> * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $Phishing nonjunk $NotPhishing \*)] Flags permitted.
> [08:14:45] -> * OK [UIDVALIDITY 5] UIDs valid.
> [08:14:45] -> * 455 EXISTS
> [08:14:45] -> * 0 RECENT
> [08:14:45] -> * OK [UIDNEXT 499] Predicted next UID.
> [08:14:45] -> * OK [HIGHESTMODSEQ 1135474]
> [08:14:45] -> elmo-imap449 OK [READ-WRITE] [Gmail]/Sent Mail selected. (Success)
> *elmo-imap449* OK arrived
> [08:14:45] => ((ok (read-write t)) (unknown) (uidnext 499) (recent 0) (exists 455) (uidvalidity "5") (permanentflags ("\\Answered" "\\Flagged" "\\Draft" "\\Deleted" "\\Seen" "$Phishing" "nonjunk" "$NotPhishing" "\\*")) (flags ("\\Answered" "\\Flagged" "\\Draft" "\\Deleted" "\\Seen" "$Phishing" "nonjunk" "$NotPhishing")))
> [08:14:45] -> mailbox size adjusted: [Gmail]/Drafts, (455 . 0)
> [08:14:45] <-- elmo-imap450 append "[Gmail]/Sent Mail"  (\Seen)  {432}
> [08:14:46] -> elmo-imap450 BAD Could not parse command
> *elmo-imap450* BAD arrived
> [08:14:46] =>((bad (nil "Could not parse command")))

This is obviously the same issue. There is an extra space between
folder and flags and the last field.

But why do you set wl-fcc to "[Gmail]/Sent Mail"? I think Google automatically
stores sent messages to 'Sent Mail'-folder?

-- 
Herbert