Example #1
0
 public virtual void ProcessLsubCommand(LsubCommand cmd)
 {
     this.Session.AppendResponse(
         new ServerStatusResponse(cmd.Tag,
                                  ServerStatusResponseType.NO,
                                  "LSUB State Error")
         );
 }
Example #2
0
        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"));
        }