indimail / indimail-mta

qmail fork with IPV6, TLS, DANE, DKIM, SRS2, SPF, daemontools, qmailanalog, mess822, & ucspi-tcp
https://github.com/indimail/indimail-mta/wiki/0-IndiMail-Wiki
GNU General Public License v3.0
12 stars 2 forks source link

Qmail queue error codes #36

Closed mbhangui closed 1 year ago

mbhangui commented 1 year ago

qmail-queue uses hard coded exit codes in qmail.c. This creates a problem for any code that uses qmail_open(). They too have to use this hard-coded exit codes. Having this exit codes defined in qmail.h as defines simplifies qmail_open() and also reduces the chances of using the wrong exit code.