projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Backport fix from trunk for SASL bug.
[mmh]
/
uip
/
post.c
diff --git
a/uip/post.c
b/uip/post.c
index
f880152
..
e3b6229
100644
(file)
--- a/
uip/post.c
+++ b/
uip/post.c
@@
-294,7
+294,7
@@
static int insert (struct mailname *);
static void pl (void);
static void anno (void);
static int annoaux (struct mailname *);
static void pl (void);
static void anno (void);
static int annoaux (struct mailname *);
-static void insert_fcc (struct headers *, char *);
+static void insert_fcc (struct headers *, unsigned char *);
static void make_bcc_file (int);
static void verify_all_addresses (int);
static void chkadr (void);
static void make_bcc_file (int);
static void verify_all_addresses (int);
static void chkadr (void);
@@
-639,7
+639,8
@@
main (int argc, char **argv)
if (verbose)
printf (partno ? "Partial Message #%s Processed\n" : "Message Processed\n",
partno);
if (verbose)
printf (partno ? "Partial Message #%s Processed\n" : "Message Processed\n",
partno);
- return done (0);
+ done (0);
+ return 1;
}
}
@@
-830,7
+831,7
@@
putfmt (char *name, char *str, FILE *out)
static void
start_headers (void)
{
static void
start_headers (void)
{
- char *cp;
+ unsigned char *cp;
char myhost[BUFSIZ], sigbuf[BUFSIZ];
struct mailname *mp;
char myhost[BUFSIZ], sigbuf[BUFSIZ];
struct mailname *mp;
@@
-946,7
+947,7
@@
get_header (char *header, struct headers *table)
struct headers *h;
for (h = table; h->value; h++)
struct headers *h;
for (h = table; h->value; h++)
- if (!strcasecmp (header, h->value))
+ if (!mh_strcasecmp (header, h->value))
return (h - table);
return NOTOK;
return (h - table);
return NOTOK;
@@
-1048,8
+1049,8
@@
insert (struct mailname *np)
: &netaddrs;
mp->m_next;
mp = mp->m_next)
: &netaddrs;
mp->m_next;
mp = mp->m_next)
- if (!strcasecmp (np->m_host, mp->m_next->m_host)
- && !strcasecmp (np->m_mbox, mp->m_next->m_mbox)
+ if (!mh_strcasecmp (np->m_host, mp->m_next->m_host)
+ && !mh_strcasecmp (np->m_mbox, mp->m_next->m_mbox)
&& np->m_bcc == mp->m_next->m_bcc)
return 0;
&& np->m_bcc == mp->m_next->m_bcc)
return 0;
@@
-1128,9
+1129,9
@@
annoaux (struct mailname *mp)
static void
static void
-insert_fcc (struct headers *hdr, char *pp)
+insert_fcc (struct headers *hdr, unsigned char *pp)
{
{
- char *cp;
+ unsigned char *cp;
for (cp = pp; isspace (*cp); cp++)
continue;
for (cp = pp; isspace (*cp); cp++)
continue;
@@
-1288,7
+1289,7
@@
static int
find_prefix (void)
{
int len, result;
find_prefix (void)
{
int len, result;
- char buffer[BUFSIZ];
+ unsigned char buffer[BUFSIZ];
FILE *in;
if ((in = fopen (tmpfil, "r")) == NULL)
FILE *in;
if ((in = fopen (tmpfil, "r")) == NULL)
@@
-1299,7
+1300,7
@@
find_prefix (void)
result = OK;
while (fgets (buffer, sizeof(buffer) - 1, in))
if (buffer[0] == '-' && buffer[1] == '-') {
result = OK;
while (fgets (buffer, sizeof(buffer) - 1, in))
if (buffer[0] == '-' && buffer[1] == '-') {
- char *cp;
+ unsigned char *cp;
for (cp = buffer + strlen (buffer) - 1; cp >= buffer; cp--)
if (!isspace (*cp))
for (cp = buffer + strlen (buffer) - 1; cp >= buffer; cp--)
if (!isspace (*cp))