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

Issues with large files within emails #2

Open
dveos opened this issue Jan 15, 2019 · 10 comments
Open

Issues with large files within emails #2

dveos opened this issue Jan 15, 2019 · 10 comments

Comments

@dveos
Copy link

dveos commented Jan 15, 2019

Hi, thank you very much for your work - it's really useful.

I've noticed issues with large emails / emails that include multiple attachments 20mb <

Which causes the script to no longer work. :(

Is there a way to possibly limit the email size the script will examine?

For example, no emails over 5mb ?

Thank you

@MonstaApps
Copy link
Owner

We'll need to do some testing of this, thanks.

@dveos
Copy link
Author

dveos commented Jan 15, 2019

Thank you - if I can help in any way just let me know.

@dveos
Copy link
Author

dveos commented Jan 29, 2019

Hi guys, I have been testing with a specific email that includes approx 28mb of attachments. When I manually invoke the script it seems that it's exhausting available memory and causing a fatal error rather than suspected issues with the script.

@MonstaApps
Copy link
Owner

But you know you can't send more than 20MB of attachments in a single email?

@dveos
Copy link
Author

dveos commented Feb 4, 2019

Hello, that is incorrect unfortunately (I was originally under the same impression).

I have successfully sent and received an email with attachments totalling 28mb both from Webmail, (hosted by Siteground and Sureserver) and Hotmail.

Outlook, gmail etc. do put limits when using their service but I've found on some servers (in particular Sureserver) there is no limit on attachment files sent or recieved.

@dveos
Copy link
Author

dveos commented Feb 6, 2019

Hi I've solved this by adding an attachment size filter. Thank you.

@MonstaApps
Copy link
Owner

Can you please specify? Do you mean it rejects >20MB files?

@dveos
Copy link
Author

dveos commented Feb 10, 2019

So the current codebase gets stuck on emails that have attachments totalling 20mb + (although I havent tested the lower limit of what the script works with) resulting in the script to not complete.

To solve this issue, I've now added in functionality to ignore emails with a total size that exceeds 15mb

@MonstaApps
Copy link
Owner

I'm quite certain that you cannot send more than 20MB of attachments.

@dveos
Copy link
Author

dveos commented May 22, 2019

That's what I thought, but it seems some clients don't limit their emails. For example:-

1: image

2: image

3: image

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

No branches or pull requests

2 participants