├── Commands └── Add.mmCommand ├── README.mdown ├── Support └── bin │ └── add └── info.plist /Commands/Add.mmCommand: -------------------------------------------------------------------------------- 1 | { 2 | name = 'Add...'; 3 | input = 'raw'; 4 | environment = 'MM_SUBJECT=${subject.prefix:+${subject.prefix} }${subject.blob:+[${subject.blob}] }${subject.body:no subject}\nMM_MESSAGE_ID=${message-id.split}\n'; 5 | command = '#!/bin/bash\n"${MM_BUNDLE_SUPPORT}/bin/add"'; 6 | keyEquivalent = "^A"; 7 | uuid = 'CD68E028-9ED9-4B26-988E-D57B955A79F3'; 8 | } 9 | -------------------------------------------------------------------------------- /README.mdown: -------------------------------------------------------------------------------- 1 | # Installation 2 | 3 | You can install this bundle in MailMate by opening the preferences and going to the bundles tab. After installation it will be automatically updated for you. 4 | 5 | # License 6 | 7 | If not otherwise specified (see below), files in this repository fall under the following license: 8 | 9 | Permission to copy, use, modify, sell and distribute this 10 | software is granted. This software is provided "as is" without 11 | express or implied warranty, and with no claim as to its 12 | suitability for any purpose. 13 | 14 | An exception is made for files in readable text which contain their own license information, or files where an accompanying file exists (in the same directory) with a “-license” suffix added to the base-name name of the original file, and an extension of txt, html, or similar. -------------------------------------------------------------------------------- /Support/bin/add: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | tmpfile="$TMPDIR/8D444CFE-C1F9-4F82-AD8B-4EA7EC7A77C2.eml" 4 | cat > "${tmpfile}" 5 | 6 | # Tricky substitution to make it work for " and \ in the AppleScript below. 7 | name=${MM_SUBJECT//\\/\\\\} 8 | name=${name//\"/\\\"} 9 | url="message://%3c${MM_MESSAGE_ID}%3e" 10 | 11 | osascript < 2 | 3 | 4 | 5 | contactEmailRot13 6 | zz-ohaqyrf@sereba.pbz 7 | contactName 8 | Benny Kjær Nielsen 9 | description 10 | Archive emails in DEVONthink Pro. 11 | name 12 | DEVONthink Pro 13 | uuid 14 | C0AAFCE0-ECEB-46CF-941E-0AE2C406B5EA 15 | 16 | 17 | --------------------------------------------------------------------------------