Closed ohwgiles closed 4 years ago
There are several such limits, and I think exposing them all would be overkill. Given the verbosity of the error message, I think finding and changing the limit is not significantly more difficult than modifying a compile time option, for users who are so inclined. Just my 2c.
Btw maybe the limit should just be increased? It’s not hard and fast, just a soft trade off between convenience and risk of memory exhaustion attacks - all these limits were introduced in response to CVEs, if you’re interested you should find the details in the git history
Does anyone have an email client that allows 500MB attachments? I thought most of them stopped around 20-50MB.
I'm afraid that by the facts, attachments' max size in emails is not really about the MUAs but the MTAs or the mail servers themselves. https://en.wikipedia.org/wiki/Email_attachment
client, server..t he line gets so fuzzy these days with all the web providers. I was looking at this : https://www.outlook-apps.com/maximum-email-size/ ... I get for custom MTA's people can set whatever limits they want, but if they can configure sendmail they can probably recompile ytnef :)
That said, take a look at #79 where I added a commandline argument & struct parameter for the maximum attachment size in MB.
Resolved via #79
Wouldn't it be better to make this a compile time option in case someone needs even more? Knowing users there's probably someone who needs it...