rem: var uri = aEvent.target.id; var server = GetServer(uri); GetMessagesForInboxOnServer(server); aEvent.preventBubble(); 
add: if(CheckOnline()) { GetMessagesForAccount(aEvent); } else { var option = PromptGetMessagesOffline(); if(option == 0) { if (!gOfflineManager) GetOfflineMgrService(); gOfflineManager.goOnline(false /* sendUnsentMessages */, false /* playbackOfflineImapOperations */, msgWindow); GetMessagesForAccount(aEvent); } } 
context: function MsgGetMessagesForAccount(aEvent){    if (!aEvent)        return;    var uri = aEvent.target.id;    var server = GetServer(uri);    GetMessagesForInboxOnServer(server);    aEvent.preventBubble();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4ef34e1cf9a252ce2524634b9d502992e1411965/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js