Skip to main content

parse_from_message

Function parse_from_message 

Source
pub fn parse_from_message(message: &Message<'_>) -> UnsubscribeMethod
Available on crate feature mail-parser only.
Expand description

Parse List-Unsubscribe from a mail_parser::Message in one call.

Reads both List-Unsubscribe and List-Unsubscribe-Post from the message and delegates to parse_with_post. Available only with the mail-parser feature enabled.