Exemple #1
0
 /// <summary>
 /// Saves a message to drafts folder.
 /// </summary>
 /// <param name="mailbox">The mailbox.</param>
 /// <param name="message">The message.</param>
 /// <param name="response">The response.</param>
 /// <param name="uid">The uid.</param>
 /// <returns>The response type.</returns>
 protected override CommandResponseType SaveToDraftsCommand(Mailbox mailbox, StructuredMessage message, out string response, out string uid)
 {
     try
     {
         CompletionResponse removeMailboxResponse = _client.Append(mailbox, message, out uid);
         response = removeMailboxResponse.Message;
         return(GetCommandResponseType(removeMailboxResponse.CompletionResult));
     }
     catch (Exception ex)
     {
         response = ex.ToString();
         uid      = string.Empty;
         return(CommandResponseType.Bad);
     }
 }