[MlMt] Spurious newlines in copied text

2022-09-02 Thread Thomas Kahle
Hi,

When I select and copy a block of text that contains line breaks from a mail,
and then paste it somewhere else the line breaks double and become empty lines.
Is this a bug or am I doing it wrong?

For your convenience I entered some line breaks in the three lines above.  So 
when you read this mail, try to copy the three lines above somewhere.  For me 
the result is this:

```
When I select and copy a block of text that contains line breaks from a mail,

and then paste it somewhere else the line breaks double and become empty lines.

Is this a bug or am I doing it wrong?
```

This does not happen in the editor window or somewhere else, just when I copy 
from mails that MailMate displays.  I’m on version 5914.

Cheers,
Thomas



--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] migrating from apple mail to mail mate - prospective user

2022-02-06 Thread Thomas Kahle


On 7 Feb 2022, at 7:50, Fredrik Jonsson wrote:

> mailmate--- via mailmate 2022-02-07 1:33 wrote:
>
>> The secure way would be to run a real IMAP server on your machine, to which 
>> MailMate can connect locally. I haven’t tried myself, but running 
>> [Dovecot](https://www.dovecot.org/) in a container should work.
>
> I have done this for many years. If you are comfortable with running your own 
> services it works really well.
>
> Here is an old, but updated, post on how to set it up on macOS. I'm running 
> this setup on macOS Monterey 12.2 at the moment.
>
> <https://xdeb.org/post/2014/running-dovecot-as-a-local-only-imap-server-on-os-x/>

Not having local folders is basically the last ‘issue’ that I have with 
MailMate.

The local IMAP server solution is conceptually nice, but be prepared, your 
whole Mail archive will be stored twice locally.  Once where dovecot stores it 
and then Mailmate ‘downloads’ a local copy and stores it all again.

It’s probably better (also from a backup perspective) to put the archive on an 
IMAP server on some other computer (i.e. ‘the cloud’).

Cheers,
Thomas

--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Note that the SHA1 hash...

2021-03-01 Thread Thomas Kahle
Hi,

On 2 Mar 2021, at 0:45, Matthias Schmidt via mailmate wrote:
>> On 1 Mar 2021, at 16:57, Matthias Schmidt via mailmate wrote:
>>>> Hi do you use PGP for signing or encrypting mail?  Some time back I had to 
>>>> update my ~/.gnupg/gpg.conf file with this line:
>>>>
>>>> personal-digest-preferences SHA512 SHA384 SHA256 SHA224
>>>>
>>>> ...to stop MailMate complaining about SHA1 digests.
>>>
>>> still not working, now I get this message:
>>> Risk analysis   The hash function used for the message digest has been 
>>> obsoleted due to security concerns. You should change your OpenPGP settings 
>>> to use a stronger hash algorithm for the digest (such as SHA256).
>>
>> I use these three:
>>
>> cert-digest-algo SHA512
>> default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 
>> ZLIB BZIP2 ZIP Uncompressed
>> personal-digest-preferences SHA512 SHA384 SHA256 SHA224
>>
>> I think the first might be what you are looking for.
>
> I have 2 gpg.conf files:
> one here:  ~/.gnupg/gpg.conf
> and the othere here: /usr/local/MacGPG2/etc/skel/.gnupg/gpg.conf
>
> I added those lines above in both config files, as it is not clear to me 
> which one is used.
> BUT, I still get this signing Alert The hash function used …
> More ideas how to remove this SHA1 hash please?
>

Are you on the latest version of MacGPG?  You can get info on the command line 
with

gpg --version

It will at least show you which config file directory it is looking in.  
Usually it should be ~/.gnupg/gpg.conf.

I’m not sure how to continue.  When exactly does the message occur?  When you 
sign something?

Also you wrote
> My keys are set to DSA or RSA
> How can I fix this?

I’m unsure what this means.  You can see which keys you have with

gpg --list-secret-keys

If you rely on 1024 bit DSA keys, it might be time to move to longer keys, but 
I’m not sure if using a 1024 bit key generates any warnings on gpg and if so, 
starting with which version.

> btw, this appeared after upgrading to BigSur.

Did you also update GPGSuite?  I’m using MacGPG 2.2.20 from GPG Suite 2020.2.

Cheers,
Thomas


--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Note that the SHA1 hash...

2021-03-01 Thread Thomas Kahle
Hi,


On 1 Mar 2021, at 16:57, Matthias Schmidt via mailmate wrote:
>> Hi do you use PGP for signing or encrypting mail?  Some time back I had to 
>> update my ~/.gnupg/gpg.conf file with this line:
>>
>> personal-digest-preferences SHA512 SHA384 SHA256 SHA224
>>
>> ...to stop MailMate complaining about SHA1 digests.
>
> still not working, now I get this message:
> Risk analysis The hash function used for the message digest has been 
> obsoleted due to security concerns. You should change your OpenPGP settings 
> to use a stronger hash algorithm for the digest (such as SHA256).

I use these three:

cert-digest-algo SHA512
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 
ZLIB BZIP2 ZIP Uncompressed
personal-digest-preferences SHA512 SHA384 SHA256 SHA224

I think the first might be what you are looking for.

Best,
Thomas

--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Key Bindings for Smart Folder

2021-02-24 Thread Thomas Kahle
On 24 Feb 2021, at 19:52, Todd Singletary wrote:

> I have a smart folder that contains all unread messages. It is titled 
> “Unread.” I have tried to create a keybinding to access it like the other 
> gmail custom key bindings (e.g. g + u, for unread). The syntax is the same in 
> the .plist file, but it is not working. I’m sure I’m missing something simple 
> and would greatly appreciate any help.
>

It’s working just great here.  Also marking all of them as read, going to 
INBOX, etc.

Have you followed https://manual.mailmate-app.com/custom_key_bindings in 
detail, e.g. have you set your file under Preferences->General ?

```
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.
```

Cheers,
Thomas

--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Syncing settings between machines?

2021-02-04 Thread Thomas Kahle
For what it’s worth, [mackup](https://github.com/lra/mackup) has rudimentary 
support for MailMate.  Of course all the discussion with race conditions still 
applies.

Cheers,
Thomas

On 3 Feb 2021, at 6:51, Nicholas Vahalik wrote:

>> Rules that take actions on messages are especially problematic to have on 
>> more than one machine. If both machines are on and watching the same IMAP 
>> account(s) with the same Smart Mailboxes using the same rules, you can get 
>> race conditions.
>
> Ah. I could see the issue with this. I don’t use this feature. My Smart 
> Mailboxes are filter/visibility only.
>
>> Yes, although you may not like it and I don't recommend it. You must have 
>> the same IMAP accounts configured on both machines.
>>
>> 1. Quit MM on both machines
>> 2. Copy all /Users/dad/Library/ApplicationSupport/MailMate/*.plist files 
>> from the machine whose config you want to keep to the other machine.
>> 3. Repeat every time you want to switch machines.
>>
>> Simple, yes?
>
> Perfect.
>
> On 2 Feb 2021, at 22:05, Bill Cole wrote:
>
>> On 2 Feb 2021, at 21:43, Nicholas Vahalik wrote:
>>
>>> Apologies if this has been addressed elsewhere.
>>
>> It has been discussed here before. Here are two of the times that it has 
>> come up:
>>
>> https://mailmate.freron.narkive.com/C29rlbuH/mlmt-sync-mailmate-settings
>> https://mailmate.freron.narkive.com/14k120v0/mlmt-syncing-mailboxes#post4
>>
>> There is also a long-standing ticket: 
>> https://freron.lighthouseapp.com/projects/58672/tickets/430
>>
>>> I’d really like to be able to sync up my Smart Mailbox configuration 
>>> between machines. This is especially painful when the Smart Mailbox rules 
>>> can take several minutes to build.
>>
>> Rules that take actions on messages are especially problematic to have on 
>> more than one machine. If both machines are on and watching the same IMAP 
>> account(s) with the same Smart Mailboxes using the same rules, you can get 
>> race conditions.
>>
>> I have a chronic problem of IMAP sessions going into an infinite loop which 
>> may be caused by this but which is quite hard to diagnose in depth because 
>> of the volume of logs produced. See 
>> https://freron.lighthouseapp.com/projects/58672-mailmate/tickets/1491 for 
>> details.
>>
>>> Is there a simple way to keep that configuration in sync between machines?
>>
>> Yes, although you may not like it and I don't recommend it. You must have 
>> the same IMAP accounts configured on both machines.
>>
>> 1. Quit MM on both machines
>> 2. Copy all /Users/dad/Library/ApplicationSupport/MailMate/*.plist files 
>> from the machine whose config you want to keep to the other machine.
>> 3. Repeat every time you want to switch machines.
>>
>> Simple, yes?
>>
>>> A shell-script ssh/scp/rsync setup would be OK as well.
>>
>> The above steps should be fairly simple to turn into a shell script, given 
>> mutual trust between the 2 machines.
>>
>> If you do this, it is best to only ever have MM up on one of the machines.
>>
>> An alternative approach (which I use) is to do the above steps once, and 
>> then remove all rules from all mailboxes (including both "Smart" and 
>> "Source" mailboxes) on the machine that is more frequently offline. I did 
>> this to avoid races and so I can leave the desktop instance running all of 
>> the time, doing all of the automation (e.g. rules that move new messages to 
>> the appropriate mailbox as they arrive.)
>>
>> -- 
>> Bill Cole
>> b...@scconsult.com or billc...@apache.org
>> (AKA @grumpybozo and many *@billmail.scconsult.com addresses)
>> Not Currently Available For Hire
>> ___
>> 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

--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] S/MIME and OpenPGP issues

2021-01-05 Thread Thomas Kahle
Hi,

On 5 Jan 2021, at 17:35, Sebastian Hagedorn wrote:

> The hash function used for the message digest has been obsoleted due to 
> security concerns. You should change your OpenPGP settings to use a stronger 
> hash algorithm for the digest (such as SHA256).
>
> Do you know off-hand how I can do that?

I use this in gpg.conf:

```
cert-digest-algo SHA512
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 
ZLIB BZIP2 ZIP Uncompressed
personal-digest-preferences SHA512 SHA384 SHA256 SHA224
```

Cheers,
Thomas

--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] S/MIME and OpenPGP issues

2021-01-05 Thread Thomas Kahle
Hi,

Why not set

pinentry-program 
/usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac

in gpg-agent.conf?

In both of your files there are things with ‘pinentry loopback’.  I don’t know 
what it is, but maybe the first step would be to have a pinentry program 
actually pop-up?  I don’t know what loopback refers to, but I would start to 
investigate there.

Good luck,
Thomas

On 5 Jan 2021, at 14:56, Sebastian Hagedorn wrote:

> Thanks. I went one a side quest for a while, because your public key couldn’t 
> be loaded. Somehow the Let’s Encrypted certificate for 
> hkps://keys.openpgp.org wasn’t trusted. I switched to 
> eu.pool.sks-keyservers.net, and now that part is working, at least.
>
> To answer your question: yes, gpg-agent is running:
>
>   505  1633 1   0 11:15am ?? 0:00.30 gpg-agent --homedir 
> /Users/hgd/.gnupg --use-standard-socket --daemon
>
> The version that’s running is from MacGPG. I also have a separate 
> installation from Homebrew, but that’s not being used. Perhaps we could 
> compare configuration files?
>
> gpg-agent.conf:
>
> default-cache-ttl 300
> max-cache-ttl 99
> #pinentry-program
> allow-loopback-pinentry
>
> gpg.conf:
>
> armor
> #openpgp
> default-key haged...@spinfo.uni-koeln.de
> encrypt-to 09C25485
> force-mdc
> #compress-algo 1
> #no-secmem-warning
> trust-model direct
> #keyserver hkp://wwwkeys.de.pgp.net
> keyserver-options include-subkeys no-include-revoked timeout=5
> charset utf8
> utf8-strings
> group uk...@uni-koeln.de=4D105B45 C46E14A6
>
> group BUDDY=
> emit-version
> auto-key-locate keyserver
> auto-key-retrieve
> use-agent
> pinentry-mode loopback
>
> To be honest, some of these options are 20 years old, and I don’t even 
> remember what there were for :D
>
> Cheers,
> Sebastian
>
> On 5 Jan 2021, at 13:05, Thomas Kahle wrote:
>
>> On 5 Jan 2021, at 12:23, Sebastian Hagedorn wrote:
>>
>>> Possible, but IMO that’s not really a solution. Every other mail 
>>> application I have used had a method for requesting and/or storing the 
>>> passphrase. It’s also stored in my keychain. Can somebody confirm if that 
>>> is expected behaviour with a protected key?
>>
>> I use encrypted pgp keys whose passphrases are stored in keychain and it 
>> works completely transparently.
>>
>> When I switched from Thunderbird to Mailmate it just worked out of the box.  
>> Have you configured gig-agent?  Is it running?
>>
>> What’s the output of `ps -ef | grep gpg-agent` ?
>>
>> Cheers,
>> Thomas
>>
>>
>>
>>>
>>> On 5 Jan 2021, at 12:11, Alexandre Takacs wrote:
>>>
>>>> It would seems that your key I password protected and PGP is working in a 
>>>> batch mode not allowing it to request said pass.
>>>>
>>>> Can you try with a non protected key (as a test to validate the above) ?
>>>>
>>>> On 5 Jan 2021, at 10:56, Sebastian Hagedorn wrote:
>>>>
>>>>> gpg: Sorry, we are in batchmode - can't get input
>>>>>
>>>>> I have a suspicion that is caused by something in my gpg settings, but I 
>>>>> don’t see anything obvious.
>>>>> Ideas?
>>>> ___
>>>> 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
>>
>> --
>> Thomas Kahle
>> https://www.thomas-kahle.de
>
>> ___
>> 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

--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] S/MIME and OpenPGP issues

2021-01-05 Thread Thomas Kahle
On 5 Jan 2021, at 12:23, Sebastian Hagedorn wrote:

> Possible, but IMO that’s not really a solution. Every other mail application 
> I have used had a method for requesting and/or storing the passphrase. It’s 
> also stored in my keychain. Can somebody confirm if that is expected 
> behaviour with a protected key?

I use encrypted pgp keys whose passphrases are stored in keychain and it works 
completely transparently.

When I switched from Thunderbird to Mailmate it just worked out of the box.  
Have you configured gig-agent?  Is it running?

What’s the output of `ps -ef | grep gpg-agent` ?

Cheers,
Thomas



>
> On 5 Jan 2021, at 12:11, Alexandre Takacs wrote:
>
>> It would seems that your key I password protected and PGP is working in a 
>> batch mode not allowing it to request said pass.
>>
>> Can you try with a non protected key (as a test to validate the above) ?
>>
>> On 5 Jan 2021, at 10:56, Sebastian Hagedorn wrote:
>>
>>> gpg: Sorry, we are in batchmode - can't get input
>>>
>>> I have a suspicion that is caused by something in my gpg settings, but I 
>>> don’t see anything obvious.
>>> Ideas?
>> ___
>> 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

--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


[MlMt] PGP signatures in 5757

2020-12-22 Thread Thomas Kahle
Hi,

I recently updated from stable to the release candidates of 1.14.  I now have a 
strange behaviour with PGP encrypted and signed messages.  For decrypted 
messages the senders are not recognized.  Specifically:

- If I get a signed and encrypted message it decrypts, verifies the signature, 
but cannot confirm the sender.  I get “The message is valid, but it was not 
signed by the sender”
- If the same sender sends a signed an *unencrypted* message then the signature 
and sender verify correctly. “This message is trusted to have been signed by 
the sender”.
- On 5673 the exact same messages are recognised as correctly signed.

Should I report this in the bug tracker, or is this mailing list sufficient?

Cheers,
Thomas

--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] MailMate and Emacs

2020-12-08 Thread Thomas Kahle
On 6 Dec 2020, at 21:08, Randy Bush wrote:

>> I want to use emacs to compose mail.  I started with this bundle:
>> https://github.com/alexandru/emacs.mmbundle
>> which gets mail into emacs and back to mailmate.
>
>
> i tell MM to compose a reply and hit Command/Emacs/Edit (^O) and find
> myself in a message.eml buffer in fundamental mode.  no headers.
>
> my issue is that closing the emacs buffer, either with ^C^C or ^X^C
> does not seem to get the resulting buffer into the MM composition.
> ^C^C does get
>
> Wrote 
> /var/folders/z5/l4jz_j850pl8449q0z2z2vt4gn/T/com.freron.MailMate/edit/303674/message.eml

This works just fine for me.  I use emacsclient with a running server
and ^X^S + ^X^C closes the frame and client and focus is back on the
MailMate compose window.  In the last line, this script
https://github.com/alexandru/emacs.mmbundle/blob/master/Support/bin/edit
activates MailMate again.  Maybe your execution does not reach that point?

In any case, every time the file is saved, the MailMate compose window is 
updated.  It watches that file.

Cheers,
Thomas


--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] MailMate and Emacs

2020-12-08 Thread Thomas Kahle
On 6 Dec 2020, at 15:38, Robert Goldman wrote:
> I have been using markdown mode in Emacs.

Yes, that works OK, but not ideal.  Message mode has nice handling of many 
levels of reply

>>> A
>> B
> C

Try pressing M-q when on the "C" of a block like this.

Thanks,
Thomas

--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


[MlMt] MailMate and Emacs

2020-12-06 Thread Thomas Kahle
Hi,

I want to use emacs to compose mail.  I started with this bundle:
https://github.com/alexandru/emacs.mmbundle
which gets mail into emacs and back to mailmate.

Alas, there seems to be no nice minor mode for editing e-mail in emacs.  
Specifically, message-mode assumes that the buffer starts with a header 
containing the usual mail headers, the body following after a separator.  If no 
such separator is present, emacs will behave as if one is editing the header 
and this changes the meaning of key combinations.  See here for more details: 
https://emacs.stackexchange.com/questions/62116/use-message-mode-without-headers

Has anyone solved that?  What are your emacs + MailMate setups?

Cheers,
Thomas

--
Thomas Kahle
https://www.thomas-kahle.de


signature.asc
Description: OpenPGP digital signature
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate