Skip to content

Update Message and move it to an archive folder #1724

Closed Answered by jstedfast
rogatec asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rogatec

Yes, you can download the message, add a custom header to it, and then Append the message to the Archive folder, but as your comment above the AppendAsync suggests, it does not "update" the existing message on the server. Instead, it appends a brand new message to the folder.

IMAP has a feature called "keywords" (which are just custom MessageFlags) that might be better for this kind of thing because it would require less work to implement (assuming the IMAP server allows custom keywords - which most do these days).

There are 2 ways to figure out if an IMAP server supports setting (persistent) custom keywords on a message:

  1. Use a ProtocolLogger and look at the response to the S…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@rogatec
Comment options

@jstedfast
Comment options

@rogatec
Comment options

@jstedfast
Comment options

@rogatec
Comment options

Answer selected by rogatec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants