[][src]Function feembox::assemble_mail

pub fn assemble_mail<'a, Mc, Ai>(
    feed: &Feed,
    entry: &FeedEntry,
    message_id: String,
    alt_transforms: Ai,
    mime_override: Option<&Mime>,
    ctx: &Mc
) -> Result<Mail, IoError> where
    Mc: MailContext,
    Ai: IntoIterator<Item = &'a (Mime, Mime, String)>, 

Make a mail for the specified entry from the specified feed, running transformations and overrides

The resulting mail consists of the following:

Then, for each element of alt_transforms:

Then, each submail is wrapped in a multipart/alternative under the status mail consisting of:

The headers are: