Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Dec 3, 2012 · 4 comments

Comments

@ghost
Copy link

ghost commented Dec 3, 2012

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
Copy link
Author

ghost commented Dec 3, 2012

New result:

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

@jstedfast
Copy link

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

@serii833
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jstedfast @serii833 and others