||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
ChopString $body 111 #size
AssignBody %message $body
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
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:
-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?
- Copy message to a particular folder for filing.
- Run the script.
- Forward message to cellphone email address.
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
- 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?).