Skip to content
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

Server search only shows message headers and doesn't download them #2023

Closed
leo-b opened this issue Jan 9, 2017 · 7 comments
Closed

Server search only shows message headers and doesn't download them #2023

leo-b opened this issue Jan 9, 2017 · 7 comments
Labels
type: bug Something is causing incorrect behavior or errors

Comments

@leo-b
Copy link

leo-b commented Jan 9, 2017

Searching for messages using an IMAP server-side search also yields search results that are older than the "local folder size" set in account settings / fetching mail. (e.g. show 1000 messages)

Those messages are shown correctly in the search results list but are not downloaded (shown with a grey background). When selecting such a message, only the headers are displayed, the message body is shown empty.

K-9 Mail version: 5.202

Android version: 6.0.1

Account type (IMAP, POP3, WebDAV/Exchange): IMAP

@philipwhiuk
Copy link
Contributor

On my device it does download the body but there's no indicator that this is happening.

@leo-b
Copy link
Author

leo-b commented Jan 10, 2017

On my device / with my settings it doesn't. The message stays grey shaded in the message list and when viewing the message, no message body is displayed.
I am talking about messages that are too old to be covered by the configured download-rule (show 1000 messages). Messages that are already stored on the device, are displayed correctly, of course.

When sending the search to the server, the following log messages appear:

01-10 14:27:22.027 E/k9      ( 5261): com.fsck.k9.mail.MessagingException: Provided invalid part
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.mail.internet.MessageExtractor.getTextFromPart(MessageExtractor.java:60)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.crypto.MessageDecryptVerifier.isPartPgpInlineEncrypted(MessageDecryptVerifier.java:212)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.containsInlinePgpEncryptedText(EncryptionDetector.java:34)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.isEncrypted(EncryptionDetector.java:25)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.message.extractors.MessagePreviewCreator.createPreview(MessagePreviewCreator.java:31)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.saveMessage(LocalFolder.java:1287)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1223)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1218)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1218)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1145)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.loadSearchResultsSynchronous(MessagingController.java:705)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.searchRemoteMessagesSynchronous(MessagingController.java:632)
01-10 14:27:22.027 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController$7.run(MessagingController.java:581)
01-10 14:27:22.027 E/k9      ( 5261):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
01-10 14:27:22.027 E/k9      ( 5261):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-10 14:27:22.027 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-10 14:27:22.027 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-10 14:27:22.027 E/k9      ( 5261):   at java.lang.Thread.run(Thread.java:818)
01-10 14:27:22.037 E/k9      ( 5261): Unable to getTextFromPart
01-10 14:27:22.037 E/k9      ( 5261): com.fsck.k9.mail.MessagingException: Provided invalid part
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mail.internet.MessageExtractor.getTextFromPart(MessageExtractor.java:60)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.crypto.MessageDecryptVerifier.isPartPgpInlineEncrypted(MessageDecryptVerifier.java:212)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.containsInlinePgpEncryptedText(EncryptionDetector.java:34)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.isEncrypted(EncryptionDetector.java:25)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.message.extractors.MessageFulltextCreator.createFulltext(MessageFulltextCreator.java:33)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.saveMessage(LocalFolder.java:1292)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1223)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1218)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1218)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1145)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.loadSearchResultsSynchronous(MessagingController.java:705)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.searchRemoteMessagesSynchronous(MessagingController.java:632)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController$7.run(MessagingController.java:581)
01-10 14:27:22.037 E/k9      ( 5261):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
01-10 14:27:22.037 E/k9      ( 5261):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-10 14:27:22.037 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-10 14:27:22.037 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-10 14:27:22.037 E/k9      ( 5261):   at java.lang.Thread.run(Thread.java:818)
01-10 14:27:22.037 E/k9      ( 5261): Unable to getTextFromPart
01-10 14:27:22.037 E/k9      ( 5261): com.fsck.k9.mail.MessagingException: Provided invalid part
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mail.internet.MessageExtractor.getTextFromPart(MessageExtractor.java:60)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.crypto.MessageDecryptVerifier.isPartPgpInlineEncrypted(MessageDecryptVerifier.java:212)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.containsInlinePgpEncryptedText(EncryptionDetector.java:34)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.isEncrypted(EncryptionDetector.java:25)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.message.extractors.AttachmentCounter.getAttachmentCount(AttachmentCounter.java:28)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.saveMessage(LocalFolder.java:1295)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1223)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1218)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1218)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1145)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.loadSearchResultsSynchronous(MessagingController.java:705)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.searchRemoteMessagesSynchronous(MessagingController.java:632)
01-10 14:27:22.037 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController$7.run(MessagingController.java:581)
01-10 14:27:22.037 E/k9      ( 5261):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
01-10 14:27:22.037 E/k9      ( 5261):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-10 14:27:22.037 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-10 14:27:22.037 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-10 14:27:22.037 E/k9      ( 5261):   at java.lang.Thread.run(Thread.java:818)
01-10 14:27:24.917 E/k9      ( 5261): Unable to getTextFromPart
01-10 14:27:24.917 E/k9      ( 5261): com.fsck.k9.mail.MessagingException: Provided invalid part
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.mail.internet.MessageExtractor.getTextFromPart(MessageExtractor.java:60)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.crypto.MessageDecryptVerifier.isPartPgpInlineEncrypted(MessageDecryptVerifier.java:212)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.containsInlinePgpEncryptedText(EncryptionDetector.java:34)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.isEncrypted(EncryptionDetector.java:25)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.message.extractors.MessagePreviewCreator.createPreview(MessagePreviewCreator.java:31)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.saveMessage(LocalFolder.java:1287)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1223)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1218)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1218)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1145)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.loadSearchResultsSynchronous(MessagingController.java:705)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.searchRemoteMessagesSynchronous(MessagingController.java:632)
01-10 14:27:24.917 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController$7.run(MessagingController.java:581)
01-10 14:27:24.917 E/k9      ( 5261):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
01-10 14:27:24.917 E/k9      ( 5261):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-10 14:27:24.917 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-10 14:27:24.917 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-10 14:27:24.917 E/k9      ( 5261):   at java.lang.Thread.run(Thread.java:818)
01-10 14:27:24.927 E/k9      ( 5261): Unable to getTextFromPart
01-10 14:27:24.927 E/k9      ( 5261): com.fsck.k9.mail.MessagingException: Provided invalid part
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mail.internet.MessageExtractor.getTextFromPart(MessageExtractor.java:60)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.crypto.MessageDecryptVerifier.isPartPgpInlineEncrypted(MessageDecryptVerifier.java:212)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.containsInlinePgpEncryptedText(EncryptionDetector.java:34)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.isEncrypted(EncryptionDetector.java:25)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.message.extractors.MessageFulltextCreator.createFulltext(MessageFulltextCreator.java:33)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.saveMessage(LocalFolder.java:1292)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1223)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1218)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1218)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1145)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.loadSearchResultsSynchronous(MessagingController.java:705)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.searchRemoteMessagesSynchronous(MessagingController.java:632)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController$7.run(MessagingController.java:581)
01-10 14:27:24.927 E/k9      ( 5261):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
01-10 14:27:24.927 E/k9      ( 5261):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-10 14:27:24.927 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-10 14:27:24.927 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-10 14:27:24.927 E/k9      ( 5261):   at java.lang.Thread.run(Thread.java:818)
01-10 14:27:24.927 E/k9      ( 5261): Unable to getTextFromPart
01-10 14:27:24.927 E/k9      ( 5261): com.fsck.k9.mail.MessagingException: Provided invalid part
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mail.internet.MessageExtractor.getTextFromPart(MessageExtractor.java:60)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.crypto.MessageDecryptVerifier.isPartPgpInlineEncrypted(MessageDecryptVerifier.java:212)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.containsInlinePgpEncryptedText(EncryptionDetector.java:34)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.isEncrypted(EncryptionDetector.java:25)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.message.extractors.AttachmentCounter.getAttachmentCount(AttachmentCounter.java:28)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.saveMessage(LocalFolder.java:1295)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1223)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1218)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1218)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1145)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.loadSearchResultsSynchronous(MessagingController.java:705)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.searchRemoteMessagesSynchronous(MessagingController.java:632)
01-10 14:27:24.927 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController$7.run(MessagingController.java:581)
01-10 14:27:24.927 E/k9      ( 5261):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
01-10 14:27:24.927 E/k9      ( 5261):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-10 14:27:24.927 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-10 14:27:24.927 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-10 14:27:24.927 E/k9      ( 5261):   at java.lang.Thread.run(Thread.java:818)
01-10 14:27:27.707 E/k9      ( 5261): Unable to getTextFromPart
01-10 14:27:27.707 E/k9      ( 5261): com.fsck.k9.mail.MessagingException: Provided invalid part
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mail.internet.MessageExtractor.getTextFromPart(MessageExtractor.java:60)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.crypto.MessageDecryptVerifier.isPartPgpInlineEncrypted(MessageDecryptVerifier.java:212)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.containsInlinePgpEncryptedText(EncryptionDetector.java:34)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.isEncrypted(EncryptionDetector.java:25)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.message.extractors.MessagePreviewCreator.createPreview(MessagePreviewCreator.java:31)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.saveMessage(LocalFolder.java:1287)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1223)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1218)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1218)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1145)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.loadSearchResultsSynchronous(MessagingController.java:705)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.searchRemoteMessagesSynchronous(MessagingController.java:632)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController$7.run(MessagingController.java:581)
01-10 14:27:27.707 E/k9      ( 5261):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
01-10 14:27:27.707 E/k9      ( 5261):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-10 14:27:27.707 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-10 14:27:27.707 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-10 14:27:27.707 E/k9      ( 5261):   at java.lang.Thread.run(Thread.java:818)
01-10 14:27:27.707 E/k9      ( 5261): Unable to getTextFromPart
01-10 14:27:27.707 E/k9      ( 5261): com.fsck.k9.mail.MessagingException: Provided invalid part
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mail.internet.MessageExtractor.getTextFromPart(MessageExtractor.java:60)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.crypto.MessageDecryptVerifier.isPartPgpInlineEncrypted(MessageDecryptVerifier.java:212)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.containsInlinePgpEncryptedText(EncryptionDetector.java:34)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.isEncrypted(EncryptionDetector.java:25)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.message.extractors.MessageFulltextCreator.createFulltext(MessageFulltextCreator.java:33)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.saveMessage(LocalFolder.java:1292)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1223)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1218)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1218)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1145)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.loadSearchResultsSynchronous(MessagingController.java:705)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.searchRemoteMessagesSynchronous(MessagingController.java:632)
01-10 14:27:27.707 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController$7.run(MessagingController.java:581)
01-10 14:27:27.707 E/k9      ( 5261):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
01-10 14:27:27.707 E/k9      ( 5261):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-10 14:27:27.707 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-10 14:27:27.707 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-10 14:27:27.707 E/k9      ( 5261):   at java.lang.Thread.run(Thread.java:818)
01-10 14:27:27.717 E/k9      ( 5261): Unable to getTextFromPart
01-10 14:27:27.717 E/k9      ( 5261): com.fsck.k9.mail.MessagingException: Provided invalid part
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.mail.internet.MessageExtractor.getTextFromPart(MessageExtractor.java:60)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.crypto.MessageDecryptVerifier.isPartPgpInlineEncrypted(MessageDecryptVerifier.java:212)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.containsInlinePgpEncryptedText(EncryptionDetector.java:34)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.isEncrypted(EncryptionDetector.java:25)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.message.extractors.AttachmentCounter.getAttachmentCount(AttachmentCounter.java:28)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.saveMessage(LocalFolder.java:1295)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1223)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1218)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1218)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1145)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.loadSearchResultsSynchronous(MessagingController.java:705)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.searchRemoteMessagesSynchronous(MessagingController.java:632)
01-10 14:27:27.717 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController$7.run(MessagingController.java:581)
01-10 14:27:27.717 E/k9      ( 5261):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
01-10 14:27:27.717 E/k9      ( 5261):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-10 14:27:27.717 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-10 14:27:27.717 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-10 14:27:27.717 E/k9      ( 5261):   at java.lang.Thread.run(Thread.java:818)
01-10 14:27:30.627 E/k9      ( 5261): Unable to getTextFromPart
01-10 14:27:30.627 E/k9      ( 5261): com.fsck.k9.mail.MessagingException: Provided invalid part
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mail.internet.MessageExtractor.getTextFromPart(MessageExtractor.java:60)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.crypto.MessageDecryptVerifier.isPartPgpInlineEncrypted(MessageDecryptVerifier.java:212)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.containsInlinePgpEncryptedText(EncryptionDetector.java:34)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.isEncrypted(EncryptionDetector.java:25)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.message.extractors.MessagePreviewCreator.createPreview(MessagePreviewCreator.java:31)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.saveMessage(LocalFolder.java:1287)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1223)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1218)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1218)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1145)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.loadSearchResultsSynchronous(MessagingController.java:705)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.searchRemoteMessagesSynchronous(MessagingController.java:632)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController$7.run(MessagingController.java:581)
01-10 14:27:30.627 E/k9      ( 5261):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
01-10 14:27:30.627 E/k9      ( 5261):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-10 14:27:30.627 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-10 14:27:30.627 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-10 14:27:30.627 E/k9      ( 5261):   at java.lang.Thread.run(Thread.java:818)
01-10 14:27:30.627 E/k9      ( 5261): Unable to getTextFromPart
01-10 14:27:30.627 E/k9      ( 5261): com.fsck.k9.mail.MessagingException: Provided invalid part
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mail.internet.MessageExtractor.getTextFromPart(MessageExtractor.java:60)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.crypto.MessageDecryptVerifier.isPartPgpInlineEncrypted(MessageDecryptVerifier.java:212)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.containsInlinePgpEncryptedText(EncryptionDetector.java:34)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.isEncrypted(EncryptionDetector.java:25)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.message.extractors.MessageFulltextCreator.createFulltext(MessageFulltextCreator.java:33)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.saveMessage(LocalFolder.java:1292)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1223)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1218)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1218)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1145)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.loadSearchResultsSynchronous(MessagingController.java:705)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.searchRemoteMessagesSynchronous(MessagingController.java:632)
01-10 14:27:30.627 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController$7.run(MessagingController.java:581)
01-10 14:27:30.627 E/k9      ( 5261):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
01-10 14:27:30.627 E/k9      ( 5261):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-10 14:27:30.627 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-10 14:27:30.627 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-10 14:27:30.627 E/k9      ( 5261):   at java.lang.Thread.run(Thread.java:818)
01-10 14:27:30.637 E/k9      ( 5261): Unable to getTextFromPart
01-10 14:27:30.637 E/k9      ( 5261): com.fsck.k9.mail.MessagingException: Provided invalid part
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.mail.internet.MessageExtractor.getTextFromPart(MessageExtractor.java:60)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.crypto.MessageDecryptVerifier.isPartPgpInlineEncrypted(MessageDecryptVerifier.java:212)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.containsInlinePgpEncryptedText(EncryptionDetector.java:34)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.message.extractors.EncryptionDetector.isEncrypted(EncryptionDetector.java:25)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.message.extractors.AttachmentCounter.getAttachmentCount(AttachmentCounter.java:28)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.saveMessage(LocalFolder.java:1295)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1223)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder$15.doDbWork(LocalFolder.java:1218)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1218)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.mailstore.LocalFolder.appendMessages(LocalFolder.java:1145)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.loadSearchResultsSynchronous(MessagingController.java:705)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController.searchRemoteMessagesSynchronous(MessagingController.java:632)
01-10 14:27:30.637 E/k9      ( 5261):   at com.fsck.k9.controller.MessagingController$7.run(MessagingController.java:581)
01-10 14:27:30.637 E/k9      ( 5261):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
01-10 14:27:30.637 E/k9      ( 5261):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-10 14:27:30.637 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
01-10 14:27:30.637 E/k9      ( 5261):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
01-10 14:27:30.637 E/k9      ( 5261):   at java.lang.Thread.run(Thread.java:818)

When viewing a search result (selecting a message), the following lines are logged every few seconds:

01-10 14:28:26.037 D/k9      ( 5261): Creating new local message loader
01-10 14:28:28.577 D/k9      ( 5261): Creating new local message loader
01-10 14:28:31.357 D/k9      ( 5261): Creating new local message loader
01-10 14:28:33.987 D/k9      ( 5261): Creating new local message loader
01-10 14:28:36.597 D/k9      ( 5261): Creating new local message loader
01-10 14:28:39.617 D/k9      ( 5261): Creating new local message loader
01-10 14:28:42.327 D/k9      ( 5261): Creating new local message loader
01-10 14:28:45.097 D/k9      ( 5261): Creating new local message loader
01-10 14:28:47.957 D/k9      ( 5261): Creating new local message loader
01-10 14:28:50.487 D/k9      ( 5261): Creating new local message loader
01-10 14:28:53.247 D/k9      ( 5261): Creating new local message loader
01-10 14:28:56.607 D/k9      ( 5261): Creating new local message loader

@philipwhiuk
Copy link
Contributor

Thanks that log looks useful :) Will take a look this evening at what's going on.

@philipwhiuk philipwhiuk added the type: bug Something is causing incorrect behavior or errors label Jan 11, 2017
@DerGuteWolf
Copy link

I also have this problem. Is there anything I can do to help getting this fixed?

@HansAschauer
Copy link

I also see this bug. I run my own dovecot instance, so if this is a server specific bug, I can try to provide configuration details, server logs or a test account via PM.

@cociweb
Copy link

cociweb commented Nov 3, 2017

In 5.303 with android 5.1 there is no search result:Still the same on 5.303.
Imap - gsuite (formerly google apps): imap.gmail.com

The issue is the same as: #699 #2552 #2527

@philipwhiuk
Copy link
Contributor

Debugged the cause of this with a more recent debug log. Closing in favour of #3111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something is causing incorrect behavior or errors
Projects
None yet
Development

No branches or pull requests

5 participants