Enum MailRelocationOutcome
- Namespace
- MailFathom.Application.Mail.Mutations.Authoring
- Assembly
- MailFathom.Application.dll
Names what asking to move one email produced, which is a record or a reason there is none.
public enum MailRelocationOutcome
Fields
AccountNoLongerConfigured = 4The destination is a folder this deployment does not mirror, and the account no longer declares what it keeps of mail that leaves.
A message moved out of the mirror is one MailFathom will not see again, so what becomes of the local copy is the account's own answer; an account a reload has stopped declaring has none, and none invented here would be it.
AlreadyInDestination = 3The email is already in the destination folder, so nothing was written down.
It is not a failure and not a change either. Recording it would ask a mail server to move a message onto itself, and answering as though a move had been recorded would leave a caller waiting for a record to converge that nothing would ever issue.
Applied = 5The account holds its mailbox, and the move was committed to stored state; a restoring one also opened the record its source is owed.
DestinationNotAllowed = 6The destination takes no message of this kind: the drafts folder holds drafts alone, and a draft is filed nowhere with a role but the trash.
A draft is a message in the account's drafts folder, which is what a client reads to open one in its composer — so an ordinary message filed there would reopen as something somebody was writing, and a draft filed into another special folder would sit among mail it is not.
DestinationNotFound = 2The named destination is not a folder of the account this caller may file into.
A folder no mapping declares, one no run has bound, one the server does not advertise, and one withheld from the caller are one answer, because separating them would let a caller learn an account's folders by naming them.
MessageNotFound = 1This deployment serves no readable email under that identity, so there is nothing to move.
It answers for a row nothing holds, a row of an account this deployment no longer serves, a row in a folder withheld from the caller, and a row whose remote occurrence the server has expunged, on the same terms every mailbox read answers for those four together.
Recorded = 0The move was written down, and the account's next convergence pass will issue it.
Remarks
The refusals are separate values because their remedies are, and because a caller moving several messages at once acts on each answer on its own: a message somebody else deleted, a folder that is not there, and a message already in the destination are three different things to tell a person about, and reporting them as one failure would leave them re-trying the two that will never succeed.