1999-07-01 10:00:55 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
1999-04-07 02:35:13 +04:00
|
|
|
*
|
1999-11-06 06:43:54 +03: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-04-07 02:35:13 +04:00
|
|
|
*
|
1999-11-06 06:43:54 +03: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.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-04-07 02:35:13 +04:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:43:54 +03:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1999-04-07 02:35:13 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "nsIMsgSignature.idl"
|
1999-09-17 10:43:27 +04:00
|
|
|
#include "nsIFileSpec.idl"
|
1999-04-07 02:35:13 +04:00
|
|
|
#include "nsIMsgVCard.idl"
|
|
|
|
|
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
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
1999-05-27 09:19:55 +04:00
|
|
|
[scriptable, uuid(D3B4A420-D5AC-11d2-806A-006008128C4E)]
|
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
|
|
|
|
|
|
|
/* the current signature */
|
1999-09-17 10:43:27 +04:00
|
|
|
/* after PR1, let's make this a real object */
|
|
|
|
/* attribute nsIMsgSignature signature; */
|
1999-12-29 05:17:07 +03:00
|
|
|
attribute nsIFileSpec signature;
|
|
|
|
attribute long signatureDate;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
|
|
|
/* the current vcard */
|
1999-04-07 02:35:13 +04:00
|
|
|
attribute nsIMsgVCard vCard;
|
1999-07-01 10:00:55 +04:00
|
|
|
|
1999-08-31 04:19:08 +04:00
|
|
|
attribute boolean doFcc;
|
|
|
|
attribute string fccFolder;
|
|
|
|
|
|
|
|
attribute boolean bccSelf;
|
|
|
|
attribute boolean bccOthers;
|
|
|
|
attribute string bccList;
|
|
|
|
|
|
|
|
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;
|
1999-08-31 04:19:08 +04:00
|
|
|
attribute string junkMailFolder;
|
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;
|
|
|
|
|
1999-08-28 00:57:07 +04:00
|
|
|
wstring toString();
|
1999-04-07 02:35:13 +04:00
|
|
|
};
|