The answer is still "NO". Just reading (allowing infected content to be displayed) will infect your machine whether you are reading online or offline.
Actually, I think you are asking the wrong question.
So please let me suggest to you more of what you need to know about potentially infectious email content.
You apparently already know that "attached files" can contain Malware and therefore should not be opened unless you know and trust the sender, and know in advance that they will be sending an attached file.
But there are also other ways that Malware can be transmitted to your machine from email.
__________________
These days people like to be "fancy" with their email.
- Colored Font
- Emoticons
- Backgrounds and Borders
- Animated characters
- Embedded pictures
- Numbered or bolded lists (like this list)
All of the above features (and others) are what I mean by "fancy".
These features require .html coding in the email to display the colors, pictures, background, borders, animations, etc.
.HTML coding can carry MALWARE infection!
Your machine can be infected simply by allowing these features to be displayed, even in preview pane. (whether you are online or offline)
________________________________
The best solution:
You can protect your machine from being infected by any malware that might be hidden in these fancy features, by preventing fancy features from being displayed at all, ever.
I have set my own Outlook Email options to:
Read all standard mail in plain text
(I've included a screenshot from my Outlook 2003, yours should be similar but a bit different depending upon your version of Outlook or other email client you may use)
Another "fancy" thing that some people and many businesses include in Email is a request to be notified as soon as the person receiving the email opens it.
That way, the sender knows that you've opened and read their message.
I set my Outlook to:
Ask me before sending a response
(mostly I tend to refuse to send those responses)
Again here is a screen shot attached to show you where to set this preference.
You can set your Email Preferences: (I recommend: read all standard mail in plain text)
Outlook - Tools - Options - Preferences(tab) - Email Options
and
Outlook - Tools - Options - Preferences(tab) - Email Options -tracking Options(button)
______________________-
So what do you get for your efforts?
Well... Your emails will be "plain text", just like this typed sentence.
You can safely read all of what the person or business has written to you, but you will not see any of the fancy stuff that they may have wanted to display.
If the sender "did use fancy stuff" when they composed their email to you, your Outlook will inform you and ask if you want to display the fancy stuff, and even to display it as a webpage for full effect.
My advice:
Don't. Even friends may unknowingly send something that has been infected.
________________________
So the question is not "Online" or "Offline" viewing.
Instead, it is "Plain Text" or "HTML enhanced display"
I always go with "Plain Text"