Take the 2-minute tour ×

Using the PHP IMAP library, is it possible to grab just the first 100 characters or so of the message body without grabbing the whole message?

I'm working on a message preview feature, and I don't want to make the user wait for the entirety of every message to load before he/she gets to see the preview.

EDIT: Why was my thanks removed?

share|improve this question
Your thanks was removed (not by me) because hellos, goodbyes, thanks, and signing off by your name are extra noise that have nothing to do with your actual problem. People answering your question just want to know the business of what your question is, not "hello", "thanks", etc. Thank people by upvoting/accepting! –  occulus Dec 31 '12 at 16:40

1 Answer 1

up vote 2 down vote accepted

I don't think you can. But what you can do, however, is fetch certain part of the message body with http://www.php.net/manual/en/function.imap-fetchbody.php

share|improve this answer

Your Answer


