From: DINH V. H. <ho...@us...> - 2006-05-22 13:40:17
|
Update of /cvsroot/libetpan/libetpan/src/low-level/imap In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27536/src/low-level/imap Modified Files: mailimap.c mailimap_parser.c mailimap_sender.c mailimap_socket.c mailimap_socket.h mailimap_ssl.c mailimap_ssl.h mailimap_types.h Log Message: cleanup patch has been applied Index: mailimap.c =================================================================== RCS file: /cvsroot/libetpan/libetpan/src/low-level/imap/mailimap.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- mailimap.c 25 Apr 2006 07:41:50 -0000 1.33 +++ mailimap.c 22 May 2006 13:39:40 -0000 1.34 @@ -33,9 +33,8 @@ * $Id$ */ -#ifndef CONFIG_H -#define CONFIG_H -#include "config.h" +#ifdef HAVE_CONFIG_H +# include <config.h> #endif #include "mailimap.h" Index: mailimap_parser.c =================================================================== RCS file: /cvsroot/libetpan/libetpan/src/low-level/imap/mailimap_parser.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- mailimap_parser.c 25 Apr 2006 07:41:50 -0000 1.30 +++ mailimap_parser.c 22 May 2006 13:39:40 -0000 1.31 @@ -33,6 +33,10 @@ * $Id$ */ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + #include <string.h> #include <stdlib.h> #include <stdio.h> Index: mailimap_sender.c =================================================================== RCS file: /cvsroot/libetpan/libetpan/src/low-level/imap/mailimap_sender.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- mailimap_sender.c 25 Apr 2006 07:41:50 -0000 1.27 +++ mailimap_sender.c 22 May 2006 13:39:41 -0000 1.28 @@ -33,6 +33,10 @@ * $Id$ */ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + #include "mailstream.h" #include "mailimap_keywords.h" #include "mailimap_sender.h" Index: mailimap_socket.c =================================================================== RCS file: /cvsroot/libetpan/libetpan/src/low-level/imap/mailimap_socket.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- mailimap_socket.c 15 Apr 2006 15:32:26 -0000 1.14 +++ mailimap_socket.c 22 May 2006 13:39:41 -0000 1.15 @@ -38,10 +38,12 @@ #include "mailimap.h" #include "connect.h" -#if HAVE_NETINET_IN_H + +#include <stdlib.h> +#ifdef HAVE_NETINET_IN_H # include <netinet/in.h> #endif -#if HAVE_UNISTD_H +#ifdef HAVE_UNISTD_H # include <unistd.h> #endif Index: mailimap_socket.h =================================================================== RCS file: /cvsroot/libetpan/libetpan/src/low-level/imap/mailimap_socket.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- mailimap_socket.h 15 Apr 2006 15:32:26 -0000 1.14 +++ mailimap_socket.h 22 May 2006 13:39:41 -0000 1.15 @@ -41,7 +41,7 @@ extern "C" { #endif -#if HAVE_INTTYPES_H +#ifdef HAVE_INTTYPES_H # include <inttypes.h> #endif Index: mailimap_ssl.c =================================================================== RCS file: /cvsroot/libetpan/libetpan/src/low-level/imap/mailimap_ssl.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- mailimap_ssl.c 2 Nov 2005 17:31:18 -0000 1.12 +++ mailimap_ssl.c 22 May 2006 13:39:41 -0000 1.13 @@ -39,10 +39,11 @@ #include "connect.h" -#if HAVE_NETINET_IN_H +#include <stdlib.h> +#ifdef HAVE_NETINET_IN_H # include <netinet/in.h> #endif -#if HAVE_UNISTD_H +#ifdef HAVE_UNISTD_H # include <unistd.h> #endif Index: mailimap_ssl.h =================================================================== RCS file: /cvsroot/libetpan/libetpan/src/low-level/imap/mailimap_ssl.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- mailimap_ssl.h 1 Jun 2005 12:22:01 -0000 1.13 +++ mailimap_ssl.h 22 May 2006 13:39:41 -0000 1.14 @@ -41,7 +41,7 @@ extern "C" { #endif -#if HAVE_INTTYPES_H +#ifdef HAVE_INTTYPES_H # include <inttypes.h> #endif Index: mailimap_types.h =================================================================== RCS file: /cvsroot/libetpan/libetpan/src/low-level/imap/mailimap_types.h,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- mailimap_types.h 25 Apr 2006 07:41:50 -0000 1.27 +++ mailimap_types.h 22 May 2006 13:39:41 -0000 1.28 @@ -564,7 +564,7 @@ enum { MAILIMAP_BODY_ERROR, MAILIMAP_BODY_1PART, /* single part */ - MAILIMAP_BODY_MPART, /* multi-part */ + MAILIMAP_BODY_MPART /* multi-part */ }; /* @@ -604,7 +604,7 @@ MAILIMAP_BODY_EXTENSION_ERROR, MAILIMAP_BODY_EXTENSION_NSTRING, /* string */ MAILIMAP_BODY_EXTENSION_NUMBER, /* number */ - MAILIMAP_BODY_EXTENSION_LIST, /* list of + MAILIMAP_BODY_EXTENSION_LIST /* list of (struct mailimap_body_extension *) */ }; @@ -777,7 +777,7 @@ MAILIMAP_BODY_FLD_ENC_BINARY, /* binary */ MAILIMAP_BODY_FLD_ENC_BASE64, /* base64 */ MAILIMAP_BODY_FLD_ENC_QUOTED_PRINTABLE, /* quoted-printable */ - MAILIMAP_BODY_FLD_ENC_OTHER, /* other */ + MAILIMAP_BODY_FLD_ENC_OTHER /* other */ }; /* @@ -1040,7 +1040,7 @@ enum { MAILIMAP_CAPABILITY_AUTH_TYPE, /* when the capability is an authentication type */ - MAILIMAP_CAPABILITY_NAME, /* other type of capability */ + MAILIMAP_CAPABILITY_NAME /* other type of capability */ }; /* @@ -1097,7 +1097,7 @@ enum { MAILIMAP_CONTINUE_REQ_ERROR, /* on parse error */ MAILIMAP_CONTINUE_REQ_TEXT, /* when data is a text response */ - MAILIMAP_CONTINUE_REQ_BASE64, /* when data is a base64 response */ + MAILIMAP_CONTINUE_REQ_BASE64 /* when data is a base64 response */ }; /* @@ -1324,7 +1324,7 @@ MAILIMAP_FLAG_SEEN, /* \Seen flag */ MAILIMAP_FLAG_DRAFT, /* \Draft flag */ MAILIMAP_FLAG_KEYWORD, /* keyword flag */ - MAILIMAP_FLAG_EXTENSION, /* \extension flag */ + MAILIMAP_FLAG_EXTENSION /* \extension flag */ }; @@ -1361,7 +1361,7 @@ enum { MAILIMAP_FLAG_FETCH_ERROR, /* on parse error */ MAILIMAP_FLAG_FETCH_RECENT, /* \Recent flag */ - MAILIMAP_FLAG_FETCH_OTHER, /* other type of flag */ + MAILIMAP_FLAG_FETCH_OTHER /* other type of flag */ }; /* @@ -1438,7 +1438,7 @@ enum { MAILIMAP_GREETING_RESP_COND_ERROR, /* on parse error */ MAILIMAP_GREETING_RESP_COND_AUTH, /* when connection is accepted */ - MAILIMAP_GREETING_RESP_COND_BYE, /* when connection is refused */ + MAILIMAP_GREETING_RESP_COND_BYE /* when connection is refused */ }; /* @@ -1496,7 +1496,7 @@ identifier */ MAILIMAP_STATUS_ATT_UIDVALIDITY, /* when requesting the validity of message unique identifiers*/ - MAILIMAP_STATUS_ATT_UNSEEN, /* when requesting the number of + MAILIMAP_STATUS_ATT_UNSEEN /* when requesting the number of unseen messages */ }; @@ -1567,7 +1567,7 @@ mailbox */ MAILIMAP_MAILBOX_DATA_RECENT, /* this is the number of recent messages in the mailbox */ - MAILIMAP_MAILBOX_DATA_EXTENSION_DATA, /* this mailbox-data stores data + MAILIMAP_MAILBOX_DATA_EXTENSION_DATA /* this mailbox-data stores data returned by an extension */ }; @@ -1637,7 +1637,7 @@ enum { MAILIMAP_MBX_LIST_FLAGS_SFLAG, /* mailbox single flag - a flag in {\NoSelect, \Marked, \Unmarked} */ - MAILIMAP_MBX_LIST_FLAGS_NO_SFLAG, /* mailbox other flag - mailbox flag + MAILIMAP_MBX_LIST_FLAGS_NO_SFLAG /* mailbox other flag - mailbox flag other than \NoSelect \Marked and \Unmarked) */ }; @@ -1742,7 +1742,7 @@ MAILIMAP_MEDIA_BASIC_IMAGE, /* image/xxx */ MAILIMAP_MEDIA_BASIC_MESSAGE, /* message/xxx */ MAILIMAP_MEDIA_BASIC_VIDEO, /* video/xxx */ - MAILIMAP_MEDIA_BASIC_OTHER, /* for all other cases */ + MAILIMAP_MEDIA_BASIC_OTHER /* for all other cases */ }; @@ -1815,7 +1815,7 @@ enum { MAILIMAP_MSG_ATT_ITEM_ERROR, /* on parse error */ MAILIMAP_MSG_ATT_ITEM_DYNAMIC, /* dynamic message attributes (flags) */ - MAILIMAP_MSG_ATT_ITEM_STATIC, /* static messages attributes + MAILIMAP_MSG_ATT_ITEM_STATIC /* static messages attributes (message content) */ }; @@ -1941,7 +1941,7 @@ MAILIMAP_MSG_ATT_BODYSTRUCTURE, /* this is the MIME description of the message with additional information */ MAILIMAP_MSG_ATT_BODY_SECTION, /* this is a MIME part content */ - MAILIMAP_MSG_ATT_UID, /* this is the message unique identifier */ + MAILIMAP_MSG_ATT_UID /* this is the message unique identifier */ }; /* @@ -2029,7 +2029,7 @@ enum { MAILIMAP_RESP_ERROR, /* on parse error */ MAILIMAP_RESP_CONT_REQ, /* continuation request */ - MAILIMAP_RESP_RESP_DATA, /* response data */ + MAILIMAP_RESP_RESP_DATA /* response data */ }; /* @@ -2095,7 +2095,7 @@ MAILIMAP_RESP_DATA_TYPE_MAILBOX_DATA, /* response related to a mailbox */ MAILIMAP_RESP_DATA_TYPE_MESSAGE_DATA, /* response related to a message */ MAILIMAP_RESP_DATA_TYPE_CAPABILITY_DATA, /* capability information */ - MAILIMAP_RESP_DATA_TYPE_EXTENSION_DATA, /* data parsed by extension */ + MAILIMAP_RESP_DATA_TYPE_EXTENSION_DATA /* data parsed by extension */ }; /* @@ -2148,7 +2148,7 @@ enum { MAILIMAP_RESP_DONE_TYPE_ERROR, /* on parse error */ MAILIMAP_RESP_DONE_TYPE_TAGGED, /* tagged response */ - MAILIMAP_RESP_DONE_TYPE_FATAL, /* fatal error response */ + MAILIMAP_RESP_DONE_TYPE_FATAL /* fatal error response */ }; /* @@ -2221,7 +2221,7 @@ enum { MAILIMAP_RESP_COND_AUTH_ERROR, /* on parse error */ MAILIMAP_RESP_COND_AUTH_OK, /* authentication is needed */ - MAILIMAP_RESP_COND_AUTH_PREAUTH, /* authentication is not needed */ + MAILIMAP_RESP_COND_AUTH_PREAUTH /* authentication is not needed */ }; /* @@ -2332,7 +2332,7 @@ MAILIMAP_RESP_TEXT_CODE_UIDVALIDITY, /* UIDVALIDITY response */ MAILIMAP_RESP_TEXT_CODE_UNSEEN, /* UNSEEN response */ MAILIMAP_RESP_TEXT_CODE_OTHER, /* other type of response */ - MAILIMAP_RESP_TEXT_CODE_EXTENSION, /* extension response */ + MAILIMAP_RESP_TEXT_CODE_EXTENSION /* extension response */ }; /* @@ -2424,7 +2424,7 @@ message */ MAILIMAP_SECTION_MSGTEXT_HEADER_FIELDS_NOT, /* header fields of the message except the given */ - MAILIMAP_SECTION_MSGTEXT_TEXT, /* text part */ + MAILIMAP_SECTION_MSGTEXT_TEXT /* text part */ }; /* @@ -2480,7 +2480,7 @@ enum { MAILIMAP_SECTION_SPEC_SECTION_MSGTEXT, /* if requesting data of the root MIME message/rfc822 part */ - MAILIMAP_SECTION_SPEC_SECTION_PART, /* location of the MIME part + MAILIMAP_SECTION_SPEC_SECTION_PART /* location of the MIME part in the message */ }; @@ -2529,7 +2529,7 @@ MAILIMAP_SECTION_TEXT_SECTION_MSGTEXT, /* if the MIME type is message/rfc822, headers or text can be requested */ - MAILIMAP_SECTION_TEXT_MIME, /* for all MIME types, + MAILIMAP_SECTION_TEXT_MIME /* for all MIME types, MIME headers can be requested */ }; @@ -2646,7 +2646,7 @@ additional information */ MAILIMAP_FETCH_ATT_UID, /* to fetch the unique identifier */ MAILIMAP_FETCH_ATT_BODY_SECTION, /* to fetch a given part */ - MAILIMAP_FETCH_ATT_BODY_PEEK_SECTION, /* to fetch a given part without + MAILIMAP_FETCH_ATT_BODY_PEEK_SECTION /* to fetch a given part without marking the message as read */ }; @@ -2696,7 +2696,7 @@ RFC822.SIZE) */ MAILIMAP_FETCH_TYPE_FETCH_ATT, /* when there is only of fetch attribute */ - MAILIMAP_FETCH_TYPE_FETCH_ATT_LIST, /* when there is a list of fetch + MAILIMAP_FETCH_TYPE_FETCH_ATT_LIST /* when there is a list of fetch attributes */ }; @@ -2818,7 +2818,7 @@ MAILIMAP_SEARCH_KEY_SET, /* messages whose number (or unique identifiers in case of UID SEARCH) are in the given range */ - MAILIMAP_SEARCH_KEY_MULTIPLE, /* the boolean operator between the + MAILIMAP_SEARCH_KEY_MULTIPLE /* the boolean operator between the conditions is AND */ }; @@ -3284,7 +3284,7 @@ MAILIMAP_ERROR_UNSUBSCRIBE, MAILIMAP_ERROR_STARTTLS, MAILIMAP_ERROR_INVAL, - MAILIMAP_ERROR_EXTENSION, + MAILIMAP_ERROR_EXTENSION }; |