Q

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

This was first published in June 2001

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchWinIT

Search400

  • 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 ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.uk

Close