Skip to content

TypeError: Cannot read properties of undefined (reading 'split') #4

@santa112233

Description

@santa112233

Hi,
Thanks for your fantastic work on this project. Unfortunately I have discoverd an error, but am probably not going to be able to provide much assistance to resolve the issue as I have no coding experiance. But thought I'd bring it to your attention anyway. I've been trying to run your tool on my inbox that contains about 124,000 messages, but it errors out when trying to write the results. I've been running it on windows and below is output displayed in powershell:

124308 - here: 'to' participant address is empty - Search: ===rfc822msgid:4E4BB4BA.EB27.0021.0@newcastle.edu.au=== 'prt.address === str_EMPTY'
124648 - here: 'to' participant not found - Search: ===rfc822msgid:AANLkTin-0wHPur0dxvAdA6KX2hLncU9AolDHTgkW8Sna@mail.gmail.com=== '!family'
C:\Users\santa\AppData\Local\npm-cache\_npx\ad1668ac50f1422b\node_modules\gmail-mbox-stats\buildJS\utils\statsBuilder.js:11
    const asArr = nonCleanId.split(/[<>]/);
                             ^

TypeError: Cannot read properties of undefined (reading 'split')
    at generateSearchableIdOfMail (C:\Users\santa\AppData\Local\npm-cache\_npx\ad1668ac50f1422b\node_modules\gmail-mbox-stats\buildJS\utils\statsBuilder.js:11:30)
    at getSearchableIdForToBeEasyToCopy (C:\Users\santa\AppData\Local\npm-cache\_npx\ad1668ac50f1422b\node_modules\gmail-mbox-stats\buildJS\utils\statsBuilder.js:18:65)
    at C:\Users\santa\AppData\Local\npm-cache\_npx\ad1668ac50f1422b\node_modules\gmail-mbox-stats\buildJS\utils\sweetUtils.js:121:147
    at Array.map (<anonymous>)
    at getZenParticipantsFromFamily (C:\Users\santa\AppData\Local\npm-cache\_npx\ad1668ac50f1422b\node_modules\gmail-mbox-stats\buildJS\utils\sweetUtils.js:117:34)
    at processParsedMail (C:\Users\santa\AppData\Local\npm-cache\_npx\ad1668ac50f1422b\node_modules\gmail-mbox-stats\buildJS\utils\mailHeadersUtils.js:79:61)
    at C:\Users\santa\AppData\Local\npm-cache\_npx\ad1668ac50f1422b\node_modules\gmail-mbox-stats\buildJS\utils\mailParsingUtils.js:92:46
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\santa\AppData\Local\npm-cache\_npx\ad1668ac50f1422b\node_modules\gmail-mbox-stats\buildJS\utils\mailParsingUtils.js:5:58)
    at runNextTicks (node:internal/process/task_queues:65:5)

Node.js v22.14.0
PS C:\mboxhome>

I am happy to provide debugging assistance, but will need a lot of guidance.

Thanks
Paul

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