View Full Version : Reading from a POP server on the AS/400
01-01-1995, 02:00 AM
Anybody ever try to read a POP message using an RPG or JAVA on the AS/400? (The POP server residing on the AS/400)
06-01-2000, 03:57 PM
No - but we have used ftp to delete messages in the user folders. If you can see them that way you should be able to copy them to some sort of db file and determine how readable they might be.
06-02-2000, 05:08 AM
Jeff, You can find out how to access mail using standard requests via port 110 (the well-known port for POP3) from RFC 1539 at http://www.faqs.org/rfcs/rfc1939.html. You should be able to use any language with socket support, and as David pointed out, Java is going to have a lot of the Mail and socket support in place. The commands are fairly simple 4 character requests, and there are not many of them. You would open a socket on port 110 and send a user and password. Next you would start making your requests. One way to see this work, and to better understand the protocol, is to Telnet to port 110 and start feeding the server commands. If you use the windows Telnet client, be sure to turn on echo or you will have a real hard time seeing what is going on. So it would go something like this from a command line: TELNET '10.x.x.x' PORT(110) (connection is established and POP3 server responds OK POP3 server ready) USER YOURPROFILE (POP3 server responds OK POP3 server ready) PASS YOURPASSWORD (POP3 server responds OK start sending message) LIST (POP3 server responds OK n messages (n octets) More commands as listed in the RFC, followed by QUIT. David Morris
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.