Skip to content

Error: Max header size for a MIME node exceeded #3

@alaindeurveilher

Description

@alaindeurveilher

Hello,

Thank you for the great work! But I've got an error message after processing, and all the csv files are empty.

mboxhome yarn start
yarn run v1.22.22
$ gmail-mbox-stats mymail="alain.deurveilher@gmail.com" mboxpath="./Takeout/Mail/All mail Including Spam and Trash.mbox" > stats.txt
node:internal/process/promises:394
    triggerUncaughtException(err, true /* fromPromise */);
    ^

Error: Max header size for a MIME node exceeded
    at MessageSplitter.processLine (/Users/alaind/Apps/mboxhome/node_modules/mailsplit/lib/message-splitter.js:363:31)
    at Immediate.iterateData (/Users/alaind/Apps/mboxhome/node_modules/mailsplit/lib/message-splitter.js:79:33)
    at process.processImmediate (node:internal/timers:491:21) {
  code: 'EMAXLEN'
}

Node.js v22.14.0

FY, I installed the package locally, and created a script in my package.json

{
  "name": "mboxhome",
  "scripts": {
    "start": "gmail-mbox-stats mymail=\"alain.deurveilher@gmail.com\" mboxpath=\"./Takeout/Mail/All mail Including Spam and Trash.mbox\" > stats.txt"
  },
  "dependencies": {
    "gmail-mbox-stats": "^1.2.3"
  }
}

The log ends with this:


gmail-mbox-stats v1.2.3
Created by leodevbro (Levan Katsadze)
* leodevbro@gmail.com
* linkedin.com/in/leodevbro
* github.com/leodevbro
* facebook.com/leodevbro


Started MBOX file analyzation
Start datetime: 2025-02-23_04-31-43
1000
...
78538 - here: 'to' participant address is empty - Search: ===rfc822msgid:91ffe7b1264b0137aba58d080edb1162@www.passion-photos.net=== 'prt.address === str_EMPTY'
78631 - here: 'to' participant address is empty - Search: ===rfc822msgid:3cf8141171b45ee3076b8272b96fcaf5@www.passion-photos.net=== 'prt.address === str_EMPTY'
78635 - here: 'to' participant address is empty - Search: ===rfc822msgid:951732cd7b30e0010a4a17d9cc6a32c5@forumophoto.fr=== 'prt.address === str_EMPTY'
78638 - here: 'to' participant address is empty - Search: ===rfc822msgid:09c67a81d2d30f0d9a27cbac39d5a5d2@www.passion-photos.net=== 'prt.address === str_EMPTY'
78641 - here: 'to' participant address is empty - Search: ===rfc822msgid:d23924c6489f0645b58cb102fe7c5860@forumophoto.fr=== 'prt.address === str_EMPTY'
78643 - here: 'to' participant address is empty - Search: ===rfc822msgid:943e44aad67b53312dd211ebc71220dd@forumophoto.fr=== 'prt.address === str_EMPTY'
78645 - here: 'to' participant address is empty - Search: ===rfc822msgid:7e1d247a4e064937e6bdb1a021657b76@www.passion-photos.net=== 'prt.address === str_EMPTY'
Finished accessing all the mails (79921), but not yet finished proccessing them. Please wait.
79000

So because of the exception, I don' have the rest of the log as well.
For information, it was quite fast, and too about 5 minutes to process all up to that point (Macbook Pro, M4 chip), as the file was last modified at 2025-02-23_04-36-xx

As seen, since the execution of the script expects a relative path, I passed as an argument the relative path to the mbox file, and it seemed to work well.

But as said all the csv files are empty.

Image

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions