Command line program which will extract attachments from emails

  • Thread starter Thread starter Ben Wylie
  • Start date Start date
B

Ben Wylie

Is there a freeware program which can be run via the command line, to
extract
attachments from emails. The email files will be .eml files directly from my
Mailserver.

What i'd like to do is to automatically take attachments from particular
emails and dump
them in a folder.

The next step i'd like to do is to automatically send the files to a
specified printer.
However the first step is finding a program which can take an .eml file and
take attachments
from the file and save them to a folder.

Thanks for your help,
Ben
 
Is there a freeware program which can be run via the command line, to
extract
attachments from emails. The email files will be .eml files directly from my
Mailserver.

mpack/munpack version 1.5 for dos

Mpack and munpack are utilities for encoding and decoding (respectively)
binary files in MIME (Multipurpose Internet Mail Extensions) format mail
messages. For compatibility with older forms of transferring binary
files, the munpack program can also decode messages in split-uuencoded
format. The Macintosh version can also decode messages in split-BinHex
format.

Versions are included for unix, pc, os2, mac, amiga and archimedes
systems. The canonical FTP site for this software is
ftp.andrew.cmu.edu:pub/mpack/
 
charles said:
mpack/munpack version 1.5 for dos

Thank you very much indeed. That has worked well.

Now ... :)

Is there a program which will send a .txt .doc .pdf .rtf straight to a
printer?
I expect it is unlikely for all of these to be in one program, but you never
know.

I have microsoft office, but don't think there is any kind of command line
printing
function that i have found. So is there a program 'out there' which will
take one
or all of these file types, and is able to send them to a specified printer
via the
command line? Perhaps it will open a virtual copy of the document and send
it to
the printer, without actually displaying anything on the page.

Thanks again for your help,

Ben
 
Ben said:
Is there a program which will send a .txt .doc .pdf .rtf straight to a
printer?
I expect it is unlikely for all of these to be in one program, but you never
know.

I have microsoft office, but don't think there is any kind of command line
printing
function that i have found. So is there a program 'out there' which will
take one
or all of these file types, and is able to send them to a specified printer
via the
command line? Perhaps it will open a virtual copy of the document and send
it to
the printer, without actually displaying anything on the page.
Google for classExec . e.g. classExec abc.doc -action print
 
Ben Wylie said:
Thank you very much indeed. That has worked well.

Now ... :)

Is there a program which will send a .txt .doc .pdf .rtf straight to a
printer?

copy ?
 
charles said:
Neat find.

And for .pdf's you can autoprint using the commandline:

acrord32.exe /p /h filename

Thank you both for both of your advice.
I now have this working fine.
The acrord32.exe one doesn't work quite as well, as they haven't implemented
all of the command line switches as they had before. You used to be able to
do /p /h to have it remain hidden throughout or have /t for it to terminate
once printing has finished. Now the only thing it will do is to open and
print. So i have used a program called closeapp to close acrord32.exe after
giving enough time to print.

Thanks again for your help,
Ben
 
Back
Top