X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/qmail/blobdiff_plain/2117e02ec495fdfd6e96b39778b701a5bcff8aa5..212b6f5da7c68d4577de2855da3c57ecf476dc96:/qreceipt.c?ds=inline 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};