tcp.getMail
This is a fatPage containing tcp.getMail
4.21.2000

This is a simple change to strip the "+OK nnnn OCTETS" line from the front of email messages. This is really part of the conversation between the client and the host and is not part of the message data.


4.15.2000

This version includes the proposed user prefs as defaults (deleteMessages, timeoOutTicks, and flMessages)

Improved parsing of multi-part messages. RTFRFC!

Renamed the 'attachments' sub-table to 'parts', which is the same terminology Eric uses.


4.13.2000

The best way to see what this does is to run it:

tcp.getMail("myPopHost","myname","mypassword", adrMsgTable)

The "dangerous" optional param, deleteMessages is defaulted to false. You can run the above multiple times and it won't screw up your mailbox so your regular email app can still get it. I've run this quite a few times on my own mail account.

There are optional parameters and they are currently defaulted to literals in the function definition. If you want some of them defaulting to user prefs, would the user prefs table be user.prefs.getMail? And, that table and the item referred to have to exist before the verb will work, or else you'll get an undefined on the assignment in the function definition. Anyway, that's all probably a minor issue.

It hasn't been tested with other servers, or a wide variety of sender email apps. But if standards are standards, this should work.

Attachments are separated, but not decoded.

We can certainly tweak this any way you want, but since this actually does something useful, I thought it'd be a good time for you to take a look.

Alan <asg@erols.com>

A typical result is:

The 'attachments' sub-table has 4 items, one of which looks like this:


This page was last built on 4/30/00; 11:31:47 AM ET by Alan German, asg@erols.com. At the moment, I am using Macintosh OS to work on this website.