SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-HELP Mailing List Archives

Return to [ 04 | November | 2004 ]

<< Previous Message << >> Next Message >>


Date: Thu, 4 Nov 2004 17:41:52 PST8
From: "Jon Harrison" <jharrison@seadog.reno.nv.us >
Reply-To: scoug-help@scoug.com
To: < "scoug-help@scoug.com" > scoug-help@scoug.com >
Subject: SCOUG-Help: Basic rexx question


5
=====================================================
If you are responding to someone asking for help who
may not be a member of this list, be sure to use the
REPLY TO ALL feature of your email program.
=====================================================

Content Type: text/plain

Content-Transfer-Encoding: 7bit

On Thu, 4 Nov 2004 16:34:55 PST8, Steven Levine wrote:

>
>How does PMMail invoke your REXX script? MR/2 invokes the presend script
>synchronously, so an delete/rewrite is no problem. PMMail might be doing
>some sort of polling, waiting for your script to finish.

I don't know that answer to that, only that PMMail passes the
script the fully qualified name. I believe it is waiting for the
script so once the file is deleted it fails. There are a number of
places where a script can be invoked, here is what it sez about
using it in a filter as an outgoing Pre-Send operation:

REXX Exit (Background) - When the filter is applied, this REXX
script will be executed in the background. The full path and
filename of the script must be entered in the entry field to the
right of the action. The REXX script will be passed one argument,
the full path and filename of the file containing the full message
being filtered.

PMMail also has the following but I don't want to use that since it
will act on all messages rather than the ones that hit the specific
filter. I did try it with the same failed result.

The Message Send REXX hook is called right before PMMail sends the
message to your mail server. This way, you can use this exit to
reformat the actual message file to include any other information
you may want, or to remove any part of the message.

I have the filter set to match subject (ie: Scoug) and the next
operation is forward, and finally the rexx hook. If I change the
order it still fails.

Attached is the script & a typical file. You can run it in any
temp directory, it will create a tmp file then write it back to the
original. You will find the original file size remains the same
and some of the original text is moved down. The syntax is forward
12345.msg. It is a bit cobbled up as I've added and removed
routines trying to make it work. Plus my lack of knowledge makes
it kinda rough.

I wouldn't be surprised if it is a logical error, but it sure
escapes me. Then again, I struggle everytime I play with Rexx.

Thanks, jon


Content Type: application/octet-stream

File attachment: forward.zip


<< Previous Message << >> Next Message >>

Return to [ 04 | November | 2004 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.