Changing subject lines on incoming messages

John Angelico pmmail@rpglink.com
Thu, 10 Aug 2000 12:04:13 +0900 (EST)


On Thu, 10 Aug 2000 01:26:21 +0100 (BST), Paul Ratcliffe wrote:

>
>How can I change the subject line of an incoming message in PMMail?
>For example.... I want to change:
>  Subject: [something] this is it
>to
>  Subject: this is it
>
>I have tried an incoming User hook (REXX Exit) filter... this appears 
>to have worked when you "View full header" on the message, but in the 
>account window, the subject is still as it originally was.
>My guess is that the index has already been updated with the old 
>subject before the filter has processed it.
>
>(I tried a Re-index on the folder, but that apparently does nothing. If 
>you delete the FOLDER.BAG file and then do Re-index then it does pick 
>up the change as you'd expect. This sounds to me like there's a bug in 
>Re-index, as I would expect it to regenerate the FOLDER.BAG file 
>completely.)
>
>I haven't tried a Message Receive Rexx Exit, as I really only want to 
>apply this to items which are filtered into a particular folder.
>
>Anyone got any ideas?

I'd say Paul that your second idea MsgReceive exit is the way to go. But make your Rexx script very selective - put 
the equivalent of that filter into it, then you will only be modifying the ones you want.

Here we use a thing called "trimline.cmd" (attached) to trim out all the garbage like "Re:" from a subject line 
before the [listname] and subject so they can be sorted by thread (sorta).

HTH!

    

Best regards
John Angelico
OS/2 SIG
talldad@melbpc.org.au or talldad@kepl.com.au
--------------------------------------------



-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: trimline.cmd