1999-09-03 04:57:30 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* The contents of this file are subject to the Netscape Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/NPL/
|
1999-09-03 04:57:30 +00:00
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
1999-09-03 04:57:30 +00:00
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-09-03 04:57:30 +00:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 03:43:54 +00:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1999-09-03 04:57:30 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIUrlListener;
|
|
|
|
interface nsIURI;
|
|
|
|
interface nsIImapUrl;
|
|
|
|
interface nsIEventQueue;
|
|
|
|
interface nsIImapProtocol;
|
|
|
|
interface nsISupportsArray;
|
1999-09-16 23:30:46 +00:00
|
|
|
interface nsIMsgFolder;
|
1999-09-03 04:57:30 +00:00
|
|
|
|
2000-03-21 01:28:59 +00:00
|
|
|
typedef long nsMsgImapDeleteModel;
|
|
|
|
|
|
|
|
[scriptable, uuid(bbfc33de-fe89-11d3-a564-0060b0fc04b7)]
|
|
|
|
interface nsMsgImapDeleteModels
|
|
|
|
{
|
|
|
|
const long IMAPDelete = 0; /* delete with a big red x */
|
|
|
|
const long MoveToTrash = 1; /* delete moves message to the trash */
|
|
|
|
const long DeleteNoTrash = 2; /* delete is shift delete - don't create or use trash */
|
|
|
|
};
|
|
|
|
|
1999-09-03 04:57:30 +00:00
|
|
|
[scriptable, uuid(3d2e7e38-f9d8-11d2-af8f-001083002da8)]
|
|
|
|
interface nsIImapIncomingServer : nsISupports {
|
|
|
|
|
|
|
|
attribute long maximumConnectionsNumber;
|
|
|
|
attribute long timeOutLimits;
|
|
|
|
attribute string adminUrl;
|
2000-02-01 06:51:07 +00:00
|
|
|
attribute string serverDirectory;
|
1999-09-03 04:57:30 +00:00
|
|
|
attribute long capabilityPref;
|
|
|
|
attribute boolean cleanupInboxOnExit;
|
2000-03-21 01:28:59 +00:00
|
|
|
attribute nsMsgImapDeleteModel deleteModel;
|
1999-09-03 04:57:30 +00:00
|
|
|
attribute boolean dualUseFolders;
|
|
|
|
attribute long emptyTrashThreshhold;
|
|
|
|
attribute string personalNamespace;
|
|
|
|
attribute string publicNamespace;
|
|
|
|
attribute string otherUsersNamespace;
|
|
|
|
attribute boolean offlineDownload;
|
|
|
|
attribute boolean overrideNamespaces;
|
|
|
|
attribute boolean usingSubscription;
|
1999-09-05 22:32:41 +00:00
|
|
|
attribute string manageMailAccountUrl;
|
1999-09-16 00:08:02 +00:00
|
|
|
attribute boolean fetchByChunks;
|
|
|
|
attribute boolean mimePartsOnDemand;
|
2000-01-08 01:36:05 +00:00
|
|
|
attribute boolean isAOLServer;
|
2000-04-13 14:41:20 +00:00
|
|
|
attribute boolean aOLMailboxView;
|
2001-03-17 01:59:34 +00:00
|
|
|
attribute boolean storeReadMailInPFC;
|
|
|
|
attribute boolean storeSentMailInPFC;
|
2001-03-22 14:38:00 +00:00
|
|
|
boolean getIsPFC(in string folderName);
|
|
|
|
nsIMsgFolder getPFC(in boolean createIfMissing);
|
2001-03-27 15:22:14 +00:00
|
|
|
attribute boolean downloadBodiesOnGetNewMail;
|
1999-09-12 05:13:51 +00:00
|
|
|
void GetImapConnectionAndLoadUrl(in nsIEventQueue aClientEventQueue,
|
1999-09-03 07:22:10 +00:00
|
|
|
in nsIImapUrl aImapUrl,
|
|
|
|
in nsISupports aConsumer);
|
1999-09-03 04:57:30 +00:00
|
|
|
|
1999-09-03 07:22:10 +00:00
|
|
|
void RemoveConnection(in nsIImapProtocol aImapConnection);
|
1999-09-05 00:04:56 +00:00
|
|
|
void ResetNamespaceReferences();
|
1999-11-11 00:04:45 +00:00
|
|
|
void PseudoInterruptMsgLoad(in nsIImapUrl aImapUrl, out boolean interrupted);
|
1999-12-03 05:59:57 +00:00
|
|
|
void ResetConnection(in string folderName);
|
2000-09-02 14:42:14 +00:00
|
|
|
void CloseConnectionForFolder(in nsIMsgFolder aMsgFolder);
|
2000-02-08 01:20:00 +00:00
|
|
|
void CreatePRUnicharStringFromUTF7(in string aSourceString, out wstring aUnicodeStr);
|
2000-06-09 23:28:03 +00:00
|
|
|
void reDiscoverAllFolders();
|
2001-03-17 01:59:34 +00:00
|
|
|
nsIMsgFolder GetReadMailPFC(in boolean createIfMissing);
|
|
|
|
nsIMsgFolder GetSentMailPFC(in boolean createIfMissing);
|
2000-06-01 02:41:03 +00:00
|
|
|
attribute boolean doingLsub;
|
1999-09-03 04:57:30 +00:00
|
|
|
};
|