/*
* Copyright (C) 1996-2000 Michael R. Elkins
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/
for (i = 0; i < 12; i++)
if (mutt_strncasecmp (s, Months[i], 3) == 0)
return (i);
return (-1); /* error */
}
static int is_day_name (const char *s)
{
int i;
if ((strlen (s) < 3) || !*(s + 3) || !ISSPACE (*(s+3)))
return 0;
for (i=0; i<7; i++)
if (mutt_strncasecmp (s, Weekdays[i], 3) == 0)
return 1;
return 0;
}
/*
* A valid message separator looks like:
*
* From [ ]
Domain Registration New Zealand
/*
* Copyright (C) 1996-9 Brandon Long
* Copyright (C) 1999-2000 Brendan Cully
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/
/* message.c data structures */
#ifndef MESSAGE_H
#define MESSAGE_H 1
/* -- data structures -- */
/* IMAP-specific header data, stored as HEADER->data */
typedef struct imap_header_data
{
unsigned int uid; /* 32-bit Message UID */
LIST *keywords;
} IMAP_HEADER_DATA;
typedef struct
{
unsigned int read : 1;
unsigned int old : 1;
unsigned int deleted : 1;
unsigned int flagged : 1;
unsigned int replied : 1;
unsigned int changed : 1;
unsigned int sid;
IMAP_HEADER_DATA* data;
time_t received;
long content_length;
} IMAP_HEADER;
Java Web Hosting
JSP Web Hosting
Tomcat Web Hosting
PHP Web Hosting
MySQL Web Hosting
PostgreSQL Web Hosting
Database Web Hosting
Servlet Web Hosting
J2EE Web Hosting
Frontpage Web Hosting
SSH Web Hosting
CGI Web Hosting