Tellier Benoit created MAILET-159:

             Summary: RemoveHeaderByPrefix mailet + HasHeaderWithPrefix matcher
                 Key: MAILET-159
             Project: James Mailet
          Issue Type: Bug
          Components: Base Mailets
    Affects Versions: master
            Reporter: Tellier Benoit
             Fix For: master

We, at Linagora, use Headers to pass information from James to other 
subsystems. Such example can be found as the ICALToHeader mailet.

However, this introduces a vulnerability: someone can send a mail with these 
headers, and pretend some processing happened in our James instance. To avoid 
this, we strip such header. 

But every time we add a new header, we need to add a new RemoveMimeHeader 
Mailet parameter from stripping. This is error prone.

We would like the removal to be doable by prefix: this way, if all of our 
specific share a common prefix, we don't need to review configuration every 
time we add a feature. 

 - RemoveHeaderByPrefix allow removal of you prefixed header
 - HasHeaderWithPrefix allow you to report emails using your internals prefix, 
to potentially take further actions

This message was sent by Atlassian JIRA

Reply via email to