// -----------------------------------------------------------------------
//
// Copyright (C) 2003-2006 Angel Marin
//
// This file is part of SharpMimeTools
//
// SharpMimeTools is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// SharpMimeTools is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with SharpMimeTools; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301 USA
//
// -----------------------------------------------------------------------
using System;
namespace anmar.SharpMimeTools
{
///
/// Options used while decoding the message's content.
///
[System.Flags]
public enum SharpDecodeOptions {
///
/// None of the above.
///
None = 0,
///
/// Allow attachments.
///
AllowAttachments = 1,
///
/// Allow html body parts. If there is no alternative part to the html one, the body part will be ignored
///
AllowHtml = 2,
///
/// Add a named anchor to the html body before each body part that has a Content-ID header. The anchor will be named as Message-ID_Content-ID
///
NamedAnchors = 4,
///
/// Decode ms-tnef content
///
DecodeTnef = 8,
///
/// Decode uuencoded content
///
UuDecode = 16,
///
/// If folder where attachemts are saved does not exist, create it.
///
CreateFolder = 32,
///
/// Default options (AllowAttachments and AllowHtml)
///
Default = AllowAttachments | AllowHtml
}
}