Ask the Expert

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,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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: