ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
subreceipt.c
Go to the documentation of this file.
1#include "fmt.h"
2#include "logmsg.h"
3#include "subscribe.h"
4#include "stralloc.h"
5#include "errtxt.h"
6
7#define WHO "subreceipt"
8
15
16static char strnum[FMT_ULONG];
17
31
32int subreceipt(char *dir,unsigned long msgnum,stralloc *cookie,char *listaddr,int done,char *info,char *fatal)
33{
34 strnum[fmt_ulong(strnum,msgnum)] = '\0';
35
36 if (cookie->len > 2) {
37 if (!stralloc_0(cookie)) logmsg(WHO,111,FATAL,ERR_NOMEM);
38 if (done == 2)
39 logmsg(WHO,0,INFO,B(listaddr,": receipt :",strnum,": ",cookie->s));
40 else
41 logmsg(WHO,0,INFO,B(listaddr,": bounce :",strnum,": ",cookie->s));
42 } else {
43 if (done == 2)
44 logmsg(WHO,0,INFO,B(listaddr,": receipt :",strnum));
45 else
46 logmsg(WHO,0,INFO,B(listaddr,": bounce :",strnum));
47 }
48 return 1;
49}
Error messages. If you translate these, I would urge you to keep the English version as well....
#define ERR_NOMEM
Definition errtxt.h:14
#define WHO
Definition author.c:1
char * dir
void cookie(char *hash, const char *key, unsigned int keylen, const char *date, const char *addr, const char *action)
Definition cookie.c:14
stralloc listaddr
Definition ezmlm-cron.c:49
unsigned long msgnum
const char * logmsg(const char *dir, unsigned long num, unsigned long listno, unsigned long subs, int done)
Definition loginfo.c:32
int subreceipt(char *dir, unsigned long msgnum, stralloc *cookie, char *listaddr, int done, char *info, char *fatal)
Definition subreceipt.c:40