Is there a way to override Sieve's "not sending notification for auto-submitted message" behavior?

Gedalya gedalya at gedalya.net
Thu May 5 17:33:42 UTC 2016


On 05/05/2016 01:02 PM, deoren wrote:
> On 5/5/2016 10:42 AM, Gedalya wrote:
>> On 05/05/2016 01:00 AM, deoren wrote:
>>> Goal:
>>>
>>> 1) Setup a Google Calendar entry for a biweekly task
>>> 2) Configure the email notification schedule
>>> 3) When the email notification from Google arrives have Sieve send a
>>> notification to an alias I have setup for my cell provider's email to
>>> text messaging gateway
>>> 4) Receive text message
>>>
>>> ...
>>>
>> If you can't do it with dovecot / pigeonhole then consider doing something in the MTA like removing the Auto-Submitted header before delivery
>
> Thank you for taking the time to read my email and offer suggestions!
>
> I was starting to think the same thing. I've been thinking about using a local alias to pipe to a script to handle generating my own notifications for Google Calendar emails. I also thought about creating some sort of filter/milter to just strip out the header for those emails before letting the Sieve filter handle the rest, but I've not yet had a chance to research just how to go about that.
>
>> or of course you can just send your notification out of there.
>
> Like I mentioned above or is there a better way to go about it?
>
>> Which MTA are you using?
>>
>
> I'm using Postfix 2.11.x + Dovecot 2.2.x to handle our mail.
>
> Thanks again for your help!

So yea if you're on postfix I don't know of better/other terms to think of this in.
In exim, you could send out a notification and/or strip/add/modify headers without any external script or writing any "code" per se, just within exim's config file.
Although writing a milter for postfix isn't all that complicated either.
Postfix has [ http://www.postfix.org/header_checks.5.html ], you can use that to remove a header (IGNORE), you just might be able to set that up to test for the right conditions *when* to do this, and then proceed to remove the header. Gotta run now so I can't put more thought into it at the moment but do post if you figure it out :D



More information about the dovecot mailing list