This MailMate bundle allows the user to insert text templates into emails. Use cases are for when relatively standard replies are useful. The text templates are simply text or markdown files in a folder hierarchy.
To install this bundle, copy this entire directory to ~/Library/Application Support/MailMate/Bundles/ and relaunch MailMate. Go to the preferences window and check that the bundle is installed and active.
The main command this bundle provides is Insert text template, which can be activated by pressing ⌘-T.
The first time the command is invoked, the user will be prompted to selected a root directory for the templates. (This directory is stored in the file ~/.texttemplate_config.) The user can later change this directory by running the command Change template directory.
When the command is invoked, the user is prompted to choose a text template file (extension should be .txt, .md, or variants, such as .text, .mdown, etc.). The chosen template file will be inserted into the message.
There are two ways the template can be inserted, chosen by running the command Change insertion method:
- Insert at line (the default): the template is inserted at the start of the line where the cursor is. This works by having MailMate save the draft to a file, editing that file, and having MailMate reload it. When replying to an HTML email, MailMate drops the quoted HTML original when it reloads the draft.
- Paste at cursor: the template is copied to the clipboard and pasted at the cursor (the previous clipboard contents are restored afterwards). This keeps the quoted HTML original in replies. It requires giving MailMate Accessibility access in System Settings › Privacy & Security › Accessibility; without it, the template is left on the clipboard for you to paste with ⌘V.
The setting is stored in the bundle's Commands/InsertText.mmCommand file (as the saveForEditing option), so reinstalling the bundle resets it to the default. If the change does not take effect, relaunch MailMate.
Since this bundle was written to give my wife similar functionality as the QuickText Thunderbird Extension, we support replacing the tags that my wife uses, which is currently only [[TO=firstname]] and [[TO=fullname]]. That is, if you use [[TO=firstname]] in the template, it will be replaced with the first name of the To recipient. No additional tags or options are currently supported.
This software is released under the MIT license.
Copyright 2025 Stephen Chong
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.