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

Mail export not working ? #112

Closed
ihubgit opened this issue Feb 25, 2019 · 11 comments
Closed

Mail export not working ? #112

ihubgit opened this issue Feb 25, 2019 · 11 comments

Comments

@ihubgit
Copy link

ihubgit commented Feb 25, 2019

Hi downloaded latest version 2.3.2 on High Sierra.
I manage to view my mailboxes in protonmail, but when switching to database view, nothing happens. The database icon just keeps blinking and i never see anything displayed. Also unable to export any messages. Is this a bug or me being noob?

@vladimiry
Copy link
Owner

The app does bootstrap fetch on enabling local store feature for the account. It involves downloading all the messages. This process takes time depending on the how many emails you got in your account. Besides there is a rate limiting involved for protonmail accout types which slows down the process. So you need to wait until the database icon stopped blinking.

During the botstrap fetch the app saves a messages by portions, portion size is about 500 messages. You will only be able to export the emails that have already been downloaded, those you can see in the the database view mode.

You can enable the info or verbose logging in the app settings and observe some progress information in the log file. If you locate any errors in the log file consider sharing it here or sending to the email specified here in the author section.

The bootstrap fetch is a one-off thing. After it got completed the app will only apply the database patches which doesn't take long.

@vladimiry
Copy link
Owner

This process takes time depending on the how many emails you got in your account.

If you got a lot of emails, like 10k+, consider using 2.3.3 pre-release with the disabled full-text search feature.

This v2.3.3 is going to be further improved until released, see details here.

@vladimiry vladimiry changed the title email-securely-app mail export not working ? Mail export not working ? Feb 25, 2019
@ihubgit
Copy link
Author

ihubgit commented Feb 25, 2019

I don't have that many emails. Just a few hundreds. I did try the 2.3.3. pre-release, but after an hour not even one mail showing up in the database. So something must be wrong !

@vladimiry
Copy link
Owner

You can enable the info or verbose logging in the app settings and observe some progress information in the log file. If you locate any errors in the log file consider sharing it here or sending to the email specified here in the author section.

@vladimiry
Copy link
Owner

@ihubgit can you try this build? Steps to perform:

  • Locate the setting folder (see how).
  • Close the app.
  • Set logLevel value in config.json file to verbose (by default it's set to error).
  • Remove or rename the database.bin file.
  • Start the app, sign-in into the account and enabe the local store feature and then wait for icon stopped blinking in green (so data syncing got completed).

If it keeps blinking for a long time or you get some errors shown by UI please send log.log file to the email specified here in the author section (log.log located in the same settings folder).

@vladimiry
Copy link
Owner

@ihubgit can you try this build? Steps to perform:

2.3.3 is now recommended for use.

@ihubgit
Copy link
Author

ihubgit commented Mar 5, 2019

well, tried again, and now I'm getting

Maximum call stack size exceeded

sent the log to the email you specified earlier

@vladimiry
Copy link
Owner

It fails on parsing specific email, I sent you its subject in email response. Here is what I need you to do in order to further investigate the case:

  • Disable the local store feature for now.
  • Login into the account using Google Chrome or Chromium browser.
  • Locate there email by subject I sent you in email response. I guess you can use Protonmail's search as it searches by subjects or just scroll through all the emails in plain view mode (disable grouping) as you wrote before that you got just a few hundreds of emails. Since error occurs at the https://github.com/ProtonMail/WebClient side then I guess it might not be working even if you work with that problematic email in browser.
  • Open the found email/emails for viewing (just click it).
  • Then perform export, print and view source code actions:
    items
  • If there is more than one email with the subject used for filtering please perform specified actions for all of them.
  • Then if there is no secrecy in located by subject email forward the email to me and also sent me the source code you got by clicking the view source code menu item (see above image).

@vladimiry
Copy link
Owner

vladimiry commented Mar 6, 2019

Since error occurs at the https://github.com/ProtonMail/WebClient side

I meant that it fails on this line https://github.com/ProtonMail/WebClient/blob/800107889f25e48746bf2fae433dc3c949561560/src/app/message/helpers/transformEscape.js#L126:

const breakHtml = input.replace(REGEXP_IS_BREAK, '$1proton-$2');
RangeError: Maximum call stack size exceeded
    at String.replace (<anonymous>)
    at transformEscape (webclient1://mail.protonmail.com/appLazy.module.a8c4f9e11d.chunk.js:6688:25)
    at Object.getBodyParser (webclient1://mail.protonmail.com/appLazy.module.a8c4f9e11d.chunk.js:6735:12)
    at Message.countEmbedded (webclient1://mail.protonmail.com/appLazy.module.a8c4f9e11d.chunk.js:32749:37)
    at Message._callee4$ (webclient1://mail.protonmail.com/appLazy.module.a8c4f9e11d.chunk.js:33205:43)
    at tryCatch (webclient1://mail.protonmail.com/vendors~index.8f1dbc4323.chunk.js:34358:40)
    at Generator.invoke [as _invoke] (webclient1://mail.protonmail.com/vendors~index.8f1dbc4323.chunk.js:34584:22)
    at Generator.prototype.(anonymous function) [as next] (webclient1://mail.protonmail.com/vendors~index.8f1dbc4323.chunk.js:34410:21)
    at asyncGeneratorStep (webclient1://mail.protonmail.com/vendors~index.8f1dbc4323.chunk.js:38436:24)
    at _next (webclient1://mail.protonmail.com/vendors~index.8f1dbc4323.chunk.js:38458:9)

So far it looks like a protonmail's bug, specifically inefficient regex is used. This is why I asked to open the problematic email in a browser and send me the email content if that's possible so I could reproduce the bug.

@vladimiry
Copy link
Owner

To recap, there are two issues here:

@vladimiry
Copy link
Owner

Closing due to the inactivity and because it's upstream issue ProtonMail/WebClients#146 causes the data syncing error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants