Handle IMAP servers with irregular folder trees/prefixes

Registered by Allen Lowe

Currently Postler stores Trash, Drafts, and Sent in the correct imap folders on any IMAP server that uses a correct standard prefix. However, some servers, like Gmail, have irregular folder trees. We need to come up with some way of storing Trash, Drafts, and Sent in the correct server folders in that case (eg. [Gmail]~-Trash).

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Allen Lowe
Direction:
Needs approval
Assignee:
None
Definition:
Approved
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

I think we should give the user a right click menu for imap folders (i.e. Use this folder for...) that then expands to give options for Trash, Sent, Drafts, and probably Spam/Junk

After the first retrieval of messages, Postler should look for special folders, in the order [GMail]~-Sent, [Google GMail]~-Gesendet, Gesendet, Sent. To complicate the issue, Google and some other providers use localized folder names like "Gesendet". The standard "Sent" folder should be hidden in this case. And of course this needs to apply to Drafts, Spam, and Trash also.

How about Tags and All Messages in GMail? Should they be moved to the top as well?

In the code, AccountInfo should gain fields for special folders, and read these from the "accountrc" file.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.