Disable UNSEEN again as it was a volunteer decision to not implement it
This commit is contained in:
parent
d49a2355f7
commit
5dfa02e381
3 changed files with 6 additions and 3 deletions
|
@ -26,7 +26,7 @@ impl Default for ServerCapability {
|
||||||
Capability::Move,
|
Capability::Move,
|
||||||
Capability::LiteralPlus,
|
Capability::LiteralPlus,
|
||||||
capability_unselect(),
|
capability_unselect(),
|
||||||
//capability_condstore(),
|
capability_condstore(),
|
||||||
//capability_qresync(),
|
//capability_qresync(),
|
||||||
]))
|
]))
|
||||||
}
|
}
|
||||||
|
|
|
@ -404,6 +404,7 @@ impl<'a> AuthenticatedContext<'a> {
|
||||||
it is therefore correct to not return it even if there are unseen messages
|
it is therefore correct to not return it even if there are unseen messages
|
||||||
RFC9051 (imap4rev2) says that OK [UNSEEN] responses are deprecated after SELECT and EXAMINE
|
RFC9051 (imap4rev2) says that OK [UNSEEN] responses are deprecated after SELECT and EXAMINE
|
||||||
For Aerogramme, we just don't send the OK [UNSEEN], it's correct to do in both specifications.
|
For Aerogramme, we just don't send the OK [UNSEEN], it's correct to do in both specifications.
|
||||||
|
|
||||||
|
|
||||||
20 select "INBOX.achats"
|
20 select "INBOX.achats"
|
||||||
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded JUNK $label1)
|
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded JUNK $label1)
|
||||||
|
|
|
@ -130,8 +130,8 @@ impl MailboxView {
|
||||||
data.extend(self.flags_status()?.into_iter());
|
data.extend(self.flags_status()?.into_iter());
|
||||||
data.push(self.uidvalidity_status()?);
|
data.push(self.uidvalidity_status()?);
|
||||||
data.push(self.uidnext_status()?);
|
data.push(self.uidnext_status()?);
|
||||||
self.unseen_first_status()?
|
/*self.unseen_first_status()?
|
||||||
.map(|unseen_status| data.push(unseen_status));
|
.map(|unseen_status| data.push(unseen_status));*/
|
||||||
|
|
||||||
Ok(data)
|
Ok(data)
|
||||||
}
|
}
|
||||||
|
@ -403,6 +403,7 @@ impl MailboxView {
|
||||||
Ok(Body::Data(Data::Recent(self.recent()?)))
|
Ok(Body::Data(Data::Recent(self.recent()?)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
fn unseen_first_status(&self) -> Result<Option<Body<'static>>> {
|
fn unseen_first_status(&self) -> Result<Option<Body<'static>>> {
|
||||||
Ok(self
|
Ok(self
|
||||||
.unseen_first()?
|
.unseen_first()?
|
||||||
|
@ -412,6 +413,7 @@ impl MailboxView {
|
||||||
.transpose()?)
|
.transpose()?)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
fn unseen_first(&self) -> Result<Option<NonZeroU32>> {
|
fn unseen_first(&self) -> Result<Option<NonZeroU32>> {
|
||||||
Ok(self
|
Ok(self
|
||||||
.0
|
.0
|
||||||
|
|
Loading…
Reference in a new issue