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):
|
|
|
|
*
|
|
|
|
* 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"
|
|
|
|
#include "nsIMsgSignature.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
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2005-08-13 22:50:38 +04:00
|
|
|
[scriptable, uuid(e823535a-66b8-4bd4-99cd-cb1cafbfedb6)]
|
1999-04-07 02:35:13 +04:00
|
|
|
interface nsIMsgIdentity : nsISupports {
|
1999-07-01 10:00:55 +04:00
|
|
|
/* internal preferences ID */
|
1999-04-11 01:04:50 +04:00
|
|
|
attribute string 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
|
|
|
|
*/
|
1999-12-02 06:11:52 +03:00
|
|
|
attribute wstring identityName;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* user's full name, i.e. John Doe */
|
1999-12-02 06:11:52 +03:00
|
|
|
attribute wstring fullName;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* user's e-mail address, i.e. john@doe.com */
|
1999-04-07 02:35:13 +04:00
|
|
|
attribute string email;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* optional replyTo address, i.e. johnNOSPAM@doe.com */
|
1999-04-07 02:35:13 +04:00
|
|
|
attribute string replyTo;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* optional organization */
|
1999-12-02 06:11:52 +03:00
|
|
|
attribute wstring 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 */
|
1999-09-17 10:43:27 +04:00
|
|
|
/* after PR1, let's make this a real object */
|
|
|
|
/* attribute nsIMsgSignature 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
|
|
|
|
2003-10-06 00:07:22 +04:00
|
|
|
attribute string escapedVCard;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
1999-08-31 04:19:08 +04:00
|
|
|
attribute boolean doFcc;
|
|
|
|
attribute string fccFolder;
|
2001-06-20 10:13:27 +04:00
|
|
|
|
|
|
|
attribute string fccFolderPickerMode;
|
2005-08-13 22:50:38 +04:00
|
|
|
attribute boolean fccReplyFollowsParent;
|
2001-06-20 10:13:27 +04:00
|
|
|
attribute string draftsFolderPickerMode;
|
|
|
|
attribute string 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;
|
|
|
|
attribute string bccList;
|
|
|
|
|
2003-03-26 04:54:29 +03:00
|
|
|
attribute boolean doBcc;
|
|
|
|
attribute string doBccList;
|
|
|
|
|
1999-08-31 04:19:08 +04:00
|
|
|
attribute string draftFolder;
|
fix for #17402, stationary -> stationery.
r=alecf
major fixes for the new folder / rename folder / subscribe dialogs.
we no longer use an html select for the folder picker.
now we use cascading menu popups, like the copy and move menus.
this fixes a lot of bugs, and allows pre-flighting to finally work.
our folder data source has some new properies:
CanFileMessages, CanSubscribe, CanRename, and CanCreateSubfolders
we use these to determine what cascading menu to build, what to disable, etc.
also, nsMessenger::NewFolder() and nsMessenger::RenameFolder() were changes to
take a nsIRDFResource instead of a nsIDOMXULElement. Before we were
passing through to the back end the selected xul element, now we pass
the resource in.
other cool side effects:
in the copy & move menus, you don't get the choice to file or copy to a server, on folders
in the rename dialog, you can't pick a server, on a folder
in the new folder dialog, you can't pick the imap inbox. (* more needs to be done here.)
bugs fixed: #14773, #14254, #20599, #20646
r=alecf
a couple bullet proofing fixes to prevent some crashes reported on fullcircle
r=bienvenu
1999-12-03 11:10:09 +03:00
|
|
|
attribute string stationeryFolder;
|
2001-03-12 08:30:11 +03:00
|
|
|
attribute boolean showSaveMsgDlg;
|
2001-05-04 01:24:48 +04:00
|
|
|
attribute string directoryServer;
|
|
|
|
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
|
|
|
|
*/
|
2000-05-22 09:33:49 +04:00
|
|
|
attribute string 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
|
|
|
|
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
|
|
|
|
*/
|
|
|
|
wstring getUnicharAttribute(in string name);
|
|
|
|
void setUnicharAttribute(in string name, in wstring value);
|
|
|
|
|
|
|
|
string getCharAttribute(in string name);
|
|
|
|
void setCharAttribute(in string name, in string value);
|
|
|
|
|
|
|
|
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 */
|
1999-08-28 00:57:07 +04:00
|
|
|
wstring toString();
|
1999-04-07 02:35:13 +04:00
|
|
|
};
|