message-header-decode.c revision 7c424aa51c956c628e3512055841aa2f9eef4833
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "base64.h"
#include "buffer.h"
#include "quoted-printable.h"
#include "message-header-decode.h"
{
/* get charset */
/* get encoding */
pos++;
return FALSE;
*encoding = "Q";
*encoding = "B";
else
return FALSE;
/* get text */
pos += 2;
return FALSE;
return TRUE;
}
static int
void *context)
{
const unsigned char *text;
int ret;
t_push();
/* first split the string charset?encoding?text?= */
t_pop();
return TRUE;
}
if (*encoding == 'Q')
else {
/* corrupted encoding */
t_pop();
return TRUE;
}
}
t_pop();
return ret;
}
void *context)
{
/* encoded string beginning */
/* send the unencoded data so far */
return;
}
pos += 2;
return;
} else {
pos++;
}
}
}