epoc32/include/imcvdata.h
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/imcvdata.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,53 @@
     1.4 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// 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
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// definitions of hard-coded data required by the RFC822 protocol
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#if !defined ( __IMCVDATA_H__ )
    1.22 +#define __IMCVDATA_H__
    1.23 +
    1.24 +#if !defined (__E32STD_H__)
    1.25 +#include <e32std.h>
    1.26 +#endif
    1.27 +
    1.28 +// max SMTP line length is actually 1001 but this includes a CR
    1.29 +// so allow 1024 characters to be nice to the memory allocator.
    1.30 +
    1.31 +const TInt KMaxIMailHeaderReadLineLength  = 1024;
    1.32 +const TInt KMaxIMailHeaderWriteLineLength  = 76;
    1.33 +const TInt KMaxIMailHeaderLineLength  = 1000;
    1.34 +const TInt KMaxIMailBodyLineLength = 79;
    1.35 +
    1.36 +// From RFC 1521, (Boundaries) must be no longer than 70 characters.
    1.37 +// Including beginning and end "--" lets check for 74.
    1.38 +const TInt KMaxBoundaryTextLength = 74;
    1.39 +
    1.40 +
    1.41 +/**
    1.42 +@internalComponent
    1.43 +@released
    1.44 +*/
    1.45 +enum TMimeContentType {		EMimeUnknownContent=0, 
    1.46 +							EMimeText, 
    1.47 +							EMimeMessage, 
    1.48 +							EMimeMultipart, 
    1.49 +							EMimeImage, 
    1.50 +							EMimeApplication, 
    1.51 +							EMimeAudio, 
    1.52 +							EMimeVideo,
    1.53 +							EMimeTextDirectory };
    1.54 +
    1.55 +
    1.56 +#endif