Evening all.
I'm playing with global rulesatm, specifically printing. I found this thread from back in 2008 which talks about printing attachments, but I'm more concerned with non-plain-text emails.Is there any way for mercury to nicely print HTML emails? If not i've planned a script to run instead which will go something like this:
- called by "run" filter for specific email address
- check script isn't already running (if so end)
- for each .cnm in local-users-direcotry
- open file as a text stream
- insert <html> & <pre> tags around header
- deal with message body as best we can
- create file array
- push each attachment through a binary stream and save them
- add each filename to the file array (including that of the original with .html extension)
- print each file in array using its default app (if possible)
- delete each file in array and delete the original email
It feels like overkill to have to go that far but i can see a better way to do it using the rules.
Any thoughts?
(p.s. i'm running v4.72)
<p>Evening all.</p><p>I'm playing with global rulesatm, specifically printing. I found <a href="/forums/thread/7159.aspx" mce_href="/forums/thread/7159.aspx">this thread</a> from back in 2008 which talks about printing attachments, but I'm more concerned with non-plain-text emails.Is there any way for mercury to nicely print HTML emails? If not i've planned a script to run instead which will go something like this:</p><ul><li>called by "run" filter for specific email address</li><li>check script isn't already running (if so end)</li><li>for each .cnm in local-users-direcotry</li><ul><li>open file as a text stream</li><li>insert &lt;html&gt; &amp; &lt;pre&gt; tags around header</li><li>deal with message body as best we can</li><li>create file array</li><ul><li>push each attachment through a binary stream and save them</li><li>add each filename to the file array (including that of the original with .html extension)</li></ul><li>print each file in array using its default app (if possible)</li><li>delete each file in array and delete the original email</li></ul></ul><p>It feels like overkill to have to go that far but i can see a better way to do it using the rules.</p><p>
</p><p>Any thoughts?</p><p>(p.s. i'm running v4.72)</p>