rem: var mailSession = Components.classes[mailSessionContractID].getService(Components.interfaces.nsIMsgMailSession); var nsIFolderListener = Components.interfaces.nsIFolderListener; var notifyFlags = nsIFolderListener.intPropertyChanged | nsIFolderListener.event; mailSession.AddFolderListener(folderListener, notifyFlags); } catch (ex) { dump("Error adding to session\n"); } 
add: var mailSession = Components.classes[mailSessionContractID] .getService(Components.interfaces.nsIMsgMailSession); var nsIFolderListener = Components.interfaces.nsIFolderListener; var notifyFlags = nsIFolderListener.intPropertyChanged | nsIFolderListener.event; mailSession.AddFolderListener(folderListener, notifyFlags); } catch (ex) { dump("Error adding to session\n"); } 
context: function AddToSession(){  try {   var mailSession = Components.classes[mailSessionContractID].getService(Components.interfaces.nsIMsgMailSession);   var nsIFolderListener = Components.interfaces.nsIFolderListener;   var notifyFlags = nsIFolderListener.intPropertyChanged | nsIFolderListener.event;   mailSession.AddFolderListener(folderListener, notifyFlags); } catch (ex) {     dump("Error adding to session\n");   }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/fb4b22d007e7bb58834f8c165d65438725f8d0b1/msgMail3PaneWindow.js/clean/mail/base/content/msgMail3PaneWindow.js