aenetmail icon indicating copy to clipboard operation
aenetmail copied to clipboard

BAD Could not parse command in response to multiple e-mail set flag seen on GMail

Open ghost opened this issue 12 years ago • 4 comments

command = "xm008 UID STORE 126 FLAGS.SILENT (\Seen)"

works fine and sets message flag seen, but

command ="xm008 UID STORE 126 127 128 FLAGS.SILENT (\Seen)"
returns BAD Could not parse command from GMail, and obviously doesn't set the e-mail to seen.

called like this: imap.SetFlags(Flags.Seen, seenMessages.ToArray());

ghost avatar Dec 03 '12 15:12 ghost

New result:

command = "xm007 UID STORE 127 128 FLAGS.SILENT (\Seen)" string returns "BAD Invalid Arguments: Unparsed STORE keyword: 128"

ghost avatar Dec 03 '12 15:12 ghost

The proper way to format this command:

command ="xm008 UID STORE 126 127 128 FLAGS.SILENT (\Seen)"

is like this:

command ="xm008 UID STORE 126-128 FLAGS.SILENT (\Seen)"

jstedfast avatar Jan 11 '14 17:01 jstedfast

At least for gmail uids should be comma delimited not space delimited.. Like this "xm008 UID STORE 1875,1876,1877 +FLAGS.SILENT (\Seen)" Don't know if it is only a gmail specific, so will leave it in my fork for now.

serii833 avatar Dec 22 '14 20:12 serii833