1999-07-01 06:00:55 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
1999-04-06 22:35:13 +00:00
|
|
|
*
|
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-04-06 22:35:13 +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-04-06 22:35:13 +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-04-06 22:35:13 +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-04-06 22:35:13 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "nsIMsgSignature.idl"
|
1999-09-17 06:43:27 +00:00
|
|
|
#include "nsIFileSpec.idl"
|
1999-04-06 22:35:13 +00:00
|
|
|
#include "nsIMsgVCard.idl"
|
|
|
|
|
1999-07-01 06:00:55 +00: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 05:19:55 +00:00
|
|
|
[scriptable, uuid(D3B4A420-D5AC-11d2-806A-006008128C4E)]
|
1999-04-06 22:35:13 +00:00
|
|
|
interface nsIMsgIdentity : nsISupports {
|
1999-07-01 06:00:55 +00:00
|
|
|
/* internal preferences ID */
|
1999-04-10 21:04:50 +00:00
|
|
|
attribute string key;
|
1999-07-01 06:00:55 +00: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 03:11:52 +00:00
|
|
|
attribute wstring identityName;
|
1999-07-01 06:00:55 +00:00
|
|
|
|
|
|
|
/* user's full name, i.e. John Doe */
|
1999-12-02 03:11:52 +00:00
|
|
|
attribute wstring fullName;
|
1999-07-01 06:00:55 +00:00
|
|
|
|
|
|
|
/* user's e-mail address, i.e. john@doe.com */
|
1999-04-06 22:35:13 +00:00
|
|
|
attribute string email;
|
1999-07-01 06:00:55 +00:00
|
|
|
|
|
|
|
/* optional replyTo address, i.e. johnNOSPAM@doe.com */
|
1999-04-06 22:35:13 +00:00
|
|
|
attribute string replyTo;
|
1999-07-01 06:00:55 +00:00
|
|
|
|
|
|
|
/* optional organization */
|
1999-12-02 03:11:52 +00:00
|
|
|
attribute wstring organization;
|
1999-07-01 06:00:55 +00:00
|
|
|
|
|
|
|
/* should we compose with HTML by default? */
|
1999-06-25 21:47:43 +00:00
|
|
|
attribute boolean composeHtml;
|
1999-07-01 06:00:55 +00:00
|
|
|
|
|
|
|
/* should we attach a signature by default? */
|
1999-04-14 03:43:45 +00:00
|
|
|
attribute boolean attachSignature;
|
1999-07-01 06:00:55 +00:00
|
|
|
|
|
|
|
/* should we attach a vcard by default? */
|
1999-04-14 03:43:45 +00:00
|
|
|
attribute boolean attachVCard;
|
1999-07-01 06:00:55 +00:00
|
|
|
|
|
|
|
/* the current signature */
|
1999-09-17 06:43:27 +00:00
|
|
|
/* after PR1, let's make this a real object */
|
|
|
|
/* attribute nsIMsgSignature signature; */
|
1999-12-29 02:17:07 +00:00
|
|
|
attribute nsIFileSpec signature;
|
|
|
|
attribute long signatureDate;
|
1999-07-01 06:00:55 +00:00
|
|
|
|
|
|
|
/* the current vcard */
|
1999-04-06 22:35:13 +00:00
|
|
|
attribute nsIMsgVCard vCard;
|
1999-07-01 06:00:55 +00:00
|
|
|
|
1999-08-31 00:19:08 +00: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 08:10:09 +00:00
|
|
|
attribute string stationeryFolder;
|
1999-08-31 00:19:08 +00:00
|
|
|
attribute string junkMailFolder;
|
2000-01-15 03:06:39 +00: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 00:55:54 +00: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 09:42:54 +00: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 05:33:49 +00:00
|
|
|
attribute string smtpServerKey;
|
2000-01-15 03:06:39 +00:00
|
|
|
|
2000-04-21 00:03:02 +00:00
|
|
|
/* copy the attributes of the identity we pass in */
|
|
|
|
void copy(in nsIMsgIdentity identity);
|
|
|
|
|
1999-08-27 20:57:07 +00:00
|
|
|
wstring toString();
|
1999-04-06 22:35:13 +00:00
|
|
|
};
|