/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2003 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2004 Hiroyuki Yamamoto & The Sylpheed-Claws Team
*
* 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
"Res\\:", /* "Res:" (Brazilian Outlook) */
"Fw\\:", /* "Fw:" Forward */
"Enc\\:", /* "Enc:" Forward (Brazilian Outlook) */
- "Odp\\:" /* "Odp:" Re (Polish Outlook) */
+ "Odp\\:", /* "Odp:" Re (Polish Outlook) */
/* add more */
};
const int PREFIXES = sizeof prefixes / sizeof prefixes[0];
-
-
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2003 Hiroyuki Yamamoto & the Sylpheed-Claws team
+ * Copyright (C) 2003-2004 Hiroyuki Yamamoto & The Sylpheed-Claws Team
*
* 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
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2003 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2004 Hiroyuki Yamamoto & The Sylpheed-Claws Team
*
* 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
#include "defs.h"
+#include <stdio.h>
#include <glib.h>
#include <stdio.h>
#include <string.h>
{NULL, NULL, FALSE}};
guint content_start, i;
FILE *fp;
+ gint mime_major, mime_minor, a;
if(mimeinfo->encoding_type != ENC_BINARY &&
mimeinfo->encoding_type != ENC_7BIT &&
content_start = ftell(fp);
fclose(fp);
- if ((hentry[5].body != NULL) && !strcmp(hentry[5].body, "1.0")) {
+ g_strstrip(hentry[5].body);
+ if ((hentry[5].body != NULL) &&
+ (sscanf(hentry[5].body, "%d.%d", &mime_major, &mime_minor) == 2) &&
+ (mime_major == 1) && (mime_minor == 0)) {
procmime_parse_mimepart(mimeinfo,
hentry[0].body, hentry[1].body,
hentry[2].body, hentry[3].body,