PGNet Dev
2022-May-18 12:00 UTC
Message attachments, relocated with Tbird in Dovecot maildir store, not openable; reversible by moving BACK to inbox?
4/1/22> I see same symptoms when opening a mail in thunderbird 2 or 3 weeks after I received it, without moving it in another folder. > But using "repair folder" in TB, I get it back, so for me it looks more like a TB cache problem.I've still not managed to solve for this problem; 'repair' doesn't fix it. Anyone here have a reliable fix -- either on the TBird &/or Dovecot sides -- to get these subfoldered attachments openable/readable? Ideally without the need for manual intervention each time? The issue, again is: Email with attachments (e.g., pdf) I receive to an account INBOX can be accessed in TBird/Linux with no problems. Dubl-Click on the attachment, and it opens in app -- e.g. pdfs open in Okular. Saving the attachment to Desktop, ls -al /home/pgnd/Desktop/SomeFile.pdf -rw-r--r-- 1 pgnd pgnd 197K May 18 07:49 /home/pgnd/Desktop/SomeFile.pdf All good. If I move the message , including attachment, to any other (sub)folder, and try to open the attahment, I get the usual open dialog, You have chose to open: SomeFile.pdf which is: Portable Document Format (PDF) (66.7 KB) from: imap://mx.example.com:993 What should Thunderbird do with this file? [X] Open with 'Okular (default)' which, on 'OK', does open Okular -- with an Error: Error -- Okular Could not open file:///tmp/pid-59993/SomeFile.pdf checking ls -altr /tmp/pid-59993/SomeFile.pdf -r--------+ 1 pgnd pgnd 27 May 18 07:46 'SomeFile.pdf' If I move the message BACK to imap INBOX, and open/save attachment it's good again. Thunderbird is not correctly retrieving the attachment when the message is not in imap:INBOX.
PGNet Dev
2022-May-18 13:13 UTC
Message attachments, relocated with Tbird in Dovecot maildir store, not openable; reversible by moving BACK to inbox?
On 5/18/22 8:00 AM, PGNet Dev wrote:> 4/1/22 >> I see same symptoms when opening a mail in thunderbird 2 or 3 weeks after I received it, without moving it in another folder. >> But using "repair folder" in TB, I get it back, so for me it looks more like a TB cache problem. > > I've still not managed to solve for this problem; 'repair' doesn't fix it. > > Anyone here have a reliable fix -- either on the TBird &/or Dovecot sides -- to get these subfoldered attachments openable/readable? > Ideally without the need for manual intervention each time?with Tbird cache(s) DISabled, browser.cache.disk.enable = false browser.cache.memory.enable = false browser.cache.offline.enable = false this issue continues. That suggests that this is NOT a TBird cache issue? Reading, https://doc.dovecot.org/configuration_manual/mail_cache_settings/ https://doc.dovecot.org/settings/core/#core_setting-mail_cache_fields I suspect these params in Dovecot mail_cache_fields mail_always_cache_fields mail_never_cache_fields mail_cache_unaccessed_field_drop , which atm for my install are @default values, may need to be modified. if so? to what?
Joseph Tam
2022-May-18 20:23 UTC
Message attachments, relocated with Tbird in Dovecot maildir store, not openable; reversible by moving BACK to inbox?
On Wed, 18 May 2022, PGNet Dev wrote:> checking > > ls -altr /tmp/pid-59993/SomeFile.pdf > -r--------+ 1 pgnd pgnd 27 May 18 07:46 'SomeFile.pdf'This may or may not get you closer to the solution, but out of curiosity, what's in the 27 bytes worth of data? And are those quotes really there? Joseph Tam <jtam.home at gmail.com>