Skip to content

MBOX file size limit? #2

@ThinkMaize

Description

@ThinkMaize

I am trying to use this scrip to extract all of attachments from an MBOX, file, and I keep receiving an error. I can't seem to figure out what is triggering the error, so I was just wondering if it might be that my MBOX file is too large. It's about 17gb. Here's my command prompt output (your script is mbox.py):

C:\Users\Alex\Desktop\Email Attachments>python mbox.py mail.mbox
Extract attachments from mbox files
Copyright (C) 2012 Pablo Castellano
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain cond
itions.

Attachment found!
Extracting down_arrow.png (2799 bytes)

Attachment found!
Extracting profilephoto.png (1286 bytes)

Attachment found!
Extracting windows.png (1692 bytes)

Attachment found!
Extracting keyhole.png (4422 bytes)

Attachment found!
Extracting google_logo.png (12199 bytes)

Attachment found!
Extracting 2015_04_23_10:48.csv (3660265 bytes)

Attachment found!
Extracting 2015_04_23_11:18.csv (3660737 bytes)

Attachment found!
Extracting 2015_04_23_11:48.csv (3661510 bytes)

Attachment found!
Traceback (most recent call last):
File "mbox.py", line 164, in
extract_attachment(payl)
File "mbox.py", line 77, in extract_attachment
content = base64.decodestring(content)
File "C:\Python27\lib\base64.py", line 321, in decodestring
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding

C:\Users\Alex\Desktop\Email Attachments>

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