[Xitami] Xitami and basic
Paul Reid
xitami@lists.xitami.org
Sun, 02 Dec 2001 14:22:26 -0500
> power basic from powerbasic.com
An interesting product. Amazing that he has kept it going for 2 decades
against Mighty MicroSoft.
> an internet printer... It reads its mail via pop-3 like an ordinary mail client and prints it out.
An interesting way to print. I have printers where if you do an FTP STOR
to them, they "store" the file as ink on paper.
Never heard of one with an email interface, but that would be convenient
for many people.
Is the printer itself getting mail from the POP mailbox, or are you
using a DOS/Win machine to get mail and give it to the printer?
> can also print postscript files,
OK, it is a PS printer that can auto-switch from text to PostScript.
> but it can't handle mime.
Ah. If you are using a PC to get mail and send it to the printer, there
are standalone command-line MIME decoders. Most are very smart: you can
send them plain un-MIME text and they will give it back unchanged. One
old favorite is UUDECODE.
So after you get email from the POP server and put it in a file, use
SHELL to pass the file through a decoder
Folder$ = "C:\spool\mail\"
MessageNumber$ = "1234"
InFile$ = MessageNumber$ + ".bin"
OutFile$ = MessageNumber$ + ".txt"
SHELL "command /c UUDECODE <" + Infile$ + " >" + Outfile$
SHELL "command /c copy " + OutFile$ + " PRN"
-PRR