From 166a0cb6b3a9d630557e04e41344ed477d5c084c Mon Sep 17 00:00:00 2001 From: Todd Mortimer Date: Sun, 6 Dec 2020 15:49:11 -0500 Subject: [PATCH] Link to QRESYNC RFC section describing VANISHED vs EXPUNGE responses. --- src/parse.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parse.rs b/src/parse.rs index 0b57f52..9bf61b9 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -158,6 +158,10 @@ pub fn parse_expunge( } } + // If the server sends a VANISHED response then they must only send VANISHED + // in lieu of EXPUNGE responses for the rest of this connection, so it is + // always one or the other. + // https://tools.ietf.org/html/rfc7162#section-3.2.10 if !vanished.is_empty() { Ok(Deleted::from_vanished(vanished)) } else {