diff options
| author | Sam Varshavchik | 2018-04-27 19:17:42 -0400 | 
|---|---|---|
| committer | Sam Varshavchik | 2018-04-27 19:17:42 -0400 | 
| commit | 9ad6c58af31f682374bdbf136d6e9f337ea39209 (patch) | |
| tree | 1607a69a4e70e79b905943b717670369cc08d523 /libmail/autodecoder.C | |
| parent | a6074e9074e02423f879d2d8bf923ca815cee760 (diff) | |
| download | courier-libs-9ad6c58af31f682374bdbf136d6e9f337ea39209.tar.bz2 | |
curses and libmail subdirectories are now in the courier/cone repo.
Diffstat (limited to 'libmail/autodecoder.C')
| -rw-r--r-- | libmail/autodecoder.C | 67 | 
1 files changed, 0 insertions, 67 deletions
diff --git a/libmail/autodecoder.C b/libmail/autodecoder.C deleted file mode 100644 index 8065fd9..0000000 --- a/libmail/autodecoder.C +++ /dev/null @@ -1,67 +0,0 @@ -/* -** Copyright 2002-2004, Double Precision Inc. -** -** See COPYING for distribution information. -*/ -#include "libmail_config.h" -#include "misc.H" -#include "autodecoder.H" - -using namespace std; - -mail::autodecoder::base64::base64(mail::autodecoder &meArg) -	: me(meArg) -{ -} - -mail::autodecoder::base64::~base64() -{ -} - -void mail::autodecoder::base64::decoded(string s) -{ -	me.decoded(s); -} - -mail::autodecoder::qp::qp(mail::autodecoder &meArg) -	: me(meArg) -{ -} - -mail::autodecoder::qp::~qp() -{ -} - -void mail::autodecoder::qp::decoded(string s) -{ -	me.decoded(s); -} - -////////////////////////////////////////////////////////////////////// - -mail::autodecoder::autodecoder(string cte) -	: base64Decoder(*this), -	  qpDecoder(*this), -	  decoder(NULL) -{ -	mail::upper(cte); - -	if (cte == "QUOTED-PRINTABLE") -		decoder= &qpDecoder; - -	if (cte == "BASE64") -		decoder= &base64Decoder; -} - -mail::autodecoder::~autodecoder() -{ -} - -void mail::autodecoder::decode(string s) -{ -	if (decoder) -		decoder->decode(s);	// 7bit or 8bit, or something... -	else -		decoded(s); -} -  | 
