Community Discussions and Support
Print incoming mail and attachments

Thanks for your thoughts everyone.  I figued a solution would be something along the lines of putting the attachements in a folder which was polled in some way, I just wasn't sure how to do it.

I'll try out a few ways and let you know how it works out.

Thanks again.

Stuzz

<P>Thanks for your thoughts everyone.  I figued a solution would be something along the lines of putting the attachements in a folder which was polled in some way, I just wasn't sure how to do it.</P> <P>I'll try out a few ways and let you know how it works out.</P> <P>Thanks again.</P> <P>Stuzz</P>

Long time reader, first time poster :)

Reading the manual, I've managed to set up a general rule set and alias that prints any emails addressed to orders@...  At this stage it doesn't print an attachment if there is one.  I get the impression this is possible, but I'm not sure which action I should select, and what to do with that action.

Generally the attachments would be PDF files or Word documents (DOC).

Any help is appreciated.

Regards

Stuzz

<P>Long time reader, first time poster :)</P> <P>Reading the manual, I've managed to set up a general rule set and alias that prints any emails addressed to orders@...  At this stage it doesn't print an attachment if there is one.  I get the impression this is possible, but I'm not sure which action I should select, and what to do with that action.</P> <P>Generally the attachments would be PDF files or Word documents (DOC).</P> <P>Any help is appreciated.</P> <P>Regards</P> <P>Stuzz</P>

[quote user="stuzz78"]

Long time reader, first time poster :)

Reading the manual, I've managed to set up a general rule set and alias that prints any emails addressed to orders@...  At this stage it doesn't print an attachment if there is one.  I get the impression this is possible, but I'm not sure which action I should select, and what to do with that action.

Generally the attachments would be PDF files or Word documents (DOC).

Any help is appreciated.

Regards

Stuzz

[/quote]

 

The is no filter that will allow you to extract and print attachments.

 

[quote user="stuzz78"]<p>Long time reader, first time poster :)</p> <p>Reading the manual, I've managed to set up a general rule set and alias that prints any emails addressed to orders@...  At this stage it doesn't print an attachment if there is one.  I get the impression this is possible, but I'm not sure which action I should select, and what to do with that action.</p> <p>Generally the attachments would be PDF files or Word documents (DOC).</p> <p>Any help is appreciated.</p> <p>Regards</p> <p>Stuzz</p><p>[/quote]</p><p> </p><p>The is no filter that will allow you to extract and print attachments.</p><p> </p>

If there's no filter to do it, is there any other method of doing it?

If there's no filter to do it, is there any other method of doing it?

You will probably need to create a daemon to do something like this (which will require some programming). And there must of course be applications installed on the server that are able to print PDF and Word documents.

 /Rolf

 

<p>You will probably need to create a daemon to do something like this (which will require some programming). And there must of course be applications installed on the server that are able to print PDF and Word documents.</p><p> /Rolf</p><p> </p>

[quote user="stuzz78"]

Generally the attachments would be PDF files or Word documents (DOC).

[/quote]

I think this is possible by using a policy (core module configuration) and a batch script which checks for the extension of the attachment (~Z parameter) and then calls the appropriate application for printing the attachment (~F parameter). The odd thing is just that you have to install acrobat's pdf reader and the word part of office at the mailserver. The commands for printing the mentioned formats from the command line are available here: http://support.adobe.com/devsup/devsup.nsf/docs/52080.htm for .pdf and here: http://www.autohotkey.com/forum/topic10600.html for printing .doc

If you have problems writing that batch file just ask.

Best regards

Nico

EDIT: Oops, I've overlooked the part that it should only print attachments sent to certain users. In this case it's more tricky to achive that by using a policy/batch script and even if it's possible, writing a daemon would be probably the better solution as the batch script has to work with the raw mail data then and extract the To: header and attachment(s) by itself.
[quote user="stuzz78"]<P>Generally the attachments would be PDF files or Word documents (DOC).</P>[/quote] I think this is possible by using a policy (core module configuration) and a batch script which checks for the extension of the attachment (~Z parameter) and then calls the appropriate application for printing the attachment (~F parameter). The odd thing is just that you have to install acrobat's pdf reader and the word part of office at the mailserver. The commands for printing the mentioned formats from the command line are available here: http://support.adobe.com/devsup/devsup.nsf/docs/52080.htm for .pdf and here: http://www.autohotkey.com/forum/topic10600.html for printing .doc If you have problems writing that batch file just ask. Best regards Nico [b]EDIT:[/b] Oops, I've overlooked the part that it should only print attachments sent to certain users. In this case it's more tricky to achive that by using a policy/batch script and even if it's possible, writing a daemon would be probably the better solution as the batch script has to work with the raw mail data then and extract the To: header and attachment(s) by itself.

What about using the filtering rules to identify mails to correct users, identify correct attachments, and extract said attachments to a folder (maybe network folder on a machine with .pdf & .doc readers installed if you don't want to encumber your mail server with such).

Then have a resident process or scheduled task (on the network machine not the server) to run a batchfile that polls the folder for new files and prints them as desired.

 

<p>What about using the filtering rules to identify mails to correct users, identify correct attachments, and extract said attachments to a folder (maybe network folder on a machine with .pdf & .doc readers installed if you don't want to encumber your mail server with such).</p><p>Then have a resident process or scheduled task (on the network machine not the server) to run a batchfile that polls the folder for new files and prints them as desired.</p><p> </p>

[quote user="dilberts_left_nut"]

What about using the filtering rules to identify mails to correct users, identify correct attachments, and extract said attachments to a folder (maybe network folder on a machine with .pdf & .doc readers installed if you don't want to encumber your mail server with such).


Then have a resident process or scheduled task (on the network machine not the server) to run a batchfile that polls the folder for new files and prints them as desired.
[/quote]

Ah, good idea! That should work well. If the applications for printing the formats are installed on the same machine, even without using a scheduled task by using a ruleset like:

---

If header "T" contains "user@yourdomain" LogicalAnd ""
If attachment ExtnPart contains "pdf" Goto "pdf"

If header "T" contains "user@yourdomain" LogicalAnd ""
If attachment ExtnPart contains "doc" Goto "doc"

Label "pdf"
If attachment ExtnPart contains "pdf" SaveAttmt "c:\\mercury\\to_print\\temp.pdf"
Always Run "command-to-print-temp.pdf"
Always Exit ""

Label "doc"
If attachment ExtnPart contains "doc" SaveAttmt "c:\\mercury\\to_print\\temp.doc"
Always Run "command-to-print-temp.doc"
Always Exit ""

---

Best regards

Nico
[quote user="dilberts_left_nut"]<P>What about using the filtering rules to identify mails to correct users, identify correct attachments, and extract said attachments to a folder (maybe network folder on a machine with .pdf & .doc readers installed if you don't want to encumber your mail server with such).</P> Then have a resident process or scheduled task (on the network machine not the server) to run a batchfile that polls the folder for new files and prints them as desired. [/quote] Ah, good idea! That should work well. If the applications for printing the formats are installed on the same machine, even without using a scheduled task by using a ruleset like: --- If header "T" contains "user@yourdomain" LogicalAnd "" If attachment ExtnPart contains "pdf" Goto "pdf" If header "T" contains "user@yourdomain" LogicalAnd "" If attachment ExtnPart contains "doc" Goto "doc" Label "pdf" If attachment ExtnPart contains "pdf" SaveAttmt "c:\\mercury\\to_print\\temp.pdf" Always Run "command-to-print-temp.pdf" Always Exit "" Label "doc" If attachment ExtnPart contains "doc" SaveAttmt "c:\\mercury\\to_print\\temp.doc" Always Run "command-to-print-temp.doc" Always Exit "" --- Best regards Nico
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