I have a database full of emails. It contains the to, from, subject, body, etc as columns. I am trying to output essentially the same format, but for the application I will be using the output file for, the body text cannot be longer than about 300 characters. I don't want to just grab the first 300 characters, because I need all the text. What I want to do is chunk the text up such that if an email body is say, 900 characters, to return 3 separate rows, each containing a third of the message, and have the rows all contain the to, from, subject, etc information.
i.e.) I have this:
sender1 recipient1 subject1 body1(600 characters)
sender2 recipient2 subject2 body2(150 characters)
I want this:
sender1 recipient1 subject1 body1(first 300 characters)
sender1 recipient1 subject1 body1(next 300 characters)
sender2 recipient2 subject2 body2(150 characters)
Thanks!