rem:         var selectedMessages = GetSelectedMessages(); if (selectedMessages) return selectedMessages[0]; else return null; 
add: return gDBView.URIForFirstSelectedMessage; 
context: function GetFirstSelectedMessage(){    try {        // Use this instead of gDBView.URIForFirstSelectedMessage, else it        // will return the currentIndex message instead of the highlighted        // message.        //        // note, there may not be any selected messages        //        // XXX todo        // is this inefficient when we've got a lot of message selected?        var selectedMessages = GetSelectedMessages();        if (selectedMessages)          return selectedMessages[0];        else          return null;    }    catch (ex) {        return null;    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/95407390f9c8bc9bf38bca5e036a9a6e821c630c/msgMail3PaneWindow.js/clean/mailnews/base/resources/content/msgMail3PaneWindow.js