DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/imap/public/nsIImapService.idl
 */

#ifndef __gen_nsIImapService_h__
#define __gen_nsIImapService_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsIImapUrl_h__
#include "nsIImapUrl.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIImapMessageSink; /* forward declaration */

class nsIUrlListener; /* forward declaration */

class nsIURI; /* forward declaration */

class nsIFile; /* forward declaration */

class nsIMsgFolder; /* forward declaration */

class nsIMsgWindow; /* forward declaration */

class nsIMsgMailNewsUrl; /* forward declaration */

class nsIImapIncomingServer; /* forward declaration */

class nsICacheStorage; /* forward declaration */


/* starting interface:    nsIImapService */
#define NS_IIMAPSERVICE_IID_STR "aba44b3d-7a0f-4987-8794-96d2de66d966"

#define NS_IIMAPSERVICE_IID \
  {0xaba44b3d, 0x7a0f, 0x4987, \
    { 0x87, 0x94, 0x96, 0xd2, 0xde, 0x66, 0xd9, 0x66 }}

class NS_NO_VTABLE nsIImapService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIMAPSERVICE_IID)

  /* void selectFolder (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow, out nsIURI aURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SelectFolder(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL) = 0;

  /* nsIURI liteSelectFolder (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LiteSelectFolder(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) = 0;

  /* void addImapFetchToUrl (in nsIMsgMailNewsUrl aURL, in nsIMsgFolder aImapMailFolder, in ACString aMessageIdentifierList, in ACString aAdditionalHeader); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddImapFetchToUrl(nsIMsgMailNewsUrl *aURL, nsIMsgFolder *aImapMailFolder, const nsACString& aMessageIdentifierList, const nsACString& aAdditionalHeader) = 0;

  /* void fetchMessage (in nsIImapUrl aUrl, in nsImapState aImapAction, in nsIMsgFolder aImapMailFolder, in nsIImapMessageSink aImapMessageSink, in nsIMsgWindow aMsgWindow, in nsISupports aConsumer, in ACString aMessageIdentifierList, in boolean convertDataToText, in ACString additionalHeader, out nsIURI aOutURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FetchMessage(nsIImapUrl *aUrl, nsImapState aImapAction, nsIMsgFolder *aImapMailFolder, nsIImapMessageSink *aImapMessageSink, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, const nsACString& aMessageIdentifierList, bool convertDataToText, const nsACString& additionalHeader, nsIURI **aOutURL) = 0;

  /* void noop (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Noop(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL) = 0;

  /* void getHeaders (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in boolean aMessageIdsAreUID); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHeaders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, bool aMessageIdsAreUID) = 0;

  /* nsIURI getBodyStart (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in ACString aMessageIdentifierList, in long numBytes); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetBodyStart(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString& aMessageIdentifierList, int32_t numBytes, nsIURI **_retval) = 0;

  /* void expunge (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow, out nsIURI aURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Expunge(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL) = 0;

  /* nsIURI updateFolderStatus (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateFolderStatus(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **_retval) = 0;

  /* nsIURI verifyLogon (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD VerifyLogon(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) = 0;

  /* void biff (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in unsigned long aUidHighWater); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Biff(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, uint32_t aUidHighWater) = 0;

  /* void deleteMessages (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in boolean aMessageIdsAreUID); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteMessages(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, bool aMessageIdsAreUID) = 0;

  /* void deleteAllMessages (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteAllMessages(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL) = 0;

  /* void addMessageFlags (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in imapMessageFlagsType aFlags, in boolean aMessageIdsAreUID); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) = 0;

  /* void subtractMessageFlags (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in imapMessageFlagsType aFlags, in boolean aMessageIdsAreUID); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SubtractMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) = 0;

  /* void setMessageFlags (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL, in ACString aMessageIdentifierList, in imapMessageFlagsType aFlags, in boolean aMessageIdsAreUID); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) = 0;

  /* void discoverAllFolders (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow, out nsIURI aURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DiscoverAllFolders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL) = 0;

  /* void discoverAllAndSubscribedFolders (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, out nsIURI aURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DiscoverAllAndSubscribedFolders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL) = 0;

  /* void discoverChildren (in nsIMsgFolder aImapMailFolder, in nsIUrlListener aUrlListener, in ACString folderPath, out nsIURI aURL); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DiscoverChildren(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString& folderPath, nsIURI **aURL) = 0;

  /* void onlineMessageCopy (in nsIMsgFolder aSrcFolder, in ACString aMessageIds, in nsIMsgFolder aDstFolder, in boolean aIdsAreUids, in boolean aIsMove, in nsIUrlListener aUrlListener, out nsIURI aURL, in nsISupports aCopyState, in nsIMsgWindow aWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnlineMessageCopy(nsIMsgFolder *aSrcFolder, const nsACString& aMessageIds, nsIMsgFolder *aDstFolder, bool aIdsAreUids, bool aIsMove, nsIUrlListener *aUrlListener, nsIURI **aURL, nsISupports *aCopyState, nsIMsgWindow *aWindow) = 0;

  /* void appendMessageFromFile (in nsIFile aFile, in nsIMsgFolder aDstFolder, in ACString aMessageId, in boolean idsAreUids, in boolean aInSelectedState, in nsIUrlListener aUrlListener, out nsIURI aURL, in nsISupports aCopyState, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AppendMessageFromFile(nsIFile *aFile, nsIMsgFolder *aDstFolder, const nsACString& aMessageId, bool idsAreUids, bool aInSelectedState, nsIUrlListener *aUrlListener, nsIURI **aURL, nsISupports *aCopyState, nsIMsgWindow *aMsgWindow) = 0;

  /* void downloadMessagesForOffline (in ACString aMessageIds, in nsIMsgFolder aSrcFolder, in nsIUrlListener aListener, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DownloadMessagesForOffline(const nsACString& aMessageIds, nsIMsgFolder *aSrcFolder, nsIUrlListener *aListener, nsIMsgWindow *aMsgWindow) = 0;

  /* nsIURI moveFolder (in nsIMsgFolder aSrcFolder, in nsIMsgFolder aDstFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow msgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MoveFolder(nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDstFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI **_retval) = 0;

  /* nsIURI renameLeaf (in nsIMsgFolder aSrcFolder, in AString aLeafName, in nsIUrlListener aUrlListener, in nsIMsgWindow msgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RenameLeaf(nsIMsgFolder *aSrcFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI **_retval) = 0;

  /* nsIURI deleteFolder (in nsIMsgFolder aFolder, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteFolder(nsIMsgFolder *aFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) = 0;

  /* nsIURI createFolder (in nsIMsgFolder aParentFolder, in AString aLeafName, in nsIUrlListener aUrlListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateFolder(nsIMsgFolder *aParentFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIURI **_retval) = 0;

  /* nsIURI listFolder (in nsIMsgFolder aMailFolder, in nsIUrlListener aUrlListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ListFolder(nsIMsgFolder *aMailFolder, nsIUrlListener *aUrlListener, nsIURI **_retval) = 0;

  /* nsIURI subscribeFolder (in nsIMsgFolder aMailFolder, in AString mailboxName, in nsIUrlListener aUrlListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SubscribeFolder(nsIMsgFolder *aMailFolder, const nsAString& mailboxName, nsIUrlListener *aUrlListener, nsIURI **_retval) = 0;

  /* nsIURI unsubscribeFolder (in nsIMsgFolder aMailFolder, in AString mailboxName, in nsIUrlListener aUrlListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UnsubscribeFolder(nsIMsgFolder *aMailFolder, const nsAString& mailboxName, nsIUrlListener *aUrlListener, nsIURI **_retval) = 0;

  /* nsIURI ensureFolderExists (in nsIMsgFolder aParentFolder, in AString aLeafName, in nsIUrlListener aUrlListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EnsureFolderExists(nsIMsgFolder *aParentFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIURI **_retval) = 0;

  /* nsIURI getFolderAdminUrl (in nsIMsgFolder aMailFolder, in nsIMsgWindow aMsgWindow, in nsIUrlListener aUrlListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderAdminUrl(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIURI **_retval) = 0;

  /* nsIURI issueCommandOnMsgs (in nsIMsgFolder aMailFolder, in nsIMsgWindow aMsgWindow, in ACString aCommand, in ACString aMessageIdentifierList); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IssueCommandOnMsgs(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& aCommand, const nsACString& aMessageIdentifierList, nsIURI **_retval) = 0;

  /* nsIURI fetchCustomMsgAttribute (in nsIMsgFolder aMailFolder, in nsIMsgWindow aMsgWindow, in ACString aAttribute, in ACString aMessageIdentifierList); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FetchCustomMsgAttribute(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& aAttribute, const nsACString& aMessageIdentifierList, nsIURI **_retval) = 0;

  /* nsIURI storeCustomKeywords (in nsIMsgFolder aMailFolder, in nsIMsgWindow aMsgWindow, in ACString flagsToAdd, in ACString flagsToSubtract, in ACString aMessageIdentifierList); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StoreCustomKeywords(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& flagsToAdd, const nsACString& flagsToSubtract, const nsACString& aMessageIdentifierList, nsIURI **_retval) = 0;

  /* void getListOfFoldersOnServer (in nsIImapIncomingServer aServer, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetListOfFoldersOnServer(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow) = 0;

  /* void getListOfFoldersWithPath (in nsIImapIncomingServer aServer, in nsIMsgWindow aMsgWindow, in ACString folderPath); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetListOfFoldersWithPath(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow, const nsACString& folderPath) = 0;

  /* nsISupports playbackAllOfflineOperations (in nsIMsgWindow aMsgWindow, in nsIUrlListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PlaybackAllOfflineOperations(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener, nsISupports **_retval) = 0;

  /* void downloadAllOffineImapFolders (in nsIMsgWindow aMsgWindow, in nsIUrlListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DownloadAllOffineImapFolders(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener) = 0;

  /* readonly attribute nsICacheStorage cacheStorage; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCacheStorage(nsICacheStorage **aCacheStorage) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIImapService, NS_IIMAPSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIMAPSERVICE \
  NS_IMETHOD SelectFolder(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL) override; \
  NS_IMETHOD LiteSelectFolder(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override; \
  NS_IMETHOD AddImapFetchToUrl(nsIMsgMailNewsUrl *aURL, nsIMsgFolder *aImapMailFolder, const nsACString& aMessageIdentifierList, const nsACString& aAdditionalHeader) override; \
  NS_IMETHOD FetchMessage(nsIImapUrl *aUrl, nsImapState aImapAction, nsIMsgFolder *aImapMailFolder, nsIImapMessageSink *aImapMessageSink, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, const nsACString& aMessageIdentifierList, bool convertDataToText, const nsACString& additionalHeader, nsIURI **aOutURL) override; \
  NS_IMETHOD Noop(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL) override; \
  NS_IMETHOD GetHeaders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, bool aMessageIdsAreUID) override; \
  NS_IMETHOD GetBodyStart(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString& aMessageIdentifierList, int32_t numBytes, nsIURI **_retval) override; \
  NS_IMETHOD Expunge(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL) override; \
  NS_IMETHOD UpdateFolderStatus(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **_retval) override; \
  NS_IMETHOD VerifyLogon(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override; \
  NS_IMETHOD Biff(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, uint32_t aUidHighWater) override; \
  NS_IMETHOD DeleteMessages(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, bool aMessageIdsAreUID) override; \
  NS_IMETHOD DeleteAllMessages(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL) override; \
  NS_IMETHOD AddMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) override; \
  NS_IMETHOD SubtractMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) override; \
  NS_IMETHOD SetMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) override; \
  NS_IMETHOD DiscoverAllFolders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL) override; \
  NS_IMETHOD DiscoverAllAndSubscribedFolders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL) override; \
  NS_IMETHOD DiscoverChildren(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString& folderPath, nsIURI **aURL) override; \
  NS_IMETHOD OnlineMessageCopy(nsIMsgFolder *aSrcFolder, const nsACString& aMessageIds, nsIMsgFolder *aDstFolder, bool aIdsAreUids, bool aIsMove, nsIUrlListener *aUrlListener, nsIURI **aURL, nsISupports *aCopyState, nsIMsgWindow *aWindow) override; \
  NS_IMETHOD AppendMessageFromFile(nsIFile *aFile, nsIMsgFolder *aDstFolder, const nsACString& aMessageId, bool idsAreUids, bool aInSelectedState, nsIUrlListener *aUrlListener, nsIURI **aURL, nsISupports *aCopyState, nsIMsgWindow *aMsgWindow) override; \
  NS_IMETHOD DownloadMessagesForOffline(const nsACString& aMessageIds, nsIMsgFolder *aSrcFolder, nsIUrlListener *aListener, nsIMsgWindow *aMsgWindow) override; \
  NS_IMETHOD MoveFolder(nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDstFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI **_retval) override; \
  NS_IMETHOD RenameLeaf(nsIMsgFolder *aSrcFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI **_retval) override; \
  NS_IMETHOD DeleteFolder(nsIMsgFolder *aFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override; \
  NS_IMETHOD CreateFolder(nsIMsgFolder *aParentFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIURI **_retval) override; \
  NS_IMETHOD ListFolder(nsIMsgFolder *aMailFolder, nsIUrlListener *aUrlListener, nsIURI **_retval) override; \
  NS_IMETHOD SubscribeFolder(nsIMsgFolder *aMailFolder, const nsAString& mailboxName, nsIUrlListener *aUrlListener, nsIURI **_retval) override; \
  NS_IMETHOD UnsubscribeFolder(nsIMsgFolder *aMailFolder, const nsAString& mailboxName, nsIUrlListener *aUrlListener, nsIURI **_retval) override; \
  NS_IMETHOD EnsureFolderExists(nsIMsgFolder *aParentFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIURI **_retval) override; \
  NS_IMETHOD GetFolderAdminUrl(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIURI **_retval) override; \
  NS_IMETHOD IssueCommandOnMsgs(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& aCommand, const nsACString& aMessageIdentifierList, nsIURI **_retval) override; \
  NS_IMETHOD FetchCustomMsgAttribute(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& aAttribute, const nsACString& aMessageIdentifierList, nsIURI **_retval) override; \
  NS_IMETHOD StoreCustomKeywords(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& flagsToAdd, const nsACString& flagsToSubtract, const nsACString& aMessageIdentifierList, nsIURI **_retval) override; \
  NS_IMETHOD GetListOfFoldersOnServer(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow) override; \
  NS_IMETHOD GetListOfFoldersWithPath(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow, const nsACString& folderPath) override; \
  NS_IMETHOD PlaybackAllOfflineOperations(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener, nsISupports **_retval) override; \
  NS_IMETHOD DownloadAllOffineImapFolders(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener) override; \
  NS_IMETHOD GetCacheStorage(nsICacheStorage **aCacheStorage) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIIMAPSERVICE \
  nsresult SelectFolder(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL); \
  nsresult LiteSelectFolder(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval); \
  nsresult AddImapFetchToUrl(nsIMsgMailNewsUrl *aURL, nsIMsgFolder *aImapMailFolder, const nsACString& aMessageIdentifierList, const nsACString& aAdditionalHeader); \
  nsresult FetchMessage(nsIImapUrl *aUrl, nsImapState aImapAction, nsIMsgFolder *aImapMailFolder, nsIImapMessageSink *aImapMessageSink, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, const nsACString& aMessageIdentifierList, bool convertDataToText, const nsACString& additionalHeader, nsIURI **aOutURL); \
  nsresult Noop(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL); \
  nsresult GetHeaders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, bool aMessageIdsAreUID); \
  nsresult GetBodyStart(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString& aMessageIdentifierList, int32_t numBytes, nsIURI **_retval); \
  nsresult Expunge(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL); \
  nsresult UpdateFolderStatus(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **_retval); \
  nsresult VerifyLogon(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval); \
  nsresult Biff(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, uint32_t aUidHighWater); \
  nsresult DeleteMessages(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, bool aMessageIdsAreUID); \
  nsresult DeleteAllMessages(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL); \
  nsresult AddMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID); \
  nsresult SubtractMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID); \
  nsresult SetMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID); \
  nsresult DiscoverAllFolders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL); \
  nsresult DiscoverAllAndSubscribedFolders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL); \
  nsresult DiscoverChildren(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString& folderPath, nsIURI **aURL); \
  nsresult OnlineMessageCopy(nsIMsgFolder *aSrcFolder, const nsACString& aMessageIds, nsIMsgFolder *aDstFolder, bool aIdsAreUids, bool aIsMove, nsIUrlListener *aUrlListener, nsIURI **aURL, nsISupports *aCopyState, nsIMsgWindow *aWindow); \
  nsresult AppendMessageFromFile(nsIFile *aFile, nsIMsgFolder *aDstFolder, const nsACString& aMessageId, bool idsAreUids, bool aInSelectedState, nsIUrlListener *aUrlListener, nsIURI **aURL, nsISupports *aCopyState, nsIMsgWindow *aMsgWindow); \
  nsresult DownloadMessagesForOffline(const nsACString& aMessageIds, nsIMsgFolder *aSrcFolder, nsIUrlListener *aListener, nsIMsgWindow *aMsgWindow); \
  nsresult MoveFolder(nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDstFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI **_retval); \
  nsresult RenameLeaf(nsIMsgFolder *aSrcFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI **_retval); \
  nsresult DeleteFolder(nsIMsgFolder *aFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval); \
  nsresult CreateFolder(nsIMsgFolder *aParentFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIURI **_retval); \
  nsresult ListFolder(nsIMsgFolder *aMailFolder, nsIUrlListener *aUrlListener, nsIURI **_retval); \
  nsresult SubscribeFolder(nsIMsgFolder *aMailFolder, const nsAString& mailboxName, nsIUrlListener *aUrlListener, nsIURI **_retval); \
  nsresult UnsubscribeFolder(nsIMsgFolder *aMailFolder, const nsAString& mailboxName, nsIUrlListener *aUrlListener, nsIURI **_retval); \
  nsresult EnsureFolderExists(nsIMsgFolder *aParentFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIURI **_retval); \
  nsresult GetFolderAdminUrl(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIURI **_retval); \
  nsresult IssueCommandOnMsgs(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& aCommand, const nsACString& aMessageIdentifierList, nsIURI **_retval); \
  nsresult FetchCustomMsgAttribute(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& aAttribute, const nsACString& aMessageIdentifierList, nsIURI **_retval); \
  nsresult StoreCustomKeywords(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& flagsToAdd, const nsACString& flagsToSubtract, const nsACString& aMessageIdentifierList, nsIURI **_retval); \
  nsresult GetListOfFoldersOnServer(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow); \
  nsresult GetListOfFoldersWithPath(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow, const nsACString& folderPath); \
  nsresult PlaybackAllOfflineOperations(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener, nsISupports **_retval); \
  nsresult DownloadAllOffineImapFolders(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener); \
  nsresult GetCacheStorage(nsICacheStorage **aCacheStorage); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIMAPSERVICE(_to) \
  NS_IMETHOD SelectFolder(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL) override { return _to SelectFolder(aImapMailFolder, aUrlListener, aMsgWindow, aURL); } \
  NS_IMETHOD LiteSelectFolder(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override { return _to LiteSelectFolder(aImapMailFolder, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD AddImapFetchToUrl(nsIMsgMailNewsUrl *aURL, nsIMsgFolder *aImapMailFolder, const nsACString& aMessageIdentifierList, const nsACString& aAdditionalHeader) override { return _to AddImapFetchToUrl(aURL, aImapMailFolder, aMessageIdentifierList, aAdditionalHeader); } \
  NS_IMETHOD FetchMessage(nsIImapUrl *aUrl, nsImapState aImapAction, nsIMsgFolder *aImapMailFolder, nsIImapMessageSink *aImapMessageSink, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, const nsACString& aMessageIdentifierList, bool convertDataToText, const nsACString& additionalHeader, nsIURI **aOutURL) override { return _to FetchMessage(aUrl, aImapAction, aImapMailFolder, aImapMessageSink, aMsgWindow, aConsumer, aMessageIdentifierList, convertDataToText, additionalHeader, aOutURL); } \
  NS_IMETHOD Noop(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL) override { return _to Noop(aImapMailFolder, aUrlListener, aURL); } \
  NS_IMETHOD GetHeaders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, bool aMessageIdsAreUID) override { return _to GetHeaders(aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aMessageIdsAreUID); } \
  NS_IMETHOD GetBodyStart(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString& aMessageIdentifierList, int32_t numBytes, nsIURI **_retval) override { return _to GetBodyStart(aImapMailFolder, aUrlListener, aMessageIdentifierList, numBytes, _retval); } \
  NS_IMETHOD Expunge(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL) override { return _to Expunge(aImapMailFolder, aUrlListener, aMsgWindow, aURL); } \
  NS_IMETHOD UpdateFolderStatus(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return _to UpdateFolderStatus(aImapMailFolder, aUrlListener, _retval); } \
  NS_IMETHOD VerifyLogon(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override { return _to VerifyLogon(aImapMailFolder, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD Biff(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, uint32_t aUidHighWater) override { return _to Biff(aImapMailFolder, aUrlListener, aURL, aUidHighWater); } \
  NS_IMETHOD DeleteMessages(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, bool aMessageIdsAreUID) override { return _to DeleteMessages(aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aMessageIdsAreUID); } \
  NS_IMETHOD DeleteAllMessages(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL) override { return _to DeleteAllMessages(aImapMailFolder, aUrlListener, aURL); } \
  NS_IMETHOD AddMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) override { return _to AddMessageFlags(aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aFlags, aMessageIdsAreUID); } \
  NS_IMETHOD SubtractMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) override { return _to SubtractMessageFlags(aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aFlags, aMessageIdsAreUID); } \
  NS_IMETHOD SetMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) override { return _to SetMessageFlags(aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aFlags, aMessageIdsAreUID); } \
  NS_IMETHOD DiscoverAllFolders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL) override { return _to DiscoverAllFolders(aImapMailFolder, aUrlListener, aMsgWindow, aURL); } \
  NS_IMETHOD DiscoverAllAndSubscribedFolders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL) override { return _to DiscoverAllAndSubscribedFolders(aImapMailFolder, aUrlListener, aURL); } \
  NS_IMETHOD DiscoverChildren(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString& folderPath, nsIURI **aURL) override { return _to DiscoverChildren(aImapMailFolder, aUrlListener, folderPath, aURL); } \
  NS_IMETHOD OnlineMessageCopy(nsIMsgFolder *aSrcFolder, const nsACString& aMessageIds, nsIMsgFolder *aDstFolder, bool aIdsAreUids, bool aIsMove, nsIUrlListener *aUrlListener, nsIURI **aURL, nsISupports *aCopyState, nsIMsgWindow *aWindow) override { return _to OnlineMessageCopy(aSrcFolder, aMessageIds, aDstFolder, aIdsAreUids, aIsMove, aUrlListener, aURL, aCopyState, aWindow); } \
  NS_IMETHOD AppendMessageFromFile(nsIFile *aFile, nsIMsgFolder *aDstFolder, const nsACString& aMessageId, bool idsAreUids, bool aInSelectedState, nsIUrlListener *aUrlListener, nsIURI **aURL, nsISupports *aCopyState, nsIMsgWindow *aMsgWindow) override { return _to AppendMessageFromFile(aFile, aDstFolder, aMessageId, idsAreUids, aInSelectedState, aUrlListener, aURL, aCopyState, aMsgWindow); } \
  NS_IMETHOD DownloadMessagesForOffline(const nsACString& aMessageIds, nsIMsgFolder *aSrcFolder, nsIUrlListener *aListener, nsIMsgWindow *aMsgWindow) override { return _to DownloadMessagesForOffline(aMessageIds, aSrcFolder, aListener, aMsgWindow); } \
  NS_IMETHOD MoveFolder(nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDstFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI **_retval) override { return _to MoveFolder(aSrcFolder, aDstFolder, aUrlListener, msgWindow, _retval); } \
  NS_IMETHOD RenameLeaf(nsIMsgFolder *aSrcFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI **_retval) override { return _to RenameLeaf(aSrcFolder, aLeafName, aUrlListener, msgWindow, _retval); } \
  NS_IMETHOD DeleteFolder(nsIMsgFolder *aFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override { return _to DeleteFolder(aFolder, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD CreateFolder(nsIMsgFolder *aParentFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return _to CreateFolder(aParentFolder, aLeafName, aUrlListener, _retval); } \
  NS_IMETHOD ListFolder(nsIMsgFolder *aMailFolder, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return _to ListFolder(aMailFolder, aUrlListener, _retval); } \
  NS_IMETHOD SubscribeFolder(nsIMsgFolder *aMailFolder, const nsAString& mailboxName, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return _to SubscribeFolder(aMailFolder, mailboxName, aUrlListener, _retval); } \
  NS_IMETHOD UnsubscribeFolder(nsIMsgFolder *aMailFolder, const nsAString& mailboxName, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return _to UnsubscribeFolder(aMailFolder, mailboxName, aUrlListener, _retval); } \
  NS_IMETHOD EnsureFolderExists(nsIMsgFolder *aParentFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return _to EnsureFolderExists(aParentFolder, aLeafName, aUrlListener, _retval); } \
  NS_IMETHOD GetFolderAdminUrl(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return _to GetFolderAdminUrl(aMailFolder, aMsgWindow, aUrlListener, _retval); } \
  NS_IMETHOD IssueCommandOnMsgs(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& aCommand, const nsACString& aMessageIdentifierList, nsIURI **_retval) override { return _to IssueCommandOnMsgs(aMailFolder, aMsgWindow, aCommand, aMessageIdentifierList, _retval); } \
  NS_IMETHOD FetchCustomMsgAttribute(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& aAttribute, const nsACString& aMessageIdentifierList, nsIURI **_retval) override { return _to FetchCustomMsgAttribute(aMailFolder, aMsgWindow, aAttribute, aMessageIdentifierList, _retval); } \
  NS_IMETHOD StoreCustomKeywords(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& flagsToAdd, const nsACString& flagsToSubtract, const nsACString& aMessageIdentifierList, nsIURI **_retval) override { return _to StoreCustomKeywords(aMailFolder, aMsgWindow, flagsToAdd, flagsToSubtract, aMessageIdentifierList, _retval); } \
  NS_IMETHOD GetListOfFoldersOnServer(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow) override { return _to GetListOfFoldersOnServer(aServer, aMsgWindow); } \
  NS_IMETHOD GetListOfFoldersWithPath(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow, const nsACString& folderPath) override { return _to GetListOfFoldersWithPath(aServer, aMsgWindow, folderPath); } \
  NS_IMETHOD PlaybackAllOfflineOperations(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener, nsISupports **_retval) override { return _to PlaybackAllOfflineOperations(aMsgWindow, aListener, _retval); } \
  NS_IMETHOD DownloadAllOffineImapFolders(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener) override { return _to DownloadAllOffineImapFolders(aMsgWindow, aListener); } \
  NS_IMETHOD GetCacheStorage(nsICacheStorage **aCacheStorage) override { return _to GetCacheStorage(aCacheStorage); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIMAPSERVICE(_to) \
  NS_IMETHOD SelectFolder(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectFolder(aImapMailFolder, aUrlListener, aMsgWindow, aURL); } \
  NS_IMETHOD LiteSelectFolder(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LiteSelectFolder(aImapMailFolder, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD AddImapFetchToUrl(nsIMsgMailNewsUrl *aURL, nsIMsgFolder *aImapMailFolder, const nsACString& aMessageIdentifierList, const nsACString& aAdditionalHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddImapFetchToUrl(aURL, aImapMailFolder, aMessageIdentifierList, aAdditionalHeader); } \
  NS_IMETHOD FetchMessage(nsIImapUrl *aUrl, nsImapState aImapAction, nsIMsgFolder *aImapMailFolder, nsIImapMessageSink *aImapMessageSink, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, const nsACString& aMessageIdentifierList, bool convertDataToText, const nsACString& additionalHeader, nsIURI **aOutURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FetchMessage(aUrl, aImapAction, aImapMailFolder, aImapMessageSink, aMsgWindow, aConsumer, aMessageIdentifierList, convertDataToText, additionalHeader, aOutURL); } \
  NS_IMETHOD Noop(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Noop(aImapMailFolder, aUrlListener, aURL); } \
  NS_IMETHOD GetHeaders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, bool aMessageIdsAreUID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeaders(aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aMessageIdsAreUID); } \
  NS_IMETHOD GetBodyStart(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString& aMessageIdentifierList, int32_t numBytes, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBodyStart(aImapMailFolder, aUrlListener, aMessageIdentifierList, numBytes, _retval); } \
  NS_IMETHOD Expunge(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Expunge(aImapMailFolder, aUrlListener, aMsgWindow, aURL); } \
  NS_IMETHOD UpdateFolderStatus(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateFolderStatus(aImapMailFolder, aUrlListener, _retval); } \
  NS_IMETHOD VerifyLogon(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VerifyLogon(aImapMailFolder, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD Biff(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, uint32_t aUidHighWater) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Biff(aImapMailFolder, aUrlListener, aURL, aUidHighWater); } \
  NS_IMETHOD DeleteMessages(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, bool aMessageIdsAreUID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteMessages(aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aMessageIdsAreUID); } \
  NS_IMETHOD DeleteAllMessages(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteAllMessages(aImapMailFolder, aUrlListener, aURL); } \
  NS_IMETHOD AddMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMessageFlags(aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aFlags, aMessageIdsAreUID); } \
  NS_IMETHOD SubtractMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SubtractMessageFlags(aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aFlags, aMessageIdsAreUID); } \
  NS_IMETHOD SetMessageFlags(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL, const nsACString& aMessageIdentifierList, imapMessageFlagsType aFlags, bool aMessageIdsAreUID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageFlags(aImapMailFolder, aUrlListener, aURL, aMessageIdentifierList, aFlags, aMessageIdsAreUID); } \
  NS_IMETHOD DiscoverAllFolders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DiscoverAllFolders(aImapMailFolder, aUrlListener, aMsgWindow, aURL); } \
  NS_IMETHOD DiscoverAllAndSubscribedFolders(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, nsIURI **aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DiscoverAllAndSubscribedFolders(aImapMailFolder, aUrlListener, aURL); } \
  NS_IMETHOD DiscoverChildren(nsIMsgFolder *aImapMailFolder, nsIUrlListener *aUrlListener, const nsACString& folderPath, nsIURI **aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DiscoverChildren(aImapMailFolder, aUrlListener, folderPath, aURL); } \
  NS_IMETHOD OnlineMessageCopy(nsIMsgFolder *aSrcFolder, const nsACString& aMessageIds, nsIMsgFolder *aDstFolder, bool aIdsAreUids, bool aIsMove, nsIUrlListener *aUrlListener, nsIURI **aURL, nsISupports *aCopyState, nsIMsgWindow *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnlineMessageCopy(aSrcFolder, aMessageIds, aDstFolder, aIdsAreUids, aIsMove, aUrlListener, aURL, aCopyState, aWindow); } \
  NS_IMETHOD AppendMessageFromFile(nsIFile *aFile, nsIMsgFolder *aDstFolder, const nsACString& aMessageId, bool idsAreUids, bool aInSelectedState, nsIUrlListener *aUrlListener, nsIURI **aURL, nsISupports *aCopyState, nsIMsgWindow *aMsgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendMessageFromFile(aFile, aDstFolder, aMessageId, idsAreUids, aInSelectedState, aUrlListener, aURL, aCopyState, aMsgWindow); } \
  NS_IMETHOD DownloadMessagesForOffline(const nsACString& aMessageIds, nsIMsgFolder *aSrcFolder, nsIUrlListener *aListener, nsIMsgWindow *aMsgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DownloadMessagesForOffline(aMessageIds, aSrcFolder, aListener, aMsgWindow); } \
  NS_IMETHOD MoveFolder(nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDstFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveFolder(aSrcFolder, aDstFolder, aUrlListener, msgWindow, _retval); } \
  NS_IMETHOD RenameLeaf(nsIMsgFolder *aSrcFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIMsgWindow *msgWindow, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RenameLeaf(aSrcFolder, aLeafName, aUrlListener, msgWindow, _retval); } \
  NS_IMETHOD DeleteFolder(nsIMsgFolder *aFolder, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteFolder(aFolder, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD CreateFolder(nsIMsgFolder *aParentFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateFolder(aParentFolder, aLeafName, aUrlListener, _retval); } \
  NS_IMETHOD ListFolder(nsIMsgFolder *aMailFolder, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ListFolder(aMailFolder, aUrlListener, _retval); } \
  NS_IMETHOD SubscribeFolder(nsIMsgFolder *aMailFolder, const nsAString& mailboxName, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SubscribeFolder(aMailFolder, mailboxName, aUrlListener, _retval); } \
  NS_IMETHOD UnsubscribeFolder(nsIMsgFolder *aMailFolder, const nsAString& mailboxName, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnsubscribeFolder(aMailFolder, mailboxName, aUrlListener, _retval); } \
  NS_IMETHOD EnsureFolderExists(nsIMsgFolder *aParentFolder, const nsAString& aLeafName, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureFolderExists(aParentFolder, aLeafName, aUrlListener, _retval); } \
  NS_IMETHOD GetFolderAdminUrl(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderAdminUrl(aMailFolder, aMsgWindow, aUrlListener, _retval); } \
  NS_IMETHOD IssueCommandOnMsgs(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& aCommand, const nsACString& aMessageIdentifierList, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IssueCommandOnMsgs(aMailFolder, aMsgWindow, aCommand, aMessageIdentifierList, _retval); } \
  NS_IMETHOD FetchCustomMsgAttribute(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& aAttribute, const nsACString& aMessageIdentifierList, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FetchCustomMsgAttribute(aMailFolder, aMsgWindow, aAttribute, aMessageIdentifierList, _retval); } \
  NS_IMETHOD StoreCustomKeywords(nsIMsgFolder *aMailFolder, nsIMsgWindow *aMsgWindow, const nsACString& flagsToAdd, const nsACString& flagsToSubtract, const nsACString& aMessageIdentifierList, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StoreCustomKeywords(aMailFolder, aMsgWindow, flagsToAdd, flagsToSubtract, aMessageIdentifierList, _retval); } \
  NS_IMETHOD GetListOfFoldersOnServer(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListOfFoldersOnServer(aServer, aMsgWindow); } \
  NS_IMETHOD GetListOfFoldersWithPath(nsIImapIncomingServer *aServer, nsIMsgWindow *aMsgWindow, const nsACString& folderPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListOfFoldersWithPath(aServer, aMsgWindow, folderPath); } \
  NS_IMETHOD PlaybackAllOfflineOperations(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener, nsISupports **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PlaybackAllOfflineOperations(aMsgWindow, aListener, _retval); } \
  NS_IMETHOD DownloadAllOffineImapFolders(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DownloadAllOffineImapFolders(aMsgWindow, aListener); } \
  NS_IMETHOD GetCacheStorage(nsICacheStorage **aCacheStorage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheStorage(aCacheStorage); } 


#endif /* __gen_nsIImapService_h__ */