dev/core#1270 - fix email processor dropping attachments - ALTERNATE #15438
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This is an alternate to #15344
https://lab.civicrm.org/dev/core/issues/1270
The email processor will drop attachments if there's more in the incoming email than the limit set at system settings - misc. The setting is intended for activity creation in the UI, but shouldn't cause the email processor to drop attachments.
Before
Some attachments can be lost.
After
It files and keeps all the attachments.
Technical Details
Adds a new admin setting for non-UI processes parallel to the existing max_attachments setting which is then only used for UI processes.
Comments
Unfortunately the existing max_attachments setting seems to be in limboland where it currently has a hack, so to add the new setting I copied that. I'm not sure that's desired.
@pfigel