Modify

Opened 5 years ago

Closed 4 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)

email2trac_ignore_attachments.diff (1.9 KB) - added by anonymous 5 years ago.

Download all attachments as: .zip

Change History (8)

Changed 5 years ago by anonymous

comment:1 Changed 5 years ago by bas

  • Status changed from new to assigned

Thanks for the patch. I will look into it. Are you on gitlab then you can submit a pull request. You can not use:

  • strip_content_types

comment:2 follow-up: Changed 5 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 5 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 5 years ago by rschwartz@…

I get it now. That would probably work for us. Thanks.

comment:5 Changed 5 years ago by bas

Can I close this ticket?

comment:6 Changed 5 years ago by rschwartz@…

No objection here

comment:7 Changed 4 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.