Opened 7 years ago
Closed 7 years ago
#379 closed enhancement (fixed)
Ignoring Attachments by Filename
Reported by: | rschwartz@… | Owned by: | bas |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | email2trac | Version: | 2.6.0 |
Keywords: | Cc: |
Description
In our environment we had the need to block a specific attachment. I didn't see the ability to do it with existing config so I wrote a customization. Sending it along in case it might be useful to others.
Note that our environment is a bit older. As such this patch was taken against [615].
This adds a parameter to the config file. It is a comma-separated list of filenames to ignore. Could easily be converted to regex.
ignored_attachments: badfile.zip
Attachments (1)
Change History (8)
Changed 7 years ago by anonymous
comment:1 Changed 7 years ago by bas
- Status changed from new to assigned
comment:2 follow-up: ↓ 3 Changed 7 years ago by rschwartz@…
Not on gitlab. Don't usually do much customizing. I don't understand your above reference to strip_content_types.
comment:3 in reply to: ↑ 2 Changed 7 years ago by bas
Replying to rschwartz@…:
Not on gitlab. Don't usually do much customizing. I don't understand your above reference to strip_content_types.
With this you can drop attachements of cartain type:
comment:4 Changed 7 years ago by rschwartz@…
I get it now. That would probably work for us. Thanks.
comment:5 Changed 7 years ago by bas
Can I close this ticket?
comment:6 Changed 7 years ago by rschwartz@…
No objection here
comment:7 Changed 7 years ago by bas
- Resolution set to fixed
- Status changed from assigned to closed
Thanks for the patch. I will look into it. Are you on gitlab then you can submit a pull request. You can not use: