<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 2017-08-07 15:32:33 (+0200), Benny Kjær Nielsen <a href="mailto:mailinglist@freron.com" style="color:#3983C4">mailinglist@freron.com</a> wrote:</p>

<p dir="auto"></p></div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">On 27 Jul 2017, at 11:06, Esteban Umerez wrote:</p>
<blockquote style="border-left:2px solid #777; color:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999"><p dir="auto">Is there a way to automate the saving to pdf part? I’m thinking about this: I tag a message with a tag like ‘Print’, on received messages or even while I’m writing a new draft, and that tag triggers some script that opens the Print dialogue and saves the message to PDF, in my Actions Folder.<br>
<br>
Is there anyone who knows if this is possible or has some similar workflow? Maybe a mailbox Rule that watches for tags and runs a command?</p>
</blockquote><p dir="auto">It would certainly be possible to create a bundle command which is executed when adding a tag, but the hard part is to automate the printing. That is, you can easily send a file to printing using the `lp` command, but you first need to convert the `.eml` file to something nicer like the `pdf` file generated by MailMate before printing. So, the missing feature you need is to be able to tell MailMate to export a `.pdf` file instead of the raw `.eml` file. Alternatively, see if you can locate some third party command to do this conversion.</p>
</blockquote></div>
<div style="white-space:normal">

<p dir="auto"><a href="https://www.gnu.org/software/enscript/" style="color:#3983C4">enscript</a> is a good tool for this.  I would love to be able to pipe email from MailMate to <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">enscript</code> for printing!</p>

<p dir="auto">Philip</p>

<p dir="auto">-- <br>
Philip Paeps<br>
Senior Reality Engineer<br>
Ministry of Information</p>
</div>
</div>
</body>
</html>