Re: [MlMt] Copying a message

2018-10-28 Thread aisrael
If you use Evernote, you can forward the mail you want to keep to your 
Evernote specific email address, and it will create a note with a clean 
(searchable) representation of the original email.
You can also drag and drop it into a Devonthink window, with the same 
final output as with Evernote (incidentally Devonthink can keep a 
searchable database of all Mailmate emails).

Alain

On 28 Oct 2018, at 6:32, Bill Cole wrote:


On 27 Oct 2018, at 20:10, Scott A. McIntyre wrote:

Since MailMate doesn't have a way to export email to a standard 
format


Umm... I don't believe that to be true.

Drag & drop into the Finder creates a plain text file for each message 
with a .eml extension which adheres to  RFC822 email message format. 
The file naming is a mess, but it works.


The "Export" bundle (Command->Export) can save one or more messages to 
a specified folder as the same sort of ".eml" file with less sketchy 
naming or as a ".mbox" file which is a Unix mailbox file: essentially 
a series of plain text RFC822 messages delimited by lines containing 
'From' the sender address, and the delivery time, with those fields 
delimited by a space.


These are standard formats. They are *plain text* formats. Most mail 
client software with any import capability will understand them both. 
Most mail server software has some form of support for both, either 
for transport or for delivered messages.



--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Available For Hire: https://linkedin.com/in/billcole
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


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


Re: [MlMt] Copying a message

2018-10-28 Thread Benny Kjær Nielsen

On 28 Oct 2018, at 6:32, Bill Cole wrote:

Drag & drop into the Finder creates a plain text file for each message 
with a .eml extension which adheres to  RFC822 email message format. 
The file naming is a mess, but it works.


Just for the record, it is 
[configurable](https://manual.mailmate-app.com/hidden_preferences#other).


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


Re: [MlMt] Copying a message

2018-10-27 Thread Scott A. McIntyre

Hi,


Since MailMate doesn't have a way to export email to a standard 
format


Umm... I don't believe that to be true.


Sorry - I was mixing up my directionality.

I know about, and use, all of the methods you mention -- but the 
Keyboard Maestro macros are still something I've been making heavy use 
of (for my particular work flow which required the automation and 
variables/etc).


MailMate is focussed on IMAP as a way to get mail, rather than locally 
managed mailboxes on a local system (that Mail.app does).


That's the bit I was thinking of with respect to the complexities 
(Maildir vs. mbox vs whatever).


Again, not a gripe at all.  It's come up on the list many times over the 
years, and I know a number of people use things like DevonThink or their 
own local IMAP server to simulate the use of local mailboxes.


The Import Messages feature works well for certain use cases, but not 
all.


Thanks to Bill for summarising some of the other ways to 
dump/export/save a specific message.


Cheers,

Scott

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


Re: [MlMt] Copying a message

2018-10-27 Thread Bill Cole

On 27 Oct 2018, at 20:10, Scott A. McIntyre wrote:


Since MailMate doesn't have a way to export email to a standard format


Umm... I don't believe that to be true.

Drag & drop into the Finder creates a plain text file for each message 
with a .eml extension which adheres to  RFC822 email message format. The 
file naming is a mess, but it works.


The "Export" bundle (Command->Export) can save one or more messages to a 
specified folder as the same sort of ".eml" file with less sketchy 
naming or as a ".mbox" file which is a Unix mailbox file: essentially a 
series of plain text RFC822 messages delimited by lines containing 
'From' the sender address, and the delivery time, with those fields 
delimited by a space.


These are standard formats. They are *plain text* formats. Most mail 
client software with any import capability will understand them both. 
Most mail server software has some form of support for both, either for 
transport or for delivered messages.



--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Available For Hire: https://linkedin.com/in/billcole
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Copying a message

2018-10-27 Thread Scott A. McIntyre

Hi Michael,


I sometimes want to copy a message and paste it into another 
application (usually OmniOutliner, sometimes a plain-text document) -- 
basically something similar to what you might expect if you typed 
command-c when a message is selected in the message list and content 
was copied to the clipboard so that it can be pasted elsewhere.  I'd 
like to get both the basic headers (from, to, subject, date) and the 
body, preferring plain-text formatting.  There doesn't seem to be a 
built-in MailMate command to do this, unless I'm just overlooking 
something really obvious.  Is there a way?  Failing that, has anyone 
implemented anything like this already, perhaps in the form of a 
bundle?  I looked through https://github.com/mailmate but nothing 
looks like like it would do it.





Since MailMate doesn't have a way to export email to a standard format 
(not a gripe, I understand the headaches that come with that), I've 
solved this sort of thing via one of two paths:


1)  Using the MailMate built-in "Show in Finder" command.  This gives 
you the .eml file.  You can now "do stuff" with that EML file, which may 
suffice.


2)  Increasingly, I've been using Keyboard Maestro to create automation 
flows like you mention above.
	For example, I've created a Macro that is only active in MailMate that 
will select the current message, then select the Show Raw Message 
option.
	From there, Keyboard Maestro copies all of the text into a named 
clipboard (or system clipboard) and then activates Sublime Text.
	KM then pastes into Sublime Text and creates a few variables:  It 
extracts the Subject from the headers, as well as today's date and the 
Date header from the email.
	KM can then save the message and use the variables created in the 
previous step to create a useful filename, saving the file as a .eml to 
a standardised place for my workflows.


The second way is a lot more involved, possibly overkill, but, it does 
permit essentially "one button" activation of a macro that creates a 
file that I can then immediately import into OmniOutliner or anything 
else that reads .eml on macOS.


Not quite the same as a Bundle approach, but, since I've been doing more 
and more with Keyboard Maestro, it was pretty easy to do.


The resulting .eml works fine as an item in OmniOutliner, and clicking 
on it opens the message within the app.


What I haven't really tried to test is how that works with loads of 
attachments -- but, in theory, it should work the same as using the .eml 
file directly from Show In Finder.


Regards,

Scott

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


Re: [MlMt] Copying a message

2018-10-27 Thread Benny Kjær Nielsen

On 27 Oct 2018, at 4:21, Michael Hucka wrote:

I sometimes want to copy a message and paste it into another 
application (usually OmniOutliner, sometimes a plain-text document) -- 
basically something similar to what you might expect if you typed 
command-c when a message is selected in the message list and content 
was copied to the clipboard so that it can be pasted elsewhere.  I'd 
like to get both the basic headers (from, to, subject, date) and the 
body, preferring plain-text formatting.  There doesn't seem to be a 
built-in MailMate command to do this, unless I'm just overlooking 
something really obvious.  Is there a way?  Failing that, has anyone 
implemented anything like this already, perhaps in the form of a 
bundle?  I looked through https://github.com/mailmate but nothing 
looks like like it would do it.


No, I don't think anything like this exists, but it could probably be 
done using a bundle command (using the `canonical` input type) which is 
described [as 
follows](https://github.com/mailmate/mailmate_manual/wiki/Bundles): 
“This is equivalent to the text displayed in MailMate when using the 
“Prefer Plain Text” option. It is, most often, based on the 
`text/plain` MIME part. The text is decoded (quoted-printable/base64), 
deflowed (`format=flowed`), and converted to UTF-8.”


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