0 votes
by (120 points)

I want to get the message list of all (or search) sent items. I can´t find an universal method to select the sent folder. It has to work with several email providers, so [Gmail]\sent items is out of the question.

How can I do that?


Applies to: Rebex Secure Mail

1 Answer

0 votes
by (58.9k points)

There is no out-of-the box method for this in Rebex IMAP, as the folder path and name for sent items might differ at different servers.

If you look at the RFC, it says:

"The case-insensitive mailbox name INBOX is a special name reserved to mean 'the primary mailbox for this user on this server'. The interpretation of all other names is implementation-dependent."

With servers that implement RFC6154, you could take advantage of the ImapFolder.SpecialUse property, but these servers are rather a minority. With other IMAP servers you are stuck with guessing from the folder name...