Closed pomeloy closed 2 months ago
Does ?overflow=truncate
not accomplish this?
I totally overlooked that option. Still, it does not accomplish this because overflow only gets applied to the title and body of a given message right now while I need to limit the attachment count.
While using the overflow option for this feature request might be the best way to implement this, I am struggling to find a way to make this work with the SPLIT overflow option as is right now as I am not sure what a split message should look like when both body and attachment count are too high for a given notification service.
Also, I haven't had the time to manually check which notification providers apart from Pushover do support attachments while allowing to send only one at a time so I don't know whether a plugin-agnostic way is really needed.
I think overflow should be updated to handle this (more globally) and to your point, there is a use case to not spam messages on a per notification basis
Edit: I can have a look this weekend. I think the fix to this is to just make the overflow directive available (like the secure and timeout options already are). That way it can be referenced. Split and upstream settings would simply be treated the same.
Description:
Related issue (if applicable): #1091
Checklist
flake8
)Testing
Anyone can help test this source code as follows: