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

v1: STORE State error #525

Open
Emocjl opened this issue May 18, 2023 · 1 comment
Open

v1: STORE State error #525

Emocjl opened this issue May 18, 2023 · 1 comment

Comments

@Emocjl
Copy link

Emocjl commented May 18, 2023

In version 1.2.1,when i use “ err = connection.Store(seq, item, flags, nil)” ,an error has been reported
image

@Emocjl
Copy link
Author

Emocjl commented May 18, 2023

func updateEmailStatus(c *client.Client, seqNum int) {
	set := new(imap.SeqSet)
	set.AddNum(uint32(seqNum))
	done := make(chan error, 1)
	go func() {
		done <- c.Store(set, imap.AddFlags, []interface{}{imap.SeenFlag}, nil)
	}()
	select {
	case err := <-done:
		if err != nil {
			log.Fatal(err)
		}
	}
}

@emersion emersion changed the title STORE State error v1: STORE State error Jun 10, 2023
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

1 participant