Wednesday, October 2, 2002 06:49 AM
RTFJD :-) it will ease your concern. They did think of this and they did do it the right way :-)
The JavaDoc for folder.getMessages says:
....Folder implementations are expected to provide light-weight Message objects, which get filled on demand. .....
And in the JavaDoc for Message it says:
A Message object obtained from a folder is just a lightweight reference to the actual message. The Message is 'lazily' filled up (on demand) when each item is requested from the message. Note that certain folder implementations may return Message objects that are pre-filled with certain user-specified items.