pub fn unre(subject: &str) -> StringExpand description
Strips reply prefixes from email subjects.
Removes internationalized reply/forward prefixes: Re:, Fwd:, AW: (German), SV: (Swedish), Odp: (Polish), Antw: (Dutch), etc.
§Security
For performance in O(n²) threading loops, extremely long subjects are truncated to MAX_SUBJECT_THREAD_LENGTH before regex processing.
§Examples
use hypermail::string_utils::unre;
assert_eq!(unre("Re: Hello"), "Hello");
assert_eq!(unre("RE: Re: Fwd: Hello"), "Hello");
assert_eq!(unre("AW: Diskussion"), "Diskussion");