 |
Although you certainly could truncate a message using a script you may still
encounter problems. I don't know how the cell phone provide handles message headers.
To truncate a message via an outgoing message script you should setup a filter to fire the script only
when the message is being sent to your cell phone. The following (untested) script code will truncate
the message for you:
ReadBody $body %message
CharCount #size $body
If #size < 110 Then Done
ClearBody %message
ChopString $body 111 #size
AssignBody %message $body
:Done
Exit
PS: You may need to alter the size at which the message is truncated in order to take message headers
into account. To do so you will need to change the script in two places, the "If" statement and the
ChopString statement.
Followup question
The script works well, and the messages are coming in on the phone just fine. I do have a question
about how the script treats the message.
I have a filter set up to do the following:
- Copy message to a particular folder for filing.
- Run the script.
- Forward message to cellphone email address.
-The message in the inbox is correct and not truncated, but the message that is copied to the folder
for filing is truncated. Can that be reversed or anything?
I haven't studied the pocoscripting at all yet and was hoping this may be a simple answer.
Answer to followup question
I would suggest a slight modification to your filters:
- Change the incoming message filter to:
- Forward the message to your cell phone
- Copy (or move) the message to the folder. Copy will create duplicates which you may not want.
- Add an outgoing message filter.
Search for: To - You cell phone address
Actions:
- Run the script.
- Move the message to a folder (or delete it - but only do this if you don't send messages there yourself, but then why would you?).
|