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()) }); }
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()) }); }
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()) }); }