X-Git-Url: https://git.distorted.org.uk/~mdw/qmail/blobdiff_plain/2117e02ec495fdfd6e96b39778b701a5bcff8aa5..HEAD:/qreceipt.c diff --git a/qreceipt.c b/qreceipt.c index 9b51196..49b9807 100644 --- a/qreceipt.c +++ b/qreceipt.c @@ -60,6 +60,8 @@ stralloc quoted = {0}; void finishheader() { + char *qqx; + if (!flagreceipt) die_noreceipt(); if (str_equal(returnpath,"")) die_noreceipt(); if (str_equal(returnpath,"#@[]")) die_noreceipt(); @@ -88,13 +90,11 @@ following address: "); qmail_from(&qqt,""); qmail_to(&qqt,returnpath); + qqx = qmail_close(&qqt); - switch(qmail_close(&qqt)) - { - case 0: break; - case QMAIL_TOOLONG: die_qqperm(); - default: die_qqtemp(); - } + if (*qqx) + if (*qqx == 'D') die_qqperm(); + else die_qqtemp(); } stralloc hfbuf = {0};