Problem solve Get help with specific problems with your technologies, process and projects.

How to set up an agent to look at an e-mail and if it contains a URL

We need to set up an agent to look at an e-mail and if it contains a URL, follow that link and download the file from the URL as a text file. We are having problems with the download of the text function. Any suggestions? We are running Domino 5.0 on an AS/400 for this particular mail server.

Since you didn't include any of your code, its somewhat difficult to help diagnose the problem. One of the most common issues with dealing with AS/400 text files is the assumption that text is storeed as ASCII text. All LotusScript statements that write to a file (such as Print #, Put, and Write # ) will convert the characters to the platform-specific code page. The AS/400 platform uses EBCDIC code pages.

The Domino for AS/400 release notes http://doc.notes.net/as400/5.0.7/readas4.nsf/db69c81afd0e71cf852561b700752f5e/fed9cbf1013a6420862569fa007d45b1?OpenDocument&Highlight=0,del,objlnk show how you can use the copy object command to convert the file formats.

Lotus's example: Shell ("CPY OBJ('/acme1/notes/ebcdicfile.txt') TOOBJ('/acme1/notes/asciifile1.txt') FROMCODEPAGE(37) TOCODEPAGE(819)")

You can also use *TEXT and *PCASCII in lieu of 37 ND 819

Dig Deeper on Domino Resources - Part 4

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...