|
a/src/utils/idfile.cpp |
|
b/src/utils/idfile.cpp |
|
... |
|
... |
34 |
* This code is currently ONLY used to identify mbox and mail message files
|
34 |
* This code is currently ONLY used to identify mbox and mail message files
|
35 |
* which are badly handled by standard mime type identifiers
|
35 |
* which are badly handled by standard mime type identifiers
|
36 |
* There is a very old (circa 1990) mbox format using blocks of ^A (0x01) chars
|
36 |
* There is a very old (circa 1990) mbox format using blocks of ^A (0x01) chars
|
37 |
* to separate messages, that we don't recognize currently
|
37 |
* to separate messages, that we don't recognize currently
|
38 |
*/
|
38 |
*/
|
39 |
|
|
|
40 |
std::list<string> idFileAllTypes()
|
|
|
41 |
{
|
|
|
42 |
std::list<string> lst;
|
|
|
43 |
lst.push_back("text/x-mail");
|
|
|
44 |
lst.push_back("message/rfc822");
|
|
|
45 |
return lst;
|
|
|
46 |
}
|
|
|
47 |
|
39 |
|
48 |
// Mail headers we compare to:
|
40 |
// Mail headers we compare to:
|
49 |
static const char *mailhs[] = {"From: ", "Received: ", "Message-Id: ", "To: ",
|
41 |
static const char *mailhs[] = {"From: ", "Received: ", "Message-Id: ", "To: ",
|
50 |
"Date: ", "Subject: ", "Status: ",
|
42 |
"Date: ", "Subject: ", "Status: ",
|
51 |
"In-Reply-To: "};
|
43 |
"In-Reply-To: "};
|