Returns the wrong body to Thunderbird #66

Closed
opened 2024-01-08 16:32:37 +00:00 by quentin · 1 comment
Owner

Can be reproduced with email ID=288 on my dataset
It's because I am reordering my index...

2024-01-08T16:09:34.812294Z DEBUG aerogramme::imap: command cmd=Command { tag: Tag("17"), body: Fetch { sequence_set: SequenceSet([Range(Value(1), Value(289))]+), macro_or_item_names: MessageDataItemNames([Uid, Rfc822Size, Flags, BodyExt { section: Some(HeaderFields(None, [Atom(AtomExt("From")),  Atom(AtomExt("To")), Atom(AtomExt("Cc")), Atom(AtomExt("Bcc")), Atom(AtomExt("Subject")), Atom(AtomExt("Date")), Atom(AtomExt("Message-ID")), Atom(AtomExt("Priority")), Atom(AtomExt("X-Priority")), Atom(AtomExt("References")), Atom(AtomExt("Newsgroups")), Atom(AtomExt("In-Reply-To")), Atom(AtomExt("Content-Type")), Atom(AtomExt("Reply-To"))]+)), partial: None, peek: true }]), uid: true } } sock=[2a0c:e303:0:2a00:4306:654f:e18f:b407]:35810
...
2024-01-08T16:09:50.985303Z DEBUG aerogramme::imap: command cmd=Command { tag: Tag("35"), body: Fetch { sequence_set: SequenceSet([Single(Value(288)), Single(Value(289))]+), macro_or_item_names: MessageDataItemNames([Uid, Rfc822Size, BodyExt { section: None, partial: None, peek: true }]), uid: true >
17 FETCH 1:289 (UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (FROM TO CC BCC SUBJECT DATE)])
35 UID FETCH 288,289 (UID RFC822.SIZE BODY.PEEK[])

The culprit is the fetch command:

17 FETCH 1:289 (UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (FROM TO CC BCC SUBJECT DATE)])

It seems when the range is big, the results are mixed

Expected result:

* 288 FETCH (UID 288 RFC822.SIZE 7319 FLAGS (NonJunk \Flagged \Seen) BODY[HEADER.FIELDS (FROM TO CC BCC SUBJECT DATE)] {179}
From: XXXXXX
Date: Fri, 31 Mar 2023 11:17:27 -0500
Subject: New episode of The Apache Cassandra (R) Corner podcast!
To: dev@cassandra.apache.org

Sometimes got:

* 288 FETCH (UID 288 RFC822.SIZE 7601 FLAGS (NonJunk \Flagged \Seen) BODY[HEADER.FIELDS (FROM TO CC BCC SUBJECT DATE)] {207}
From: XXXXXX
Date: Sat, 25 Mar 2023 10:05:04 -0500
Subject: Re: [DISCUSS] CEP-28: Reading and Writing Cassandra Data with Spark
 Bulk Analytics
To: dev@cassandra.apache.org
)
Can be reproduced with email ID=288 on my dataset It's because I am reordering my index... ``` 2024-01-08T16:09:34.812294Z DEBUG aerogramme::imap: command cmd=Command { tag: Tag("17"), body: Fetch { sequence_set: SequenceSet([Range(Value(1), Value(289))]+), macro_or_item_names: MessageDataItemNames([Uid, Rfc822Size, Flags, BodyExt { section: Some(HeaderFields(None, [Atom(AtomExt("From")), Atom(AtomExt("To")), Atom(AtomExt("Cc")), Atom(AtomExt("Bcc")), Atom(AtomExt("Subject")), Atom(AtomExt("Date")), Atom(AtomExt("Message-ID")), Atom(AtomExt("Priority")), Atom(AtomExt("X-Priority")), Atom(AtomExt("References")), Atom(AtomExt("Newsgroups")), Atom(AtomExt("In-Reply-To")), Atom(AtomExt("Content-Type")), Atom(AtomExt("Reply-To"))]+)), partial: None, peek: true }]), uid: true } } sock=[2a0c:e303:0:2a00:4306:654f:e18f:b407]:35810 ... 2024-01-08T16:09:50.985303Z DEBUG aerogramme::imap: command cmd=Command { tag: Tag("35"), body: Fetch { sequence_set: SequenceSet([Single(Value(288)), Single(Value(289))]+), macro_or_item_names: MessageDataItemNames([Uid, Rfc822Size, BodyExt { section: None, partial: None, peek: true }]), uid: true > ``` ``` 17 FETCH 1:289 (UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (FROM TO CC BCC SUBJECT DATE)]) 35 UID FETCH 288,289 (UID RFC822.SIZE BODY.PEEK[]) ``` The culprit is the fetch command: ``` 17 FETCH 1:289 (UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (FROM TO CC BCC SUBJECT DATE)]) ``` It seems when the range is big, the results are mixed Expected result: ``` * 288 FETCH (UID 288 RFC822.SIZE 7319 FLAGS (NonJunk \Flagged \Seen) BODY[HEADER.FIELDS (FROM TO CC BCC SUBJECT DATE)] {179} From: XXXXXX Date: Fri, 31 Mar 2023 11:17:27 -0500 Subject: New episode of The Apache Cassandra (R) Corner podcast! To: dev@cassandra.apache.org ``` Sometimes got: ``` * 288 FETCH (UID 288 RFC822.SIZE 7601 FLAGS (NonJunk \Flagged \Seen) BODY[HEADER.FIELDS (FROM TO CC BCC SUBJECT DATE)] {207} From: XXXXXX Date: Sat, 25 Mar 2023 10:05:04 -0500 Subject: Re: [DISCUSS] CEP-28: Reading and Writing Cassandra Data with Spark Bulk Analytics To: dev@cassandra.apache.org ) ```
quentin added the
cat
bug
label 2024-01-08 16:32:37 +00:00
quentin changed title from Thunderbird present the wrong body to Return the wrong body to Thunderbird 2024-01-08 16:32:51 +00:00
quentin added this to the IMAP4REV2 project 2024-01-08 16:37:53 +00:00
quentin modified the project from IMAP4REV2 to IMAP4REV1 2024-01-08 16:37:55 +00:00
quentin added this to the 0.2.0 milestone 2024-01-08 16:37:57 +00:00
quentin changed title from Return the wrong body to Thunderbird to Returns the wrong body to Thunderbird 2024-01-08 17:02:20 +00:00
Author
Owner

Solved

Solved
Sign in to join this conversation.
No description provided.