summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-05-24 11:19:12 +0200
committerErich Eckner <git@eckner.net>2021-01-20 19:19:09 +0100
commit10f61898bcff4586d0186ec893f09acf6d2365b2 (patch)
treed7183f2acec6c159045c0dba54a5966b9e6c71a8
parent90f5eba070541eb46e2d22ad0cff146f0b216250 (diff)
downloadalpine-10f61898bcff4586d0186ec893f09acf6d2365b2.tar.xz
-rw-r--r--pith/send.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/pith/send.c b/pith/send.c
index 80d010d9..78d3c02c 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)){