-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thread replies do not always bump the thread in the inbox #1507
Comments
There are several things at play here:
To know if it is really 19th: open the message source and look at the
$this->etag = \md5('FolderHash/'. \implode('-', [
$this->FullName,
$this->MESSAGES,
$this->UIDNEXT,
$this->UIDVALIDITY,
$this->UNSEEN,
$this->HIGHESTMODSEQ,
$oImapClient->Hash()
])); In the logs this is clear through:
To get this checked: disable cache |
Personally i think one of your people is using a buggy mail client that screws up the threading. |
1) The header in the source only mentions March 19th.
2) Not sure what you are suggesting here. Are you saying turn off the cache for testing? If so, how is that done?
March 19, 2024 at 12:59 PM, "Maarten" ***@***.***> wrote:
There are several things at play here:
1. the date received is not the same as the date written.
SnappyMail uses the date inside the email, NOT the received date.
So an email could be received March 19th but the email itself says March 17th.
To know if it is really 19th: open the message source and look at the Date: .... header.
1. SnappyMail loads all threads and uses a cache
https://github.com/the-djmaze/snappymail/blob/173a172cf834aca748fb8739447d5f1e92a01fad/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php#L398-L413
The cache is based on the FolderInfo->etag
$this->etag = \md5('FolderHash/'. \implode('-', [
$this->FullName,
$this->MESSAGES,
$this->UIDNEXT,
$this->UIDVALIDITY,
$this->UNSEEN,
$this->HIGHESTMODSEQ,
$oImapClient->Hash()
]));
In the logs this is clear through:
IMAP[INFO]: > TAG2 STATUS "INBOX" (MESSAGES UNSEEN UIDNEXT UIDVALIDITY HIGHESTMODSEQ SIZE)\r\n
IMAP[INFO]: < * STATUS INBOX (MESSAGES 576 UIDNEXT 12147 UIDVALIDITY 1588756623 UNSEEN 133 HIGHESTMODSEQ 17020 SIZE 86613598)\r\n
IMAP[INFO]: < TAG2 OK Status completed (0.001 + 0.000 secs).\r\n
IMAP[INFO]: > TAG3 SELECT "INBOX"\r\n
IMAP[INFO]: < * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $FORWARDED $SENT $SIGNED $TODO $ERROR $QUEUED $label1 $label5 test $label2 $label3 $label4 &zevnla- $Junk hosting Payment $NotJunk)\r\n
IMAP[INFO]: < * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $FORWARDED $SENT $SIGNED $TODO $ERROR $QUEUED $label1 $label5 test $label2 $label3 $label4 &zevnla- $Junk hosting Payment $NotJunk \*)] Flags permitted.\r\n
IMAP[INFO]: < * 576 EXISTS\r\n
IMAP[INFO]: < * 0 RECENT\r\n
IMAP[INFO]: < * OK [UNSEEN 65] First unseen.\r\n
IMAP[INFO]: < * OK [UIDVALIDITY 1588756623] UIDs valid\r\n
IMAP[INFO]: < * OK [UIDNEXT 12147] Predicted next UID\r\n
IMAP[INFO]: < * OK [HIGHESTMODSEQ 17020] Highest\r\n
IMAP[INFO]: < TAG3 OK [READ-WRITE] Select completed (0.001 + 0.000 secs).\r\n
IMAP[INFO]: > TAG4 UID SORT (REVERSE DATE) UTF-8 UNDELETED\r\n
IMAP[INFO]: < * SORT 12142 ...\r\n
IMAP[INFO]: < TAG4 OK Sort completed (0.006 + 0.000 + 0.005 secs).\r\n
[INFO]: Save Serialized UIDS to cache ("INBOX" / REVERSE DATE / UNDELETED) [count:576]
[INFO]: ThreadsMapSorted/ALL/INBOX/dc4cad9e3ae85e835e801ee92b39e111
IMAP[INFO]: > TAG5 UID THREAD REFS UTF-8 ALL\r\n
IMAP[INFO]: < * THREAD (4)(5)(6)(7)...\r\n
IMAP[INFO]: < TAG5 OK Thread completed (0.005 + 0.000 + 0.004 secs).\r\n
[INFO]: Save Serialized Thread UIDS to cache ("INBOX" / ALL) [count:25]
To get this checked: disable cache
—
Reply to this email directly, view it on GitHub #1507 (comment) , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWGSHRWA4AFE7VSMTBWYCNDYZBVGNAVCNFSM6AAAAABE5ZLVYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBXGY4DSMRSGQ .
You are receiving this because you authored the thread.
**Matt Coulter**
**Director of Technology**
***@***.*****
**(o) 706-940-5113**
|
If so, why am I not having the issue in Sogo or Roundcube, but only in SnappyMail?
March 19, 2024 at 1:23 PM, "Maarten" ***@***.***> wrote:
Personally i think one of your people is using a buggy mail client that screws up the threading.
—
Reply to this email directly, view it on GitHub #1507 (comment) , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWGSHRS66KPFRVVALTOAMWLYZBX73AVCNFSM6AAAAABE5ZLVYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBXG42DCOJQGM .
You are receiving this because you authored the thread.
**Matt Coulter**
**Director of Technology**
***@***.*****
**(o) 706-940-5113**
|
So if I turn off the cache, should I instantly see a result or would I need to add new replies in the thread?
Also, I do not have an issue with direct threads. The issue is when we send an email to multiple users (in this case a BCC group) and individuals are replying with one-on-one threads branching out from the original message.
March 19, 2024 at 1:37 PM, "Maarten" ***@***.***> wrote:
Using dovecot on the demo website
Here is the default:
afbeelding.png (view on web) https://github.com/the-djmaze/snappymail/assets/3752035/a1f70518-7923-4e92-9f1e-d86a1378bb97
Then i replied:
afbeelding.png (view on web) https://github.com/the-djmaze/snappymail/assets/3752035/5403e347-8788-4056-8667-eb944bbb5733
And the thread looks like this:
afbeelding.png (view on web) https://github.com/the-djmaze/snappymail/assets/3752035/ac712eaf-523b-4d26-9ec9-070f3bde7d41
This structure is correct and working.
>
> If so, why am I not having the issue in Sogo or Roundcube, but only in SnappyMail?
>
Because SnappyMail uses IMAP THREAD.
Sogo and Roundcube clone the IMAP data to a local database and work with that.
>
> Are you saying turn off the cache for testing? If so, how is that done?
>
In application.ini
afbeelding.png (view on web) https://github.com/the-djmaze/snappymail/assets/3752035/7e08f8c9-a782-4a07-ae84-5db0fa46bb06
—
Reply to this email directly, view it on GitHub #1507 (comment) , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWGSHRRDTB5F67IIVH43KATYZBZXLAVCNFSM6AAAAABE5ZLVYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBXG43TENBZGQ .
You are receiving this because you authored the thread.
**Matt Coulter**
**Director of Technology**
***@***.*****
**(o) 706-940-5113**
|
TO, CC or BCC doesn't matter.
I've just created an idea that might help figure out your issue.
For now it doesn't work, but i could write a script for you that works similar as the |
OK, here is a script i made. The script will ask for 3 things:
imapthread.zip
Try it, maybe it can help you Here's an example output:
|
I'm also checking back with one of the recipients on what platform they are replying with. I had another user reply yesterday and it kicked the message thread back to the front of my inbox.
March 19, 2024 at 7:35 PM, "Maarten" ***@***.***> wrote:
OK, here is a script i made.
Run it as php imapthread.php --host example.com --port 143
If your host is localhost and the port is 143, then you can skip those and just run php imapthread.php
The script will ask for 3 things:
1. user aka ***@***.***"
2. password
3. msgid the message-id you want all UID's from
imapthread.zip https://github.com/the-djmaze/snappymail/files/14657913/imapthread.zip
Try it, maybe it can help you
—
Reply to this email directly, view it on GitHub #1507 (comment) , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWGSHRUKZATNAPK54B7X5C3YZDDU5AVCNFSM6AAAAABE5ZLVYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBYGM2DKMRSGA .
You are receiving this because you authored the thread.
**Matt Coulter**
**Director of Technology**
***@***.*****
**(o) 706-940-5113**
|
When I try the script, I'm getting an issue with the security type. I'm using StartTLS with the 143 port. PHP Fatal error: Uncaught Error: Class "MailSo\Net\Enumerations\ConnectionSecurityType" not found in /var/www/nextcloud/apps/snappymail/app/snappymail/v/2.35.4/TEST/imapthread.php:72 |
Is there a special way I am supposed to address the security in the syntax? |
Modify imapthread.php. |
Now I get: |
Ok, i will modify some things and see why yours is failing so badly |
Not sure if I clarified this before, but in case this helps, the email server is my personal dovecot (iRedMail) server. Could I just do some querying or log searching there to help me see how the thread is being marked?
March 22, 2024 at 3:36 PM, "Maarten" ***@***.***> wrote:
Ok, i will modify some things and see why yours is failing so badly
—
Reply to this email directly, view it on GitHub #1507 (comment) , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWGSHRTHNZKUOOYQIR37QNLYZSB5XAVCNFSM6AAAAABE5ZLVYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJVG44DIMJXGQ .
You are receiving this because you authored the thread.
**Matt Coulter**
**Director of Technology**
***@***.*****
**(o) 706-940-5113**
|
|
I probably did find something that could cause it. |
Ok. Thanks for the update. Are you saying that you plan to roll that out in an update? Just making sure I'm following you correctly. |
Yes, next release will contain the changes. However, there will be one that is "off" for now:
When Example:
You can set it to |
Great! Thanks for following up with this concern! I do appreciate it!
March 26, 2024 at 2:33 PM, "Maarten" ***@***.***> wrote:
Play around with https://github.com/the-djmaze/snappymail/releases/tag/v2.36.0
—
Reply to this email directly, view it on GitHub #1507 (comment) , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWGSHRR3SOOUGJ267VIMBE3Y2GWQHAVCNFSM6AAAAABE5ZLVYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRRGE4TIOBYGI .
You are receiving this because you authored the thread.
**Matt Coulter**
**Director of Technology**
***@***.*****
**(o) 706-940-5113**
|
Would it be possible to include outbound (sent) replies in the thread as well as leaving them in the sent folder?
March 26, 2024 at 2:33 PM, "Maarten" ***@***.***> wrote:
Play around with https://github.com/the-djmaze/snappymail/releases/tag/v2.36.0
—
Reply to this email directly, view it on GitHub #1507 (comment) , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWGSHRR3SOOUGJ267VIMBE3Y2GWQHAVCNFSM6AAAAABE5ZLVYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRRGE4TIOBYGI .
You are receiving this because you authored the thread.
**Matt Coulter**
**Director of Technology**
***@***.*****
**(o) 706-940-5113**
|
No, therefore you have 2 options:
|
Describe the bug
When a threaded email discussion includes multiple recipients replies to the email do not always bump the thread to the top of the inbox.
New messages may be sent but the thread is stuck on a previous date where the last message occurred with another recipient.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
With other email clients pointed to the same email server, the replies will always bump the thread to the top of the inbox. I would want this to happen in SnappyMail as well.
Screenshots
This is the message in the SOGO Inbox showing the message as the most recent message:
This is the message in the RoundCube Inbox showing the message as the most recent message:
This is the message in SnappyMail. It shows up last on March 17th even though today is March 19th and I have had correspondence on the 19th.
This is the Group header:
This is the beginning of the thread:
This next message (listed as 38 minutes ago) is the message that was most recent in the thread:
This thread ends with the message that matches the date where the thread remains despite newer messages:
Please complete the following information:
The text was updated successfully, but these errors were encountered: