public virtual void ProcessLsubCommand(LsubCommand cmd) { this.Session.AppendResponse( new ServerStatusResponse(cmd.Tag, ServerStatusResponseType.NO, "LSUB State Error") ); }
public override void ProcessLsubCommand(LsubCommand cmd) { List <MailBox> boxes; if (cmd.MailBoxWithWildcards == "*") { boxes = store.GetAllMailbox(); } else { boxes = store.SearchMailbox(cmd.MailBoxWithWildcards); } foreach (var box in boxes) { this.Session.AppendResponse(new LsubResponse(box.Path)); } this.Session.AppendResponse(new ServerStatusResponse(cmd.Tag, ServerStatusResponseType.OK, "LSUB completed")); }