Re: [MlMt] Keystroke for "Load Once"?

2019-03-16 Thread Annamarie Pluhar
Thank you Sherif. I kind thought it might be a key binding but I’m 
stuck… (not a coder but on computers since the dark ages of floppy 
disks so file management is comfortable)


According to the documentation:

“It is also possible to create new key bindings files in the following 
folder location:


~/Library/Application Support/MailMate/Resources/KeyBindings/
If you create a file named Special.plist then you need to add Special to 
the comma-separated list of names in the Preferences, for example, 
Gmail, Special.”


But I don’t have a “Resources” folder … Unless it is hidden and 
I have to use Terminal - in which case I’m in over my head. It is not 
clear to me if I would create a new file inside KeyBindings or add that 
line of code to the file “Key Bindings” if I could find it.


Would love to understand this.

Thanks


Annamarie Pluhar
802-451-1941
802-579-5975 (iPhone - not good when I'm at my desk.)

On 15 Mar 2019, at 13:39, Sherif Soliman wrote:


On 15 Mar 2019, at 4:49, Annamarie Pluhar wrote:


Hi all

Last time I asked for a keystroke it turned out that it was obvious 
so I’m going to ask for another. Is there one for “Load Once” 
to get the images that are embedded in an email to load? OR a 
preference I’ve missed OR??


Thanks.

Annamarie Pluhar


I don't know if there is a pre-existing keystroke for it, but I have 
the Load Once action bound to "L" (Shift + l) in my [MailMate 
keybindings](https://manual.mailmate-app.com/custom_key_bindings) 
file:



"L" = "loadImagesOnce:";

It works as you would expect - loads the images in an email you're 
already viewing, but the next message you open will not have its 
images/external references loaded until you invoke Shift + l again. 
Hope this helps.


Sherif




___
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] Gravatar-hack for MailMate

2019-03-16 Thread Aslak Raanes

On 3 Mar 2019, at 12:22, Benny Kjær Nielsen wrote:

(But [libravatar.org] appears to be slower which emphasizes that 
MailMate does not cache these images.)


It might be because  [didn't provide 
`Cache-Control`](https://git.linux-kernel.at/oliver/ivatar/issues/50) at 
that point?


Is there a way for getting all the "Not Junk" mail adresses from 
MailMate?


Anyway, here is one script for making a `RewriteMap` that your local 
Apache can use for a caching reverse proxy.


(Only needs `pip install pylibravatar py3dns requests furl` if I recall 
correctly)


```python
#!/usr/bin/env python3
import libravatar
import requests
from furl import furl
import os
import sys
import argparse

p = argparse.ArgumentParser()
p.add_argument(
"-i",
"--infile",
type=argparse.FileType("r"),
default=sys.stdin,
help="Input one email adress pr line",
)
p.add_argument(
"-o",
"--outfile",
type=argparse.FileType("w"),
default=sys.stdout,
help="Output result fitting for a Apache RewriteMap",
)
a = p.parse_args()


for em in a.infile.read().splitlines():
# Get libravatar_url, default to 404 with added query for
# not using gravatarproxy and redirect if no libravatar
# au = avatarurl
try:
au = furl(
libravatar.libravatar_url(
email=em, https=True, default="404"
)
).add(args={"gravatarproxy": "n", "gravatarredirect": "n"})
ah = libravatar.parse_user_identity(email=em, openid=None)[0]
except Exception:
pass

# Follow redirects
aur = requests.head(au.url, allow_redirects=True)

# If no libravatar, check if a gravatar exist
if aur.status_code == 404:
au = furl("https://www.gravatar.com/avatar/";).add(
path=ah, args={"d": "404"}
)
aur = requests.head(au, allow_redirects=True)

# If http = 200, (not e.g. 404) output result
if aur.status_code == 200:
# Remove query
au = furl(aur.url).remove(query=True).url
# Output result fitting for
# 


# -> mailmd5hash avatarurl # mail
a.outfile.write(" ".join([ah, au]) + " # " + em + os.linesep)
```






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


Re: [MlMt] Keystroke for "Load Once"?

2019-03-16 Thread Sherif Soliman

Hi Annamarie,

You're right about the location. And I believe that unless you created 
it yourself in the past, there is no pre-existing Resources folder or 
any keybindings file in that location.


If you don't see a Resources folder when you get to 
`~/Library/Application Support/MailMate/` then you should create it, and 
create a KeyBindings folder within Resources. In the KeyBindings folder 
you can create the `Special.plist` file, or you can name it whatever you 
like as long as the extension is `.plist`.


For the functionality you asked about, the contents of the file would be 
this:


{
"L" = "loadImagesOnce:";
}


Then follow the instructions in the MailMate manual link I included 
below, especially the paragraph that begins with "You can enable these 
key bindings in the Preferences (General pane)." I think you used to 
have to restart MailMate for the keybindings to take effects, that may 
or may not still be the case.


Does that work?

Sherif


On 16 Mar 2019, at 4:54, Annamarie Pluhar wrote:

Thank you Sherif. I kind thought it might be a key binding but I’m 
stuck… (not a coder but on computers since the dark ages of floppy 
disks so file management is comfortable)


According to the documentation:

“It is also possible to create new key bindings files in the 
following folder location:


~/Library/Application Support/MailMate/Resources/KeyBindings/
If you create a file named Special.plist then you need to add Special 
to the comma-separated list of names in the Preferences, for example, 
Gmail, Special.”


But I don’t have a “Resources” folder … Unless it is hidden 
and I have to use Terminal - in which case I’m in over my head. It 
is not clear to me if I would create a new file inside KeyBindings or 
add that line of code to the file “Key Bindings” if I could find 
it.


Would love to understand this.

Thanks


Annamarie Pluhar
802-451-1941
802-579-5975 (iPhone - not good when I'm at my desk.)

On 15 Mar 2019, at 13:39, Sherif Soliman wrote:


On 15 Mar 2019, at 4:49, Annamarie Pluhar wrote:


Hi all

Last time I asked for a keystroke it turned out that it was obvious 
so I’m going to ask for another. Is there one for “Load Once” 
to get the images that are embedded in an email to load? OR a 
preference I’ve missed OR??


Thanks.

Annamarie Pluhar


I don't know if there is a pre-existing keystroke for it, but I have 
the Load Once action bound to "L" (Shift + l) in my [MailMate 
keybindings](https://manual.mailmate-app.com/custom_key_bindings) 
file:



"L" = "loadImagesOnce:";

It works as you would expect - loads the images in an email you're 
already viewing, but the next message you open will not have its 
images/external references loaded until you invoke Shift + l again. 
Hope this helps.


Sherif




___
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] Searching for text of URL links

2019-03-16 Thread Dave C
...
> Also search indexing software is likely to drop any markup. So if the URL is 
> an HTML link rather than actually in the text of the message, it may not be 
> indexed (or searchable) at all.
> 
>- Chris


Thank you Chris for the education. Very informative.

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


[MlMt] Trouble with moving files

2019-03-16 Thread Brenda Bell
I’m still working out the kinks on my new install. On my old MacBook, 
I used to use Cmd-Opt-T to move a message to another folder. If it 
matters, it’s usually a subscribed (shared) IMAP folder.


On my new MacBook, the same sequence makes a copy… i.e., I have a copy 
in the shared folder and the original is still in the source mailbox.


I don’t recall having to do anything special to get move behavior on 
my old MacBook. What am I missing?


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


Re: [MlMt] Keystroke for "Load Once"?

2019-03-16 Thread Annamarie Pluhar
YEAH!  Thank you. I’ve learned SO MUCH more about key bindings.. I 
could go a little nuts. I **Finally** understand the documentation. 
Correction to what you sent,  I needed to also have a folder inside 
“Resources” that was “KeyBindings” .


So happy - this comes in the middle of fighting with website development 
and not understanding that… and now I can load the pics easily on one 
newsletter I get. : )


Many thanks!
Annamarie

Annamarie Pluhar
802-451-1941
802-579-5975 (iPhone - not good when I'm at my desk.)

On 16 Mar 2019, at 10:42, Sherif Soliman wrote:


Hi Annamarie,

You're right about the location. And I believe that unless you created 
it yourself in the past, there is no pre-existing Resources folder or 
any keybindings file in that location.


If you don't see a Resources folder when you get to 
`~/Library/Application Support/MailMate/` then you should create it, 
and create a KeyBindings folder within Resources. In the KeyBindings 
folder you can create the `Special.plist` file, or you can name it 
whatever you like as long as the extension is `.plist`.


For the functionality you asked about, the contents of the file would 
be this:


{
"L" = "loadImagesOnce:";
}


Then follow the instructions in the MailMate manual link I included 
below, especially the paragraph that begins with "You can enable these 
key bindings in the Preferences (General pane)." I think you used to 
have to restart MailMate for the keybindings to take effects, that may 
or may not still be the case.


Does that work?

Sherif


On 16 Mar 2019, at 4:54, Annamarie Pluhar wrote:

Thank you Sherif. I kind thought it might be a key binding but I’m 
stuck… (not a coder but on computers since the dark ages of floppy 
disks so file management is comfortable)


According to the documentation:

“It is also possible to create new key bindings files in the 
following folder location:


~/Library/Application Support/MailMate/Resources/KeyBindings/
If you create a file named Special.plist then you need to add Special 
to the comma-separated list of names in the Preferences, for example, 
Gmail, Special.”


But I don’t have a “Resources” folder … Unless it is hidden 
and I have to use Terminal - in which case I’m in over my head. It 
is not clear to me if I would create a new file inside KeyBindings or 
add that line of code to the file “Key Bindings” if I could find 
it.


Would love to understand this.

Thanks


Annamarie Pluhar
802-451-1941
802-579-5975 (iPhone - not good when I'm at my desk.)

On 15 Mar 2019, at 13:39, Sherif Soliman wrote:


On 15 Mar 2019, at 4:49, Annamarie Pluhar wrote:


Hi all

Last time I asked for a keystroke it turned out that it was obvious 
so I’m going to ask for another. Is there one for “Load Once” 
to get the images that are embedded in an email to load? OR a 
preference I’ve missed OR??


Thanks.

Annamarie Pluhar


I don't know if there is a pre-existing keystroke for it, but I have 
the Load Once action bound to "L" (Shift + l) in my [MailMate 
keybindings](https://manual.mailmate-app.com/custom_key_bindings) 
file:



"L" = "loadImagesOnce:";

It works as you would expect - loads the images in an email you're 
already viewing, but the next message you open will not have its 
images/external references loaded until you invoke Shift + l again. 
Hope this helps.


Sherif




___
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