/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 *
 * 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/
 *
 * 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.
 *
 * The Original Code is mozilla.org code.
 *
 * The Initial Developer of the Original Code is Netscape
 * Communications Corporation.  Portions created by Netscape are
 * Copyright (C) 1998 Netscape Communications Corporation. All
 * Rights Reserved.
 *
 * Contributor(s): 
 */

#include "nsISupports.idl"
#include "nsIMsgRecipientArray.idl"


[scriptable, uuid(3E89CAE3-BD2D-11d2-8293-000000000000)]
interface nsIMsgCompFields : nsISupports {

	attribute wstring from;
	attribute wstring replyTo;
	attribute wstring to;
	attribute wstring cc;
	attribute wstring bcc;
	
	attribute wstring fcc;
	attribute wstring fcc2;
	
	attribute string  newsgroups;
	attribute string  newshost;
	attribute string  newspostUrl;
	attribute string  followupTo;

	attribute wstring subject;
	attribute string  attachments;
	attribute wstring organization;
	attribute string  references;
  attribute string  priority;
	attribute string  messageId;
	attribute string  characterSet;

	attribute wstring templateName;
	attribute string  draftId;

	attribute boolean returnReceipt;
	attribute boolean attachVCard;
  attribute boolean forcePlainText;
  attribute boolean useMultipartAlternative;
  attribute boolean uuEncodeAttachments;

  attribute wstring otherRandomHeaders;

	attribute wstring body;

	attribute string  temporaryFiles;	// a list of temp files to remove
	
	/* some utility functions */
  nsIMsgRecipientArray SplitRecipients(in wstring recipients, in boolean emailAddressOnly);    
  void ConvertBodyToPlainText();
};

