[rt-users] Stripping Attachments During Create

Alex Peters alex at peters.net
Mon Feb 2 15:52:55 EST 2015


Scrips wouldn't help you because they get processed after ticket creation.

If I were in your position I'd probably try dealing with this at the mail
delivery level, e.g. by adding some sort of postprocessor that rewrites
incoming mail when it encounters attachments with certain MD5/SHA checksums.

I imagine that doing this by attachment filename would be a bad idea,
because theoretically desired attachments could have those filenames.

I don't know whether this is technically feasible, but another option might
be to write a script (as opposed to scrip) that prunes matching attachments
from RT's database (which would also take care of tickets created up to
this point).

What is your main concern about these attachments reaching RT?  Database
storage?  UI cosmetics?  Depending on the actual concern, other solutions
might exist.
On 3 Feb 2015 5:16 am, "Trev" <trevor at onepost.net> wrote:

> My situation is this, I have users sending in support requests and they
> are processing just fine. I am using fetchmail and mailgate, no problems,
> tickets get created etc...
>
> I want to strip attachments however, specifically those associated with
> signatures internal to the company.
>
> How can I best go about stripping these?
>
> Preferably based on attachment name:
> image001.png
> image002.png
>
> Thanks in advance!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150203/7afc9d40/attachment.htm>


More information about the rt-users mailing list