Archive of UserLand's first discussion group, started October 5, 1998.
Re: For review: tcp.getMail
Author: Alan German Posted: 4/21/2000; 12:59:03 PM Topic: For review: tcp.getMail Msg #: 16519 (In response to 16447) Prev/Next: 16518 / 16520
The fatPage at http://users.erols.com/asg/tcp/getMail.html has a very minimally revised script.Brian Hughes pointed out that the first line of the message I was returning contained a line of "protocol" data -- not really part of the message. So I have added code to remove it [if it exists] prior to sending to Eric's routine.
This probably isn't worthy of an official update yet; I just wanted to give you a chance to review this as a proposed change.
I also thought of a possible change to the main loop logic. Currently, the main loop gets a mail item, parses it, then deletes it. If the messages are large, or there are many parts, or the net connection is slow, there might be some potential cost savings for people paying for dial-up-by-the-minute [at least] if I ran two loops.
The first loop would retrieve the mail, the second loop would process. This would be a little more "economical" in terms of network resources.
I don't want to change it just for the sake of change. It was just something that occurred to me while reviewing the code. I'd like to know if anyone has any opinions on this one way or the other.
There are responses to this message:
- Re: For review: tcp.getMail, Eric Soroos, 4/21/2000; 3:44:53 PM
This page was archived on 6/13/2001; 4:54:54 PM.
© Copyright 1998-2001 UserLand Software, Inc.