#200 ✓fixreleased

scripts or shortcuts ?

Reported by sergio | December 12th, 2011 @ 03:04 PM

Hi Benny,

I'm new on MailMate and maybe my request is a noob request... I would like to use Keyboard Shortcuts to execute more then one command to be able to customize the replay with stationery or draft.

Something like this:

"1" = { "reply:" ; "insertText:", "Thanks for writing %n,....." ); }

The best will be using 'wild card' to replace special chars (for example %n = name, %d = current date etc etc.."

Is it possible ?

I'm new on MailMate but I believe it! :D


Comments and changes to this ticket

  • benny

    benny December 12th, 2011 @ 07:42 PM

    • Assigned user set to “benny”
    • State changed from “new” to “accepted”

    No, that is not currently possible. I guess I could make an alternative insertFormatString: to do something like what you need, but I'm not sure I like that. A better and more general solution is needed. Some of the pieces exist, but not all of them. It is currently possible to filter messages through scripts when displaying or replying to a message (experimental feature), but it is not yet clear how values from the message (like name) should be retrieved (probably the RESTful experimental interface). And in this case, there is also the problem of handling the insertion point before/after the change.

    Well, I guess one does not rule out the other. I'll consider an insertFormatString: feature since it seems that is all you need.

    Any progress on being able to do what you want (in any way) is tracked by this ticket.

    Thanks for believing in MailMate :-)

  • benny

    benny December 12th, 2011 @ 08:21 PM

    • State changed from “accepted” to “fixcommitted”

    Ok, I added insertFormatString. It was less than 10 lines of trivial code, so I'll give it a chance. Although I guess I'll now be forced to support the feature forever (or at least until an alternative exists) :-)

    In the next update of MailMate, you can do:

    "x" = ( "reply:", "insertFormatString:", "Hi ${from.name.first},\n\n");

    The format string format is currently not documented, but it is quite powerful. For now, you'll have to ask me.

    You can download a beta here.

  • sergio

    sergio December 12th, 2011 @ 09:02 PM

    Thanks Benny!!

    I will try it soon! You are great! If you are so fast... I can continue on my requests :D I'm testing MailMate becouse I want to move a client of mine (I'm a web designer) to MailMate. My client use alot the 'stationery' on Eudora, he is moving to Mail but I think it is not the right choice...

    He is an ecommerce website and will be very powerfull to be able to reply with "draft" quickly... for this reason I tryed to create custom shortcuts. I attach an image to explain the elegant version of what I really need...

    It will be a great tool to the customercare!!!

  • sergio

    sergio December 12th, 2011 @ 10:38 PM

    Just a note Benny,

    I have tryed it using 2637

    "x" = ( "reply:", "insertFormatString:", "Hi ${from.name.first},\n\n");

    but it replay only... with standard text, without add my string. Have I wrong something ?

  • benny

    benny December 13th, 2011 @ 08:02 AM

    That was strange. I retried it just now and I had no problems. Try sending me any files you have in:

    ~/Library/Application Support/MailMate/Resources/KeyBindings/

    You can use the “Help ▸ Send Feedback...” menu item.

    Also include the result of the following command:

    defaults read com.freron.MailMate MmCustomKeyBindingsName

    Thanks for the image. I'll note the request for some kind of template support, but it may not be implemented as you suggested.

  • benny

    benny December 22nd, 2011 @ 01:10 PM

    • State changed from “fixcommitted” to “fixreleased”
  • Dries

    Dries March 13th, 2015 @ 05:45 AM

    Hi Benny,

    I've tried the below and it's not working for me. Version 1.9 (5067)

    "x" = ( "reply:", "insertFormatString:", "Hi ${from.name.first},\n\n");

    The reply happens, but no text gets inserted. I've checked and it's calling the correct keybindings

  • benny

    benny March 13th, 2015 @ 05:22 PM

    It appears this functionality has been broken for quite some time. I've fixed it for the next update. That'll be r5074+ (not released yet).

    Thanks for letting me know. (This whole issue should be solved much better though.)

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket