public static List <ImapResponse> ExecuteBySeqNo(MailDb mailDb, SelectFolder folder, string args) { var storeArgs = ParseStoreArgs(args); var messages = ImapHelper.GetMessagesBySeqNo(mailDb, folder, storeArgs.Ranges); return(ExecuteNew(mailDb, messages, storeArgs.DataItem, storeArgs.Flags, storeArgs.Silent)); }
public static List <ImapResponse> ExecuteBySeqNo(MailDb mailDb, SelectFolder folder, string args) { var copyArgs = ParseArgs(args); var messages = ImapHelper.GetMessagesBySeqNo(mailDb, folder, copyArgs.Ranges); return(Execute(mailDb, messages, copyArgs.FolderName)); }
/// <summary> /// FETCH /// </summary> public static List <ImapResponse> GenerateBySeqId(MailDb mailDb, SelectFolder Folder, string Cmd) { var cmdReader = new CommandReader(Cmd); var set = cmdReader.SequenceSet; var range = GetSequenceRange(set); var AllDataItems = cmdReader.ReadAllDataItems(); var messages = ImapHelper.GetMessagesBySeqNo(mailDb, Folder, range); return(Generate(mailDb, Folder, AllDataItems, messages)); }