nntp: add SEEN flag to all envs, since NNTP has no flags

async-cursors
Manos Pitsidianakis 2023-07-13 21:03:55 +03:00
parent 5ceddf412e
commit 4e55fbc90d
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ pub fn over_article(input: &str) -> IResult<&str, (UID, Envelope)> {
EnvelopeHash(hasher.finish())
};
let mut env = Envelope::new(env_hash);
env.set_seen();
if let Some(date) = date {
env.set_date(date.as_bytes());
if let Ok(d) =