MimeKit.ParserOptions.IsEncoded C# (CSharp) Method

IsEncoded() static private method

static private IsEncoded ( IList
headers ) : bool
headers IList
return bool
		static bool IsEncoded (IList<Header> headers)
		{
			ContentEncoding encoding;

			for (int i = 0; i < headers.Count; i++) {
				if (headers[i].Id != HeaderId.ContentTransferEncoding)
					continue;

				MimeUtils.TryParse (headers[i].Value, out encoding);

				switch (encoding) {
				case ContentEncoding.SevenBit:
				case ContentEncoding.EightBit:
				case ContentEncoding.Binary:
					return false;
				default:
					return true;
				}
			}

			return false;
		}