williamr@2: // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // definitions of hard-coded data required by the RFC822 protocol williamr@2: // williamr@2: // williamr@2: williamr@2: #if !defined ( __IMCVDATA_H__ ) williamr@2: #define __IMCVDATA_H__ williamr@2: williamr@2: #if !defined (__E32STD_H__) williamr@2: #include williamr@2: #endif williamr@2: williamr@2: // max SMTP line length is actually 1001 but this includes a CR williamr@2: // so allow 1024 characters to be nice to the memory allocator. williamr@2: williamr@2: const TInt KMaxIMailHeaderReadLineLength = 1024; williamr@2: const TInt KMaxIMailHeaderWriteLineLength = 76; williamr@2: const TInt KMaxIMailHeaderLineLength = 1000; williamr@2: const TInt KMaxIMailBodyLineLength = 79; williamr@2: williamr@2: // From RFC 1521, (Boundaries) must be no longer than 70 characters. williamr@2: // Including beginning and end "--" lets check for 74. williamr@2: const TInt KMaxBoundaryTextLength = 74; williamr@2: williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: @released williamr@2: */ williamr@2: enum TMimeContentType { EMimeUnknownContent=0, williamr@2: EMimeText, williamr@2: EMimeMessage, williamr@2: EMimeMultipart, williamr@2: EMimeImage, williamr@2: EMimeApplication, williamr@2: EMimeAudio, williamr@2: EMimeVideo, williamr@2: EMimeTextDirectory }; williamr@2: williamr@2: williamr@2: #endif