williamr@2
|
1 |
// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@2
|
4 |
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@2
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
// definitions of hard-coded data required by the RFC822 protocol
|
williamr@2
|
15 |
//
|
williamr@2
|
16 |
//
|
williamr@2
|
17 |
|
williamr@2
|
18 |
#if !defined ( __IMCVDATA_H__ )
|
williamr@2
|
19 |
#define __IMCVDATA_H__
|
williamr@2
|
20 |
|
williamr@2
|
21 |
#if !defined (__E32STD_H__)
|
williamr@2
|
22 |
#include <e32std.h>
|
williamr@2
|
23 |
#endif
|
williamr@2
|
24 |
|
williamr@2
|
25 |
// max SMTP line length is actually 1001 but this includes a CR
|
williamr@2
|
26 |
// so allow 1024 characters to be nice to the memory allocator.
|
williamr@2
|
27 |
|
williamr@2
|
28 |
const TInt KMaxIMailHeaderReadLineLength = 1024;
|
williamr@2
|
29 |
const TInt KMaxIMailHeaderWriteLineLength = 76;
|
williamr@2
|
30 |
const TInt KMaxIMailHeaderLineLength = 1000;
|
williamr@2
|
31 |
const TInt KMaxIMailBodyLineLength = 79;
|
williamr@2
|
32 |
|
williamr@2
|
33 |
// From RFC 1521, (Boundaries) must be no longer than 70 characters.
|
williamr@2
|
34 |
// Including beginning and end "--" lets check for 74.
|
williamr@2
|
35 |
const TInt KMaxBoundaryTextLength = 74;
|
williamr@2
|
36 |
|
williamr@2
|
37 |
|
williamr@2
|
38 |
/**
|
williamr@2
|
39 |
@internalComponent
|
williamr@2
|
40 |
@released
|
williamr@2
|
41 |
*/
|
williamr@2
|
42 |
enum TMimeContentType { EMimeUnknownContent=0,
|
williamr@2
|
43 |
EMimeText,
|
williamr@2
|
44 |
EMimeMessage,
|
williamr@2
|
45 |
EMimeMultipart,
|
williamr@2
|
46 |
EMimeImage,
|
williamr@2
|
47 |
EMimeApplication,
|
williamr@2
|
48 |
EMimeAudio,
|
williamr@2
|
49 |
EMimeVideo,
|
williamr@2
|
50 |
EMimeTextDirectory };
|
williamr@2
|
51 |
|
williamr@2
|
52 |
|
williamr@2
|
53 |
#endif
|