[pmmail-list] Is it possible to edit the subject of incoming messages ?

Bruce Francis pmmail-list@blueprintsoftwareworks.com
Sat, 03 Feb 2001 09:38:46 -0500 (EST)


--_=_=_=IMA.BOUNDARY.G86RCM138764=_=_=_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

On Sat, 03 Feb 2001 08:54:28, Xav wrote:

>On Fri, 02 Feb 2001 20:35:28 +0000 (GMT), Paul Ratcliffe wrote:
>>Yes, you can filter using a Message Receive Exit script.

This is taking a long time... let me step in, and PMFJI.

I will attach    SubjChek.cmd     which is a Rexx script I saved on the
fine "other" PMMail list (hosted by Steve Lamb, which tends to have 
more technical content owing to more "long-term" PMMail users hanging
out over there).  I received the script from Dick Reeser; I have not tried 
it and will not support it.  I have looked it over and it does appear to 
remove the      [*]     from Subject: lines.  Run it as a "Message Receive Exit" 
under the "Rexx" tab.

While looking for this in my archives I also found a filter which will strip
off excessive    Re:   Fwd:   preambles from Subject: lines.  This one was 
written by John Angelico; I have not tried it and will not support it.  The
name of it is     TrimLine.cmd       I have looked it over and it does appear
to function as advertised.

I plan to implement both functions here as they appear to be wonderful
additions.   (BTW, Xav, I agreed with you about the worthlessness of the
[*] preambles in the Subject:  lines, until I started to find a reference
message in this thread to reply to, searching thru my "Trash" folder.  I
realized that without the [pmmail-list] it would be more of a chore.  I
wonder if Jimmy could shorten this by 5 lines by changing it to  [pmmail] ?)

--- 
Bruce Francis              BFrancis@pobox.com
 For PGP Public key:  email with Subject "BFrancis Public Key"
________________________________________________________

- pmmail-list - The PMMail Dicussion List ---------------------------
To POST to the list, send your message to
pmmail-list@blueprintsoftwareworks.com

To UNSUBSCRIBE, send a message to mdaemon@bmtmicro.com with the first 
line of the message body being...

UNSUBSCRIBE pmmail-list@blueprintsoftwareworks.com
---------------------------------------------------------------------
--_=_=_=IMA.BOUNDARY.G86RCM138764=_=_=_
Content-Type: application/octet-stream; name="SubjChek.cmd"
Content-Transfer-Encoding: base64

LyogIGRlbGV0ZSAiW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G9fZGVsLCB3KSkgIHRoZW4gZG8NCiAgICAgICAgICAgIFBhcnNlIHZh
bHVlIG9fc3ViaiB3aXRoIC4gb19zdWJqDQogICAgICAgICAgICBMZWF2ZQ0KICAgICAgICAgIGVu
ZA0KICAgICAgICBlbmQNCiAgICAgIGVuZA0KICAgICAgT3RoZXJ3aXNlICBMZWF2ZQ0KICAgIGVu
ZA0KICBlbmQNCiAgSWYgcmVfb3JfZndkIDw+ICcnICB0aGVuIGRvDQogICAgbl9zdWJqID0gbl9z
dWJqIHJlX29yX2Z3ZA0KICBlbmQNCiAgUmV0dXJuIExlZnQobl9zdWJqIG9fc3Viaiwgb19zdWJq
X2xlbmd0aCkNCg==

--_=_=_=IMA.BOUNDARY.G86RCM138764=_=_=_
Content-Type: application/octet-stream; name="TrimLine.cmd"
Content-Transfer-Encoding: base64

LyogIFN1YmplY3QgbGluZSBFZGl0IFNjcmlwdCBmb3IgUE1NYWlsIC0gQ29weXJpZ2h0IDE5OTks
IEpvaG4gJiBDaHJpcyBBbmdlbGljbyAgKi8NCi8qICAgdG8gdHJpbSBvdXQgUmU6IGFuZCBGd2Q6
IGZvciBzb3J0aW5nL3N0b3JpbmcgYnkgdGhyZWFkcyAgICAgICAgICAgICAgICAgICAgICovDQov
KiAgUHV0IHRoaXMgaW50byB0aGUgUE1NQUlMIGRpcmVjdG9yeSBhbmQgdXNlIHRoZSBVdGlsaXRp
ZXMgU2V0dGluZ3MgUkVYWCB0YWIgICAqLw0KLyogICAgIHRvIGludm9rZSB0aGlzIGFzIGEgTWVz
c2FnZSBSZWNlaXZlIEV4aXQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKi8NCi8q
ICBUaGlzIHVzZXMgb25seSBzdGFuZGFyZCBSRVhYIEZ1bmN0aW9ucyBhdmFpbGFibGUgd2l0aCBX
YXJwIDMgb3IgNCAgICAgICAgICAgICovDQovKiAgICAgICAgICAgICAgICAgcGx1cyBSeEV4dHJh
cyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqLw0KLyog
IFJlbGVhc2VkIHRvIHRoZSBQTU1haWwgY29tbXVuaXR5IGZvciB0aGUgYmVuZWZpdCBvZiBhbGwg
ICAgICAgICAgICAgICAgICAgICAgKi8NCi8qICBUYWtlIGl0IGFzIGl0IGlzLiBEbyB3aGF0IHlv
dSBsaWtlIHdpdGggaXQuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICovDQovKiAg
QnV0IGRvbid0IGJsYW1lIHVzIGlmIGl0IGRvZXMgYW55IGRhbWFnZSEhICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAqLw0KLyogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKi8NCg0KLyog
SW5pdGlhbGlzYXRpb24gcm91dGluZXMgKi8NCg0KUGFyc2UgQXJnIHRhcmdldGZpbGUNCnNpZ25h
bCBvbiBzeW50YXgNCg0KLyogTG9hZCB0aGUgUkVYWFV0aWwgZnVuY3Rpb25zICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICovDQpDQUxMIFJ4RnVuY0FkZCAn
U3lzTG9hZEZ1bmNzJywgJ1JleHhVdGlsJywgJ1N5c0xvYWRGdW5jcycNCkNBTEwgU3lzTG9hZEZ1
bmNzDQpDQUxMIFJ4RnVuY0FkZCAnUlhFWFRSQScsICdSeEV4dHJhcycsICdSeEV4dHJhJw0KQ0FM
TCBSeEV4dHJhICJEUk9QIg0KQ0FMTCBSeEZ1bmNBZGQgJ1JYRVhUUkEnLCAnUnhFeHRyYXMnLCAn
UnhFeHRyYScNCkNBTEwgUnhFeHRyYSAiTE9BRCINCg0KLyogQ2hlY2sgZm9yIHBhdGggbmFtZSBv
ZiBtZXNzYWdlIGZpbGUgKi8NCnRhcmdldGZpbGU9c3RyZWFtKHRhcmdldGZpbGUsImMiLCJxdW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