Community Discussions and Support
Printing using filter rules

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)

&lt;p&gt;Evening all.&lt;/p&gt;&lt;p&gt;I&#039;m playing with global rulesatm, specifically printing. I found &lt;a href=&quot;/forums/thread/7159.aspx&quot; mce_href=&quot;/forums/thread/7159.aspx&quot;&gt;this thread&lt;/a&gt; from back in 2008 which talks about printing attachments, but I&#039;m more concerned with non-plain-text emails.Is there any way for mercury to nicely print HTML emails? If not i&#039;ve planned a script to run instead which will go something like this:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;called by &quot;run&quot; filter for specific email address&lt;/li&gt;&lt;li&gt;check script isn&#039;t already running (if so end)&lt;/li&gt;&lt;li&gt;for each .cnm in local-users-direcotry&lt;/li&gt;&lt;ul&gt;&lt;li&gt;open file as a text stream&lt;/li&gt;&lt;li&gt;insert &amp;lt;html&amp;gt; &amp;amp; &amp;lt;pre&amp;gt; tags around header&lt;/li&gt;&lt;li&gt;deal with message body as best we can&lt;/li&gt;&lt;li&gt;create file array&lt;/li&gt;&lt;ul&gt;&lt;li&gt;push each attachment through a binary stream and save them&lt;/li&gt;&lt;li&gt;add each filename to the file array (including that of the original with .html extension)&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;print each file in array using its default app (if possible)&lt;/li&gt;&lt;li&gt;delete each file in array and delete the original email&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;It feels like overkill to have to go that far but i can see a better way to do it using the rules.&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;Any thoughts?&lt;/p&gt;&lt;p&gt;(p.s. i&#039;m running v4.72)&lt;/p&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft