home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
shackos2.zip
/
makepops.doc
< prev
next >
Wrap
Text File
|
1997-05-21
|
5KB
|
92 lines
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
MakePops.CMD Version 1.0
InnoVal Systems Solutions, Inc.
May 5, 1997
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
MakePops is a simple REXX program for OS/2 users to take the output
file from a HACKSAW EMAIL RETRIEVE subcommand (or, with slight
modification, any UNIX-style mail file, including those produced by
Netscape Navigator) and make an individual *.POP file out of each
message in it. These *.POP files are compatible with InnoVal's Post
Road Mailer as well as many other email programs.
To use this program, just give it two command line arguments. First is
the file which contains the HACKSAW EMAIL RETRIEVE output. Second is
the directory in which you want the *.POP files created. If you don't
specify the second argument, the program will create the *.POP files in
the current directory.
As it is, MakePops.CMD will only work on mail files created with
Hacksaw's default message separator. If you want to use a different
separator between one message and the next (using the SEPARATOR
argument with your HACKSAW EMAIL RETRIEVE subcommand), you'll need to
modify line 61 of MakePops.CMD. Or to use MakePops.CMD with standard
UNIX mail files (which are also the kind made by Netscape Navigator),
instead of HACKSAW's output files, comment out line 61 and uncomment
line 67 instead. (That is, add "/*" to the beginning and "*/" to the
end of line 61, and remove those characters from the beginning and end
of line 67.)
With MakePops.CMD to create Post Road Mailer-compatible *.POP files
from a Hacksaw email output file, you can use a batch file to refresh
multiple Post Road Mailer inbaskets at once. (It should be just as
easy to implement this scheme for any other mail program that uses
*.POP-style email files.) Here's the batch file I started using for
this purpose. I called it REFRESH.CMD:
-=-=-=-=-
@ECHO OFF
HACKSAW EMAIL RETR DEL(Y) LF(MAIL.TXT) REPLACE(Y) USER(abc) PW(def)
IF EXIST MAIL.TXT MAKEPOPS MAIL.TXT E:\POSTROAD\abc
HACKSAW EMAIL RETR DEL(Y) LF(MAIL.TXT) REPLACE(Y) USER(ghi) PW(jkl)
IF EXIST MAIL.TXT MAKEPOPS MAIL.TXT E:\POSTROAD\ghi
-=-=-=-=-
(I have my POP3 server's name stored in my HACKSAW.INI file, so the
HACKSAW commands in the batch file don't need to specify it.)
You just need one HACKSAW EMAIL RETRIEVE command and one IF EXIST
MAIL.TXT MAKEPOPS command for each inbasket. The HACKSAW commands need
the appropriate host, userid, and password arguments; and the MAKEPOPS
commands need the appropriate directory specification, which is an
inbasket subdirectory of your Post Road Mailer installation directory.
After mail is received, the next time you open a Post Road Mailer
inbasket which got new mail, it will be displayed there as if the Post
Road Mailer had been the one to retrieve the mail itself. (You open a
Post Road Mailer inbasket by selecting its name from the bottom of the
File menu. If an inbasket is open while HACKSAW retrieves mail and
MAKEPOPS.CMD puts it into the inbasket, the Post Road Mailer won't see
the new mail until the inbasket is opened again.)
However, HACKSAW does not do anything with attached files, character
encoding, Post Road Mailer filters, and such things; and the Post Road
Mailer doesn't do anything with them except during receipt. So in
order to get those types of things handled, there is one more step that
needs to be performed: Receive the notes into the Post Road Mailer
inbasket as if from the POP3 server, through the Personal Post Office
(PPO) feature.
If you rarely have messages with attachments and you don't use filters,
then you might want to do this only on those few messages that you get
which have attachments. Move the *.POP file (message) in question to
an empty directory, set the PPO feature to receive messages from that
directory instead of from the POP3 server (second page of PRM settings
notebook), tell PRM to do a refresh, and then put the PPO setting back
to POP3.
If you use filters, or expect encoded messages or messages with
attachments on a regular basis, you might want to do what I do: I have
MakePops.CMD put the incoming messages into an empty directory instead
of into an inbasket directory. And I have my inbaskets set to always
refresh from those directories instead of from the POP3 servers. So
Hacksaw gets all my messages at once while I'm online, and puts them
into the empty directories; then later when I want to read an
inbasket's mail, I just open that inbasket and click on its Refresh
button. This takes only a couple of seconds longer than opening the
inbasket alone takes, because refreshing from a PPO directory is so
much faster than refreshing from a POP3 server!