Imap sent items

0 votes
asked Mar 20, 2014 by pablomacri (120 points)
edited Mar 25, 2014

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?

Thanks

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Mar 25, 2014 by Tomas Knopp (58,890 points)
edited Mar 25, 2014

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...

...