1999-04-11 01:04:50 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
1999-04-07 02:35:13 +04:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
1999-05-27 03:51:53 +04:00
|
|
|
interface nsIFolder;
|
|
|
|
|
1999-07-01 10:00:55 +04:00
|
|
|
/*
|
|
|
|
* Interface for incoming mail/news host
|
|
|
|
* this is the base interface for all mail server types (imap, pop, nntp, etc)
|
|
|
|
* often you will want to add extra interfaces that give you server-specific
|
|
|
|
* attributes and methods.
|
|
|
|
*/
|
1999-04-07 02:35:13 +04:00
|
|
|
|
1999-05-27 09:19:55 +04:00
|
|
|
[scriptable, uuid(60dcb100-e3f2-11d2-b7fc-00805f05ffa5)]
|
1999-04-07 02:35:13 +04:00
|
|
|
interface nsIMsgIncomingServer : nsISupports {
|
|
|
|
|
1999-07-01 10:00:55 +04:00
|
|
|
/* internal pref key */
|
1999-04-11 01:04:50 +04:00
|
|
|
attribute string key;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* pretty name - should be "userid on hostname" if this pref is not set */
|
1999-04-07 02:35:13 +04:00
|
|
|
attribute string prettyName;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* hostname of the server */
|
1999-04-07 02:35:13 +04:00
|
|
|
attribute string hostName;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* userid to log into the server */
|
1999-05-27 09:36:10 +04:00
|
|
|
attribute string username;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* server type, i.e. "pop3", "imap", "nntp", etc */
|
1999-07-13 23:23:40 +04:00
|
|
|
attribute string type;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* should we remember the password? */
|
1999-04-16 04:36:52 +04:00
|
|
|
attribute boolean rememberPassword;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* the password to login with (in cleartext for now) */
|
1999-04-07 02:35:13 +04:00
|
|
|
attribute string password;
|
1999-04-16 04:36:52 +04:00
|
|
|
|
1999-07-01 10:00:55 +04:00
|
|
|
/* should we download whole messages when biff goes off? */
|
1999-04-16 04:36:52 +04:00
|
|
|
attribute boolean downloadOnBiff;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* should we biff the server? */
|
1999-04-07 02:35:13 +04:00
|
|
|
attribute boolean doBiff;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* how often to biff */
|
1999-04-07 02:35:13 +04:00
|
|
|
attribute long biffMinutes;
|
1999-04-16 04:36:52 +04:00
|
|
|
|
1999-07-01 10:00:55 +04:00
|
|
|
/* the on-disk path to message storage for this server */
|
1999-04-26 22:38:26 +04:00
|
|
|
attribute string localPath;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* the RDF URI for the root mail folder */
|
1999-04-26 22:38:26 +04:00
|
|
|
readonly attribute string serverURI;
|
1999-05-27 03:51:53 +04:00
|
|
|
|
1999-07-01 10:00:55 +04:00
|
|
|
/* the root folder for this server */
|
1999-05-27 03:51:53 +04:00
|
|
|
attribute nsIFolder RootFolder;
|
1999-06-12 02:07:08 +04:00
|
|
|
|
1999-07-01 10:00:55 +04:00
|
|
|
/* do a biff */
|
1999-06-12 02:07:08 +04:00
|
|
|
void PerformBiff();
|
1999-04-07 02:35:13 +04:00
|
|
|
};
|