Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Feature request: Apple-/Shell-Script action for rules

#1232

I would like to run script files as an action for folder rules. One example is auto answering mails dropped into a specific folder.

Reported by Mike · August 13th, 2015 @ 11:10 AM

State: accepted
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny
    • State changed from new to accepted

    It's kind of already possible low-level, but it's very undocumented and probably also not a stable feature. It's certainly an accepted feature request though.

    To provide a bit more detail: There is a “Run Script” rule command already (soon to be renamed “Run Command”). This runs a bundle command, that is, a command residing in one of the enabled bundles. It is possible to create your own bundle with such a command and it is possible to let such a command return instructions to MailMate about creating a reply (or a new message) and, optionally, send it. The problem is that this is very cumbersome. I'm still considering how to improve it.

    August 13th, 2015 @ 11:52 AM

  2. Mike
    Mike

    Is there a (rudimentary) description how to make a bundle? What is the file format of the mmCommand files?

    August 13th, 2015 @ 03:59 PM

  3. benny
    benny

    No, the best “documentation” is the existing bundles. New UUIDs should be generated using the uuidgen command. There is also a few specific details in this thread. That's the best I can offer for now.

    For your particular purpose I think the ideal solution would be if MailMate made it possible to introduce new action types for mailbox rules. For example, you could define an “Auto Reply” action which takes a file as an argument. This file should be an email draft which would work as a template for the generated reply (and such a template could be created within MailMate itself).

    August 17th, 2015 @ 12:44 PM

  4. Mike
    Mike

    I think it would be easier to have the ability to launch a simple script too. In many cases it would probably to complex in relation to the script to develop a bundle for each case. In case of the automatic answers it would probably easier with a simple script.

    August 19th, 2015 @ 11:05 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.