Re: [MlMt] Quick Reply Bundle

2018-07-16 Thread Padraic Renaghan
Launchbar Actions (which are similar to bundles) have the concept of 
local preferences that the action can interact with. Gives a good way 
for local user customization without changing action/bundle code 
directly.


Happy to discuss more details of how all that works in LB if useful. I 
have many LB actions up on GitHub


https://developer.obdev.at/launchbar-developer-documentation/#/javascript-action

https://github.com/prenagha/launchbar

The entire implementation of actions in LB is great, especially with the 
javascript API and leveraging local mac javascript runtime.


P

2018-07-16 11:06 EDT from Benny Kjær Nielsen:


On 12 Jul 2018, at 4:16, Padraic Renaghan wrote:


MailMate bundle to send quick message replies

https://github.com/prenagha/quick-reply.mmbundle


Thanks for sharing!! It worked in my quick test. It would be very nice 
if this evolves into something more general/configurable. It'll 
probably require some additional features in MailMate, but I would 
naturally be willing to look into that.


--
Benny
https://freron.com/become_a_mailmate_patron/
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate

___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Quick Reply Bundle

2018-07-12 Thread Padraic Renaghan
You need the quick-reply.mmbundle file/directory in that folder. Not it's 
contents directly. 

> On Jul 12, 2018, at 7:29 PM, pleasespa...@posteo.net wrote:
> 
> drwxr-xr-x 8 staff 256 Jul 12 17:17 .
> drwxr-xr-x 20 staff 640 Jul 12 19:28 ..
> -rw-r--r--@ 1 staff 6148 Jul 12 17:17 .DS_Store
> drwxr-xr-x@ 5 staff 160 Jul 11 19:14 Commands
> -rwxr-xr-x@ 1 staff 1210 Jul 11 19:14 LICENSE
> -rwxr-xr-x@ 1 staff 649 Jul 11 19:14 README.md
> drwxr-xr-x@ 4 staff 128 Jul 12 17:13 Support
> -rwxr-xr-x@ 1 staff 238 Jul 11 19:14 info.plist
> 
> On 12 Jul 2018, at 17:26, Padraic Renaghan wrote:
> 
> What is the output of this terminal command:
> 
> ls -al "$HOME/Library/Application Support/MailMate/Bundles/"
> 
> 2018-07-12 17:19 EDT from pleasespa...@posteo.net:
> 
> I think I did something wrong. (Admittedly a novice in this area.) I 
> downloaded the files, created the Bundles folder, dropped the files in there, 
> and restarted MM. I don’t see it in the Command menu.
> 
> On 12 Jul 2018, at 17:10, Padraic Renaghan wrote:
> 
> Download the mmbundle from GitHub
> Move it to ~/Library/Application Support/MailMate/Bundles/
> Restart MM
> Look in Command menu
> 
> 2018-07-12 16:52 EDT from pleasespa...@posteo.net:
> 
> How do I install this?
> 
> On 11 Jul 2018, at 22:16, Padraic Renaghan wrote:
> 
> MailMate bundle to send quick message replies
> 
> https://github.com/prenagha/quick-reply.mmbundle
> 
> Padraic
> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate
> 
> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate
> 
> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate
> 
> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate
> 
> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate
> 
> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Quick Reply Bundle

2018-07-12 Thread Padraic Renaghan
Download the mmbundle from GitHub
Move it to ~/Library/Application Support/MailMate/Bundles/
Restart MM
Look in Command menu

2018-07-12 16:52 EDT from pleasespa...@posteo.net:

> How do I install this?
>
> On 11 Jul 2018, at 22:16, Padraic Renaghan wrote:
>
>> MailMate bundle to send quick message replies
>>
>> https://github.com/prenagha/quick-reply.mmbundle
>>
>> Padraic
>> ___
>> mailmate mailing list
>> mailmate@lists.freron.com
>> https://lists.freron.com/listinfo/mailmate


> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


[MlMt] Snooze Bundle

2018-07-11 Thread Padraic Renaghan
Making good progress, almost working, a few issues working through with Benny.
Feel free to follow along if you like

https://github.com/prenagha/snooze.mmbundle

Thanks,
Padraic
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


[MlMt] Quick Reply Bundle

2018-07-11 Thread Padraic Renaghan
MailMate bundle to send quick message replies

https://github.com/prenagha/quick-reply.mmbundle

Padraic
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] New: Developer documentation for MailMate bundles

2017-12-19 Thread Padraic Renaghan
Automatically sends the unsubscribe email. I think the current one opens the 
unsubscribe email in composer view. But mainly I just wanted to play around 
with building a bundle ;-)


2017-12-19 14:49 EST from Max Rydahl Andersen:

> Cool. How is it different/more automatic from the existing bundled one at 
> https://github.com/mailmate/MailMan.mmBundle ?
>
> /max
> http://about.me/maxandersen
>
>
>> On 19 Dec 2017, at 19:40, Padraic Renaghan <prena...@renaghan.com> wrote:
>>
>> Thanks.
>>
>> Used the documentation and made a more automatic mailing list unsubscribe 
>> bundle.
>>
>> For those interested:
>>
>> https://github.com/prenagha/list-unsubscribe
>>
>> Padraic
>> ___
>> mailmate mailing list
>> mailmate@lists.freron.com
>> https://lists.freron.com/listinfo/mailmate


> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate


smime.p7s
Description: S/MIME digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] New: Developer documentation for MailMate bundles

2017-12-19 Thread Padraic Renaghan

Thanks.

Used the documentation and made a more automatic mailing list 
unsubscribe bundle.


For those interested:

https://github.com/prenagha/list-unsubscribe

Padraic
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Three questions: signature on new email (doesn't work?), quick filters (/a la/ Thunderbird), filter order

2017-06-28 Thread Padraic Renaghan

> 1) signature on new emails: one thing I liked about Thunderbird was that it 
> could auto-insert a signature only to new emails; indeed MailMate claims to 
> support this by:

May want to try: MailMate preferences, Signatures tab, Default signature, New 
Messages Only


smime.p7s
Description: S/MIME digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Inject custom javascript into Message View

2017-06-22 Thread Padraic Renaghan
Thanks Benny for creating the display_html event hook. I have been 
experimenting and have gotten it to work pretty well. Most every message has 
some junk I can now remove, some as many as 8 legal nonsense blocks totaling 
over 8000 characters of junk removed!

I have added the basic framework to my MM GitHub repo. Comments, improvements, 
and other ideas welcome

https://github.com/prenagha/mailmate-resources#custom-html-bundle-to-filter-unwanted-mail-signatures-and-legal-nonsense

Benny, thinking it might be nice to run this filter when the reply to an 
existing message is created, so the reply does carry-forward all the junk. What 
would be the right event to hook my new filter into for that?

Thanks,
Padraic

2017-06-20 13:56 EDT from Padraic Renaghan:

> Sounds good thanks. Eagerly awaiting the next update...
>
> 2017-06-19 08:25 EDT from Benny Kjær Nielsen:
>
>> On 13 Jun 2017, at 16:38, Padraic Renaghan wrote:
>>
>>>> File in the MailMate bundle named `eventFilters.plist`. For experimenting
>>>
>>> Thanks. I will try experimenting. I think I get the basic eventFilter calls 
>>> to bundle via UUID idea. Any help you can provide on what the current 
>>> events mean, or point me to the one I should try hooking up to first would 
>>> be appreciated.
>>
>> There's no really good candidate, but in the next update I've added 
>> `display_html` for you to experiment with. It's used for any message 
>> displayed and both input and output is expected to be HTML.
>>
>> -- 
>> Benny
>
>
>> ___
>> mailmate mailing list
>> mailmate@lists.freron.com
>> https://lists.freron.com/listinfo/mailmate




smime.p7s
Description: S/MIME digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Inject custom javascript into Message View

2017-06-20 Thread Padraic Renaghan
Sounds good thanks. Eagerly awaiting the next update...

2017-06-19 08:25 EDT from Benny Kjær Nielsen:

> On 13 Jun 2017, at 16:38, Padraic Renaghan wrote:
>
>>> File in the MailMate bundle named `eventFilters.plist`. For experimenting
>>
>> Thanks. I will try experimenting. I think I get the basic eventFilter calls 
>> to bundle via UUID idea. Any help you can provide on what the current events 
>> mean, or point me to the one I should try hooking up to first would be 
>> appreciated.
>
> There's no really good candidate, but in the next update I've added 
> `display_html` for you to experiment with. It's used for any message 
> displayed and both input and output is expected to be HTML.
>
> -- 
> Benny


> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate


smime.p7s
Description: S/MIME digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Gravatar in header view and other customizations

2017-06-13 Thread Padraic Renaghan
> can you point me to which part of the file I need to edit

Look from the From header section, you will see two items in it, Name then 
Address. In the address section you will find where it adds the h-hide css 
class if the Name exists. Remove that.
`${from.name:+ h-hide}`

> Which leads me to… do you have plans to incorporate any changes Benny makes 
> to the original file?

Not likely. If there are major changes/improvements I will port those to my 
customized version, which has now even further moved from the defaults (I am 
showing Date and Security and Encrypted all on the From line, to the right of 
the From Name for example).

Mainly an exercise to provide an example to others of ways to customize MM. And 
maybe encourage built-in Gravatar/Domain support ;-)


2017-06-13 21:58 EDT from Charlie Garrison:

> On 14 Jun 2017, at 9:41, Padraic Renaghan wrote:
>
>>> What are you using for user.png?
>>
>> Colored version of
>> http://fontawesome.io/icon/user/
>
> I may be making some assumptions then. Many of the avatars are showing as 
> ‘missing image’ icon. I was assuming that was due me not having a file that 
> matches code like this:
>
> ```
> prefix = { string = " id=\"h-from-img\" class=\"h-img\" onerror=\"imageError(this)\" 
> src=\"file:///Users/me/Library/Application 
> Support/MailMate/Resources/MmMessagesWebView/user.png\"/>  class=\"header_body\">"; };
> ```
>
> I don’t have the file `…/MmMessagesWebView/user.png`, I just assumed that was 
> cause of ‘missing image’ icon. Without the “Show Inspector” functionality, I 
> can’t tell what the missing image is. Can you suggest what I need to do to 
> fix the missing images?
>
> OK, worked it out (sending this reply anyway in case it helps others).
>
> I copied the FontAwesome user icon, pasted into a new file and saved that as 
> user.png. Everything works now.
>
> Strangely though (to me), the user icon shows briefly, and is then replaced 
> with another icon/avatar. I suspect the user.png is a placeholder, and when 
> it can’t be found, no further processing is done to load images. Now that it 
> can be found, processing continues and gravatar/favicon/etc get loaded.
>
> All looks pretty good now. :-)
>
> Another topic…
>
> You removed the display of email address in favour of name-only. I prefer to 
> have both displayed; can you point me to which part of the file I need to 
> edit? I had a look at the headersFormatting.plist file from MailMate’s 
> Layouts dir, but the two files have diverged enough I’m not sure where to 
> look for code to change.
>
> Which leads me to… do you have plans to incorporate any changes Benny makes 
> to the original file?
>
> Or, Benny, any thoughts on incorporating gravatar/user icons into MailMate?
>
> Thanks,
> Charlie
>
> -- 
>
> Charlie Garrison   <char...@garrison.com.au>
> Garrison Computer Services  <http://www.garrison.com.au>
> PO Box 380
> Tumbarumba NSW 2653  Australia
>
> [Conundrum](http://www.ietf.org/rfc/rfc1855.txt)


> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate


smime.p7s
Description: S/MIME digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Inject custom javascript into Message View

2017-06-13 Thread Padraic Renaghan

> File in the MailMate bundle named `eventFilters.plist`. For experimenting

Thanks. I will try experimenting. I think I get the basic eventFilter calls to 
bundle via UUID idea. Any help you can provide on what the current events mean, 
or point me to the one I should try hooking up to first would be appreciated.

> It could be very tricky to identify exactly where the signatures are located.

Yes, I certainly am not going to try to do a generalized signature feature. 
Just routine junk I see all day (from my employer). And do something like:

```start = message.indexOf('start of legal nonsense');
end = message.indexOf(start, 'end of legal nonsense');
if ( (end-start) between (100, 110)) {
  // strip it out
}```



2017-06-13 10:00 EDT from Benny Kjær Nielsen:

> On 13 Jun 2017, at 15:29, Padraic Renaghan wrote:
>
>> Any way to filter the message prior to loading it into the MM Web View?
>
> Kind of...
>
>> Is that what the premailer is about?
>
> Not quite. It's a filter, but premailer is about inlining CSS. This is 
> needed, because HTML really wasn't designed to allow embedding one HTML email 
> within another.
>
>> Can I customize that?
>
> There's a file in the MailMate bundle named `eventFilters.plist`. For 
> experimenting, you can use this to inject your own bundle commands, but 
> there's currently no `html_to_html` event which is kind of what you need. I 
> do think though that what you are trying to do might be harder than you 
> think. It could be very tricky to identify exactly where the signatures are 
> located.
>
> Note that I've played a bit with hiding sections. See `MmShowQuotedTextLimit` 
> in [the 
> manual](https://manual.mailmate-app.com/hidden_preferences#visual-appearance).
>
> -- 
> Benny


> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate


smime.p7s
Description: S/MIME digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Inject custom javascript into Message View

2017-06-13 Thread Padraic Renaghan
Totally understand not wanting to enable javascript in the message view. 
Certainly can't trust senders to run javascript they provide.

Maybe there is another way to do what I am trying to accomplish...

My company adds a ridiculous 20 line legal footer to all emails. Makes reading 
them noisy, especially when a thread gets a few replies, and every reply gets 
another 20 legal footer. So I was going to use javascript to identify those 
blocks and "display:hide" them.

Is there another way to do that?
Any way to filter the message prior to loading it into the MM Web View?
Is that what the premailer is about?
Can I customize that?

Thanks,
Padraic

2017-06-13 05:44 EDT from Benny Kjær Nielsen:

> On 12 Jun 2017, at 18:59, Padraic Renaghan wrote:
>
>> What I'd really like to do is inject javascript. I tried making my own 
>> version of basic.js, but that didn't seem to get injected.
>
> Javascript is currently always disabled for the message view.
>
>> I did it for headers with the headersFormatting.plist using the prefix. This 
>> seems to work well.
>
> The HTML generated for the headers view is under my control and therefore it 
> is safer to allow Javascript.
>
>> Any way to do this for the main message view?
>
> Not currently.
>
>> If not, possible new advanced feature?
>
> Yes, but probably only for non-HTML emails and then I'm not sure it's really 
> useful. I really don't want to go into the problem of sanitizing arbitrary 
> HTML messages.
>
> -- 
> Benny
> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate


smime.p7s
Description: S/MIME digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


[MlMt] Inject custom javascript into Message View

2017-06-12 Thread Padraic Renaghan
Working on customizations to the web view display of messages.
I see how adding my own version of stylesheet.css works, gets inlined into the 
head section after the built-in css file. That seems to work fine.

What I'd really like to do is inject javascript. I tried making my own version 
of basic.js, but that didn't seem to get injected.

I did it for headers with the headersFormatting.plist using the prefix. This 
seems to work well.

Any way to do this for the main message view?

If not, possible new advanced feature?

Thanks,
Padraic



smime.p7s
Description: S/MIME digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Gravatar in header view and other customizations

2017-06-12 Thread Padraic Renaghan
Latest BETA download just came through, #6085, but it doesn't seem to have 
these changes to specifiers.plist.

Seems to be missing from the any-address specifier. As wells as 
address-filters. I guess I was thinking anywhere "from" is in that file, 
"sender" would be as well.

Do I need to do something to enable those?

2017-06-09 03:45 EDT from Benny Kjær Nielsen:

> On 7 Jun 2017, at 16:43, Padraic Renaghan wrote:
>
>> Also is there any way to get the "Sender" header parsed as an address, like 
>> From/To/CC/BCC so that sender.name and sender.address parts can be accessed 
>> in headerFormatting.plist?
>
> Hmm, I'm not sure why it wasn't already part of the list of address related 
> headers in MailMate (this list is in `specifiers.plist`), but I've added it 
> now. It should work in the next update. Just for the record, the header is 
> defined [here](https://tools.ietf.org/html/rfc2822#section-3.6.2), and it 
> always contains a single email address, optionally with a display name and 
> the email address in angle brackets format.
>
> -- 
> Benny


> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate


smime.p7s
Description: S/MIME digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Gravatar in header view and other customizations

2017-06-07 Thread Padraic Renaghan
Also is there any way to get the "Sender" header parsed as an address, like 
From/To/CC/BCC so that sender.name and sender.address parts can be accessed in 
headerFormatting.plist?

2017-06-07 04:35 EDT from Benny Kjær Nielsen:

> On 7 Jun 2017, at 0:35, Padraic Renaghan wrote:
>
>> Thought I'd share my recent MailMate customizations in case anyone is 
>> interested. I went a bit crazy with the avatars, but was fun hacking 
>> nonetheless.
>
> Nice hack :)
>
>> Benny: If you could enable the "Inspect Element" right-click option for the 
>> header Web View that will make it much easier to build and debug stuff like 
>> this.
>
> I've done this for the next update.
>
> -- 
> Benny
> ___
> mailmate mailing list
> mailmate@lists.freron.com
> https://lists.freron.com/listinfo/mailmate


smime.p7s
Description: S/MIME digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] "Junk State = Junk" & "Move to Junk" with one keystroke?

2016-01-16 Thread Padraic Renaghan
You can copy (⌘C) on the mailbox in MailMate and it will copy that 
mailbox's "id" to the clipboard
You can paste that directly into the key bindings file for any action 
you want done in the context of that mailbox


I have found that debugging key bindings can be tricky. If you have a 
syntax error it may not parse the remainder of the file. Best to start 
with one, comment out everything else, test that one, if it works then 
comment out the next one and test and so on.


P

On 16 Jan 2016, at 13:56, Vlad Ghitulescu wrote:


Hello again, Fredrik!


On 16 Jan 2016, at 11:54, Fredrik Jonsson wrote:


Vlad Ghitulescu 2016-01-16 19:39 wrote:

Is there a place in MailMate to do this or is something I do in 
system preferences / Keyboard Maestro?


Custom key bindings is one of MailMates killer features in my 
opinion, everything can be done from the keyboard.


Manual here: 

I have a blog post where you find the keybinding I use at 
.


I’ve read everything, took shamelessly ;-) your .plist-file, 
commented everything and started to test.


No problems at all with:

"n" = "newMessage:";
"m" = "moveToMailbox:";
"j" = ( "markAsJunk:", "moveToJunk:" );
"J" = ( "markAsNotJunk:" );
"g" = "goToMailbox:";

**but** no success (even no reaction at all) with:

"i" = ( "goToMailbox:", "INBOX" );

Perhaps because I have 3 accounts in MailMate (already ;-) and 
correspondently 3 different INBOXes?




Fredrik


Vlad


P.S. 2. question on using the bbedit-command. I’ve started this 
reply in MailMate, switched over to BBEdit with CTRL-CMD-O, finished 
the message, saved and closed - in order to return to MailMate and 
send the message. Is there a way to open the reply **directly** in 
BBEdit (and not first in MailMate)?

___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate

___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate