Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

message-types.h

Go to the documentation of this file.
00001 /*
00002  * XetPan: a libEtPan! based Mail User Agent
00003  * Copyright (C) 2002-2003 Melvin Hadasht
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018  */
00019 
00020 #ifndef MESSAGE_TYPES_H
00021 #define MESSAGE_TYPES_H
00022 
00026 #define DEFAULT_SOURCE_CHARSET "iso-8859-1"
00027 
00028 typedef enum
00029   {
00030     XEP_FLAGS_UNSET,
00031     XEP_FLAGS_SET,
00032     XEP_FLAGS_TOGGLE
00033   } XePMessageFlagsOp;
00034 
00035 /* Make sure message_headers[] is in sync with this enum */
00036 typedef enum
00037   {
00038     XEP_MAIL_HEADER_ORIG_DATE,
00039     XEP_MAIL_HEADER_FROM,
00040     XEP_MAIL_HEADER_SENDER,
00041     XEP_MAIL_HEADER_REPLY_TO,
00042     XEP_MAIL_HEADER_TO,
00043     XEP_MAIL_HEADER_CC,
00044     XEP_MAIL_HEADER_BCC,
00045     XEP_MAIL_HEADER_MESSAGE_ID,
00046     XEP_MAIL_HEADER_IN_REPLY_TO,
00047     XEP_MAIL_HEADER_REFERENCES,
00048     XEP_MAIL_HEADER_SUBJECT,
00049     XEP_MAIL_HEADER_COMMENTS,
00050     XEP_MAIL_HEADER_KEYWORDS,
00051     XEP_MAIL_HEADER_OTHER    /* Sentinel: XEP_MAIL_HEADER_OTHER must 
00052                               * be the last
00053                               */
00054   } XePMessageHeaderType;
00055 
00056 typedef struct XePMessageHeader_s XePMessageHeader;
00057 
00058 struct XePMessageHeader_s
00059 {
00060   XePMessageHeaderType type;
00061   const char *name;
00062   int ep_type;
00063 };
00064 
00065 typedef struct XePMessage_s XePMessage; /* Defined in message.h */
00066 
00067 
00068 extern XePMessageHeader message_headers[];
00069 
00070 #endif

Generated on Wed Oct 22 15:50:41 2003 for XetPan by doxygen 1.3.2