示例#1
0
 private void WriteMimePart(IImapMimeProvider mimeProvider, MimeStreamWriter writer, OutboundConversionOptions options, MimePartInfo partInfo, ItemToMimeConverter.MimeFlags conversionFlags)
 {
     try
     {
         ConvertUtils.CallCts(ExTraceGlobals.CcOutboundMimeTracer, "ImapItemConverter::WriteMimePart", ServerStrings.ConversionCorruptContent, delegate
         {
             ConversionLimitsTracker limits = new ConversionLimitsTracker(options.Limits);
             mimeProvider.WriteMimePart(writer, limits, partInfo, conversionFlags);
         });
     }
     catch (StoragePermanentException exc)
     {
         ItemConversion.SaveFailedItem(this.itemIn, options, exc);
         throw;
     }
 }