I've gotten some visible notifications of new mail from my IMAP account. Rather than click, I swipe them away. Later, when I open email, the new message icon does not reflect those messages. When I open the Inbox, they are visible until a sync starts.

So, when are messages downloaded? Is it truly as they arive on the server? Or, is that just the header, and the body is downloaded when accessed for the first time?