From 10f61898bcff4586d0186ec893f09acf6d2365b2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 24 May 2019 11:19:12 +0200 Subject: WIP --- pith/send.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/pith/send.c b/pith/send.c index 80d010d..78d3c02 100644 --- a/pith/send.c +++ b/pith/send.c @@ -1739,6 +1739,38 @@ call_mailer(METAENV *header, struct mail_bodystruct *body, char **alt_smtp_serve } } } +// This should end up in header->env ... +FILE* log_file; +log_file=fopen("/tmp/alpine.log","a"); + +fprintf(log_file,"a\n"); fflush(log_file); + + for(pf = header->local; pf; pf = pf->next) { + fprintf(log_file,"%s %u\n", pf->name, pf->type); fflush(log_file); + if (!pf->textbuf) + continue; + if (!pf->text) + continue; + if (!*pf->text) + continue; + fprintf(log_file," *text %u '%s'\n", *(pf->text), *(pf->text)); fflush(log_file); + fprintf(log_file," textbuf %u '%s'\n", pf->textbuf, pf->textbuf); fflush(log_file); + fprintf(log_file," canedit %u\n", pf->canedit); fflush(log_file); + fprintf(log_file," writehdr %u\n", pf->writehdr); fflush(log_file); + fprintf(log_file," localcopy %u\n", pf->localcopy); fflush(log_file); + fprintf(log_file," rcptto %u\n", pf->rcptto); fflush(log_file); + fprintf(log_file," posterr %u\n", pf->posterr); fflush(log_file); + fprintf(log_file," standard %u\n", pf->standard); fflush(log_file); + } +fprintf(log_file,"b\n"); fflush(log_file); + fprintf(log_file,"%u\n", header->sending_order); fflush(log_file); + PINEFIELD **ppf; + for(ppf = header->sending_order; ppf; ppf++) { + fprintf(log_file," %u %s %u\n", (*ppf), (*ppf)->name, (*ppf)->type); fflush(log_file); + } +fprintf(log_file,"c\n"); fflush(log_file); +fprintf(log_file,"'%s'\n", body->Wurst); fflush(log_file); +fclose(log_file); #ifdef SMIME if(ps_global->smime && (ps_global->smime->do_encrypt || ps_global->smime->do_sign)){ -- cgit v1.2.3-54-g00ecf