This bundle enhances MailMate to add attachments to DEVONthink (via AppleScript).
Place the bundle in ~/Library/Application Support/MailMate/Bundles. Requires Ruby 2.4+ (macOS includes Ruby 2.6).
Two commands are available:
- Add... (Ctrl+A) - Adds attachments to DEVONthink
- Attachment Rules... (Ctrl+R) - Opens your custom rules file
To automate, add a MailMate rule for your inbox to execute the Add... command.
Your custom rules are stored outside the bundle at:
~/Library/Application Support/MailMate/DEVONthink Attachments Config/rules.rb
This means you can update the bundle without losing your settings. The config file is created automatically when you first run "Attachment Rules...".
Example config (only include what you want to override):
{
rules: {
filename_reject!: /my-custom-pattern|unwanted/i,
},
delete_duplicate_record: true,
move_to_trash: false,
}If upgrading from 0.2.0 or earlier, see UPGRADE.md for migration instructions.
This MailMate bundle is open-sourced software licensed under the MIT license.