Skip to content

snchong/texttemplate.mmbundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

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.

Use

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 at the line where the cursor is.

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.

License

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.

About

MailMate bundle to insert text templates into emails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published