2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
2004-04-17 22:33:16 +04:00
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1999-04-07 02:35:13 +04:00
|
|
|
*
|
2004-04-17 22:33:16 +04:00
|
|
|
* The contents of this file are subject to the Mozilla 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/MPL/
|
1999-04-07 02:35:13 +04:00
|
|
|
*
|
2001-09-29 00:14:13 +04: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-04-07 02:35:13 +04:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2004-04-17 22:33:16 +04:00
|
|
|
* The Initial Developer of the Original Code is
|
2001-09-29 00:14:13 +04:00
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
1999-11-06 06:43:54 +03:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* Contributor(s):
|
2007-09-19 02:37:04 +04:00
|
|
|
* Eric Ballet Baz BT Global Services / Etat francais Ministere de la Defense
|
2001-09-29 00:14:13 +04:00
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
2004-04-17 22:33:16 +04:00
|
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
2001-09-29 00:14:13 +04:00
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
2004-04-17 22:33:16 +04:00
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
2001-09-29 00:14:13 +04:00
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
2004-04-17 22:33:16 +04:00
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
2001-09-29 00:14:13 +04:00
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
1999-04-07 02:35:13 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
2001-02-22 13:18:54 +03:00
|
|
|
#include "nsILocalFile.idl"
|
1999-04-07 02:35:13 +04:00
|
|
|
|
1999-07-01 10:00:55 +04:00
|
|
|
/*
|
|
|
|
* this interface contains all the personal outgoing mail information
|
|
|
|
* for a given person.
|
|
|
|
* each identity is identified by a key, which is the <id> string in
|
|
|
|
* the identity preferences, such as in
|
|
|
|
* mail.identity.<id>.replyTo
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2007-09-19 02:37:04 +04:00
|
|
|
[scriptable, uuid(3038bec6-2a5f-4eba-977d-4e037ae5aba3)]
|
1999-04-07 02:35:13 +04:00
|
|
|
interface nsIMsgIdentity : nsISupports {
|
1999-07-01 10:00:55 +04:00
|
|
|
/* internal preferences ID */
|
2007-05-02 04:04:46 +04:00
|
|
|
attribute ACString key;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
*overriding display name for this identity. if this pref is not set
|
|
|
|
* then this will return some composed string from the fullname and email
|
|
|
|
*/
|
2007-05-01 06:44:16 +04:00
|
|
|
attribute AString identityName;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* user's full name, i.e. John Doe */
|
2007-05-01 06:44:16 +04:00
|
|
|
attribute AString fullName;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* user's e-mail address, i.e. john@doe.com */
|
2007-05-02 04:04:46 +04:00
|
|
|
attribute ACString email;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* optional replyTo address, i.e. johnNOSPAM@doe.com */
|
2007-05-02 04:04:46 +04:00
|
|
|
attribute ACString replyTo;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* optional organization */
|
2007-05-01 06:44:16 +04:00
|
|
|
attribute AString organization;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* should we compose with HTML by default? */
|
1999-06-26 01:47:43 +04:00
|
|
|
attribute boolean composeHtml;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* should we attach a signature by default? */
|
1999-04-14 07:43:45 +04:00
|
|
|
attribute boolean attachSignature;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* should we attach a vcard by default? */
|
1999-04-14 07:43:45 +04:00
|
|
|
attribute boolean attachVCard;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
2003-08-12 16:33:04 +04:00
|
|
|
/* should we automatically quote the original message? */
|
|
|
|
attribute boolean autoQuote;
|
|
|
|
|
|
|
|
/* what should our quoting preference be? */
|
|
|
|
attribute long replyOnTop;
|
|
|
|
|
2003-09-24 03:07:54 +04:00
|
|
|
/* what should our signature be at the end of the quoted text when replying above it? */
|
|
|
|
attribute boolean sigBottom;
|
|
|
|
|
1999-07-01 10:00:55 +04:00
|
|
|
/* the current signature */
|
2001-02-22 13:18:54 +03:00
|
|
|
attribute nsILocalFile signature;
|
1999-12-29 05:17:07 +03:00
|
|
|
attribute long signatureDate;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
2007-05-02 04:04:46 +04:00
|
|
|
attribute ACString escapedVCard;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
1999-08-31 04:19:08 +04:00
|
|
|
attribute boolean doFcc;
|
2007-05-02 04:04:46 +04:00
|
|
|
attribute ACString fccFolder;
|
2001-06-20 10:13:27 +04:00
|
|
|
|
2007-05-02 04:04:46 +04:00
|
|
|
attribute ACString fccFolderPickerMode;
|
2005-08-13 22:50:38 +04:00
|
|
|
attribute boolean fccReplyFollowsParent;
|
2007-05-02 04:04:46 +04:00
|
|
|
attribute ACString draftsFolderPickerMode;
|
|
|
|
attribute ACString tmplFolderPickerMode;
|
2003-03-26 04:54:29 +03:00
|
|
|
|
|
|
|
// Don't call bccSelf, bccOthers, and bccList directly, they are
|
|
|
|
// only used for migration and backward compatability. Use doBcc
|
|
|
|
// and doBccList instead.
|
1999-08-31 04:19:08 +04:00
|
|
|
attribute boolean bccSelf;
|
|
|
|
attribute boolean bccOthers;
|
2007-05-02 04:04:46 +04:00
|
|
|
attribute ACString bccList;
|
1999-08-31 04:19:08 +04:00
|
|
|
|
2003-03-26 04:54:29 +03:00
|
|
|
attribute boolean doBcc;
|
2007-05-02 04:04:46 +04:00
|
|
|
attribute ACString doBccList;
|
2003-03-26 04:54:29 +03:00
|
|
|
|
2007-05-02 04:04:46 +04:00
|
|
|
attribute ACString draftFolder;
|
|
|
|
attribute ACString stationeryFolder;
|
2001-03-12 08:30:11 +03:00
|
|
|
attribute boolean showSaveMsgDlg;
|
2007-05-02 04:04:46 +04:00
|
|
|
attribute ACString directoryServer;
|
2001-05-04 01:24:48 +04:00
|
|
|
attribute boolean overrideGlobalPref;
|
2005-05-07 19:49:05 +04:00
|
|
|
/**
|
|
|
|
* If this is false, don't append the user's domain
|
|
|
|
* to an autocomplete address with no matches
|
|
|
|
*/
|
|
|
|
attribute boolean autocompleteToMyDomain;
|
2000-01-15 06:06:39 +03:00
|
|
|
/**
|
|
|
|
* valid determines if the UI should use this identity
|
|
|
|
* and the wizard uses this to determine whether or not
|
|
|
|
* to ask the user to complete all the fields
|
|
|
|
*/
|
|
|
|
attribute boolean valid;
|
2000-02-11 03:55:54 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* this is really dangerous. this destroys all pref values
|
|
|
|
* do not call this unless you know what you're doing!
|
|
|
|
*/
|
|
|
|
void clearAllValues();
|
2000-02-23 12:42:54 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* the preferred smtp server for this identity.
|
|
|
|
* if this is set, this the smtp server that should be used
|
|
|
|
* for the message send
|
|
|
|
*/
|
2007-05-02 04:04:46 +04:00
|
|
|
attribute ACString smtpServerKey;
|
2002-05-16 18:01:21 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* default request for return receipt option for this identity
|
|
|
|
* if this is set, the Return Receipt menu item on the compose
|
|
|
|
* window will be checked
|
|
|
|
*/
|
|
|
|
readonly attribute boolean requestReturnReceipt;
|
|
|
|
readonly attribute long receiptHeaderType;
|
2000-01-15 06:06:39 +03:00
|
|
|
|
2007-09-19 02:37:04 +04:00
|
|
|
/**
|
|
|
|
* default request for DSN option for this identity
|
|
|
|
* if this is set, the DSN menu item on the compose
|
|
|
|
* window will be checked
|
|
|
|
*/
|
|
|
|
readonly attribute boolean requestDSN;
|
|
|
|
|
2000-04-21 04:03:02 +04:00
|
|
|
/* copy the attributes of the identity we pass in */
|
|
|
|
void copy(in nsIMsgIdentity identity);
|
|
|
|
|
2001-10-31 06:45:24 +03:00
|
|
|
/**
|
|
|
|
* these generic getter / setters, useful for extending mailnews
|
|
|
|
* note, these attributes persist across sessions
|
|
|
|
*/
|
2007-05-01 06:44:16 +04:00
|
|
|
AString getUnicharAttribute(in string name);
|
|
|
|
void setUnicharAttribute(in string name, in AString value);
|
2001-10-31 06:45:24 +03:00
|
|
|
|
2007-05-02 04:04:46 +04:00
|
|
|
ACString getCharAttribute(in string name);
|
|
|
|
void setCharAttribute(in string name, in ACString value);
|
2001-10-31 06:45:24 +03:00
|
|
|
|
|
|
|
boolean getBoolAttribute(in string name);
|
|
|
|
void setBoolAttribute(in string name, in boolean value);
|
|
|
|
|
|
|
|
long getIntAttribute(in string name);
|
|
|
|
void setIntAttribute(in string name, in long value);
|
|
|
|
|
|
|
|
/* useful for debugging */
|
2007-05-01 06:44:16 +04:00
|
|
|
AString toString();
|
1999-04-07 02:35:13 +04:00
|
|
|
};
|