示例#1
0
文件: ENVELOPE.cs 项目: xhute/Kooboo
        public List <ImapResponse> Render(MailDb maildb, FetchMessage message, DataItem dataItem)
        {
            var builder = new StructureBuilder();

            ConstructEnvelope(builder, message.Parsed);

            return(new List <ImapResponse>
            {
                new ImapResponse(builder.ToString())
            });
        }
示例#2
0
        public List <ImapResponse> Render(MailDb maildb, FetchMessage message, DataItem dataItem)
        {
            var builder = new StructureBuilder()
                          .Append(dataItem.FullItemName)
                          .Append(" ");

            ConstructParts(builder, message.Parsed, true);

            return(new List <ImapResponse>
            {
                new ImapResponse(builder.ToString())
            });
        }
示例#3
0
        public List <ImapResponse> RenderBodyStructure(MailDb maildb, FetchMessage message, DataItem dataItem)
        {
            // non-extensions BODYSTRUCTURE
            var builder = new StructureBuilder()
                          .Append("BODYSTRUCTURE ");

            BODYSTRUCTURE.ConstructParts(builder, message.Parsed, false);

            return(new List <ImapResponse>
            {
                new ImapResponse(builder.ToString())
            });
        }