Back to index

lightning-sunbird  0.9+nobinonly
nsMailHeaders.h
Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1998
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either of the GNU General Public License Version 2 or later (the "GPL"),
00026  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037  
00038 /*
00039  * This interface allows any module to access the encoder/decoder 
00040  * routines for RFC822 headers. This will allow any mail/news module
00041  * to call on these routines.
00042  */
00043 #ifndef nsMailHeaders_h_
00044 #define nsMailHeaders_h_
00045 
00046 /* 
00047  * These are the defines for standard header field names.
00048  */
00049 #define HEADER_BCC                                                         "BCC"
00050 #define HEADER_CC                                                            "CC"
00051 #define HEADER_CONTENT_BASE                                     "Content-Base"
00052 #define HEADER_CONTENT_LOCATION                                    "Content-Location"
00053 #define HEADER_CONTENT_ID                                         "Content-ID"
00054 #define HEADER_CONTENT_DESCRIPTION                   "Content-Description"
00055 #define HEADER_CONTENT_DISPOSITION                   "Content-Disposition"
00056 #define HEADER_CONTENT_ENCODING                               "Content-Encoding"
00057 #define HEADER_CONTENT_LENGTH                                   "Content-Length"
00058 #define HEADER_CONTENT_NAME                                     "Content-Name"
00059 #define HEADER_CONTENT_TRANSFER_ENCODING    "Content-Transfer-Encoding"
00060 #define HEADER_CONTENT_TYPE                                     "Content-Type"
00061 #define HEADER_DATE                                                        "Date"
00062 #define HEADER_DISTRIBUTION                                     "Distribution"
00063 #define HEADER_FCC                                                         "FCC"
00064 #define HEADER_FOLLOWUP_TO                                      "Followup-To"
00065 #define HEADER_FROM                                                        "From"
00066 #define HEADER_STATUS                                                             "Status"
00067 #define HEADER_LINES                                                "Lines"
00068 #define HEADER_MAIL_FOLLOWUP_TO                               "Mail-Followup-To"
00069 #define HEADER_MAIL_REPLY_TO                                   "Mail-Reply-To"
00070 #define HEADER_MESSAGE_ID                                         "Message-ID"
00071 #define HEADER_MIME_VERSION                                     "MIME-Version"
00072 #define HEADER_NEWSGROUPS                                         "Newsgroups"
00073 #define HEADER_ORGANIZATION                                     "Organization"
00074 #define HEADER_REFERENCES                                      "References"
00075 #define HEADER_REPLY_TO                                               "Reply-To"
00076 #define HEADER_RESENT_COMMENTS                          "Resent-Comments"
00077 #define HEADER_RESENT_DATE                                     "Resent-Date"
00078 #define HEADER_RESENT_FROM                                     "Resent-From"
00079 #define HEADER_RESENT_MESSAGE_ID                 "Resent-Message-ID"
00080 #define HEADER_RESENT_SENDER                                   "Resent-Sender"
00081 #define HEADER_RESENT_TO                                       "Resent-To"
00082 #define HEADER_RESENT_CC                                       "Resent-CC"
00083 #define HEADER_SENDER                                                 "Sender"
00084 #define HEADER_SUBJECT                                                "Subject"
00085 #define HEADER_TO                                                            "To"
00086 #define HEADER_APPROVED_BY                                           "Approved-By"
00087 #define HEADER_X_MAILER                                               "X-Mailer"
00088 #define HEADER_USER_AGENT                                 "User-Agent"
00089 #define HEADER_X_NEWSREADER                                    "X-Newsreader"
00090 #define HEADER_X_POSTING_SOFTWARE                "X-Posting-Software"
00091 #define HEADER_X_MOZILLA_STATUS                         "X-Mozilla-Status"
00092 #define HEADER_X_MOZILLA_STATUS2                       "X-Mozilla-Status2"
00093 #define HEADER_X_MOZILLA_NEWSHOST                "X-Mozilla-News-Host"
00094 #define HEADER_X_MOZILLA_DRAFT_INFO                    "X-Mozilla-Draft-Info"
00095 #define HEADER_X_UIDL                                                 "X-UIDL"
00096 #define HEADER_XREF                                                   "XREF"
00097 #define HEADER_X_SUN_CHARSET                                   "X-Sun-Charset"
00098 #define HEADER_X_SUN_CONTENT_LENGTH                         "X-Sun-Content-Length"
00099 #define HEADER_X_SUN_CONTENT_LINES              "X-Sun-Content-Lines"
00100 #define HEADER_X_SUN_DATA_DESCRIPTION            "X-Sun-Data-Description"
00101 #define HEADER_X_SUN_DATA_NAME                          "X-Sun-Data-Name"
00102 #define HEADER_X_SUN_DATA_TYPE                          "X-Sun-Data-Type"
00103 #define HEADER_X_SUN_ENCODING_INFO               "X-Sun-Encoding-Info"
00104 #define HEADER_X_PRIORITY                   "X-Priority"
00105 
00106 #define HEADER_PARM_CHARSET                 "charset"     
00107 #define HEADER_PARM_START                   "start"     
00108 #define HEADER_PARM_BOUNDARY                                    "BOUNDARY"
00109 #define HEADER_PARM_FILENAME                                    "FILENAME"
00110 #define HEADER_PARM_NAME                                          "NAME"
00111 #define HEADER_PARM_TYPE                                          "TYPE"
00112 
00113 #define HEADER_X_MOZILLA_PART_URL           "X-Mozilla-PartURL"
00114 #define HEADER_X_MOZILLA_IDENTITY_KEY       "X-Identity-Key"
00115 #define HEADER_X_MOZILLA_ACCOUNT_KEY       "X-Account-Key"
00116 #define HEADER_X_MOZILLA_KEYWORDS          "X-Mozilla-Keys"
00117 #endif /* nsMailHeaders_h_ */