/// <summary>sends APPEND command</summary> /// <remarks> /// valid in authenticated state. /// this method tries to automatically create the mailbox when server sent [TRYCREATE] response code. /// the out parameter <paramref name="appendedUids"/> will be set if the server supports UIDPLUS extension and returns [APPENDUID] responce code, otherwise null. /// </remarks> public ImapCommandResult Append(IImapAppendMessage message, string mailboxName, out ImapAppendedUidSet appendedUids, out ImapMailbox createdMailbox) { return AppendInternal(new[] {message}, false, mailboxName, out appendedUids, out createdMailbox); }
public void AppendMessage(IImapAppendMessage message) { if (message == null) throw new ArgumentNullException("message"); ProcessResult(Client.Session.Append(message, Mailbox)); }
/// <summary>sends APPEND command</summary> /// <remarks>valid in authenticated state</remarks> public ImapCommandResult Append(IImapAppendMessage message, string mailboxName) { return AppendInternal(new[] {message}, false, mailboxName); }
/// <summary>sends APPEND command</summary> /// <remarks> /// valid in authenticated state. /// the out parameter <paramref name="appendedUids"/> will be set if the server supports UIDPLUS extension and returns [APPENDUID] responce code, otherwise null. /// </remarks> public ImapCommandResult Append(IImapAppendMessage message, ImapMailbox mailbox, out ImapAppendedUidSet appendedUids) { return AppendInternal(new[] {message}, false, mailbox, out appendedUids); }
/// <summary>sends APPEND command</summary> /// <remarks>valid in authenticated state</remarks> public ImapCommandResult Append(IImapAppendMessage message, ImapMailbox mailbox) { return AppendInternal(new[] {message}, false, mailbox); }
/// <summary>sends APPEND command</summary> /// <remarks> /// valid in authenticated state. /// this method will fail if server does not support BINARY extension. /// this method tries to automatically create the mailbox when server sent [TRYCREATE] response code. /// </remarks> public ImapCommandResult AppendBinary(IImapAppendMessage message, string mailboxName, out ImapMailbox createdMailbox) { return AppendInternal(new[] {message}, true, mailboxName, out createdMailbox); }
/// <summary>sends APPEND command</summary> /// <remarks> /// valid in authenticated state. /// this method will fail if server does not support BINARY extension. /// the out parameter <paramref name="appendedUids"/> will be set if the server supports UIDPLUS extension and returns [APPENDUID] responce code, otherwise null. /// </remarks> public ImapCommandResult AppendBinary(IImapAppendMessage message, string mailboxName, out ImapAppendedUidSet appendedUids) { return AppendInternal(new[] {message}, true, mailboxName, out appendedUids); }