RCS file: /home/archive/debian/hypermail/docs/hmrc.4,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 hmrc.4 --- docs/hmrc.4 1999/10/26 20:30:57 1.1.1.2 +++ docs/hmrc.4 1999/10/26 23:06:23 >>>> ID05 @@ -109,7 +109,7 @@ .B hm_showheaders = boolean_number Set this to .B 1 - to show the article header lines in the archived HTML files. These +to show the article header lines in the archived HTML files. These lines typically include the .B "To:", "From:", and >>>> ID03 @@ -348,7 +348,9 @@ .B hm_show_headers = list_of_RFC_Headers_to_display This is the list of headers to be displayed if hm_showheaders is set to 1 (TRUE). They can be listed comma or space separated all on a single -line. +line. If it contains the special character ``*'' +.B hypermail +will display all header lines. .TP .B hm_inline_types = which_image_types_should_be_inlined This is the list of MIME types that you want inlined as opposed to Index: docs/hypermail.1 =================================================================== RCS file: /home/archive/debian/hypermail/docs/hypermail.1,v retrieving revision 1.1.1.2 retrieving revision 1.3 diff -u -r1.1.1.2 -r1.3 --- docs/hypermail.1 1999/10/26 20:30:58 1.1.1.2 +++ docs/hypermail.1 1999/10/26 20:45:32 1.3 @@ -199,9 +199,7 @@ .B 1 to show the article header lines in the archived HTML files. These lines typically include the -.B "To:", "From:", -and -.B "Subject:" +.BR "To:" , " From: " and " Subject:" information found in most email messages. .TP .B HM_SHOWHTML boolean_number >>>> ID03 @@ -383,6 +381,10 @@ hm_show_headers = Date hm_show_headers = Message-ID .nr + +As a special case you can use the identifier ``*'' as header to tell +.B hypermail +to display all header lines. .TP .B HM_INLINE_TYPES image data types to inline Index: src/Makefile.in =================================================================== RCS file: /home/archive/debian/hypermail/src/Makefile.in,v retrieving revision 1.1.1.2 retrieving revision 1.3 diff -u -r1.1.1.2 -r1.3 --- src/Makefile.in 1999/10/26 20:30:58 1.1.1.2 +++ src/Makefile.in 1999/10/26 20:47:42 1.3 @@ -103,10 +103,10 @@ mprintf.h proto.h lang.h install: all - install -c -m 0755 hypermail $(bindir) + install -s -c -m 0755 hypermail $(bindir) mail.install: - install -c -m 0755 mail $(cgidir) + install -s -c -m 0755 mail $(cgidir) insight: $(MAKE) CC="insight" Index: src/mail.c =================================================================== RCS file: /home/archive/debian/hypermail/src/mail.c,v retrieving revision 1.1.1.2 retrieving revision 1.3 diff -u -r1.1.1.2 -r1.3 --- src/mail.c 1999/10/26 20:30:58 1.1.1.2 +++ src/mail.c 1999/10/26 20:48:23 1.3 >>>> ID06 @@ -106,6 +106,10 @@ char tmpstr[MAXLEN]; FILE *f; + /* Only correct remote adresses are valid! */ + if(ci == 0 || ci->remote_addr == 0) + return; + print_mimeheader("text/html"); from = to = subject = body = replyto = ""; >>>> Sanity @@ -126,7 +130,7 @@ } } - sprintf(tmpstr, lookupnumaddr(ci->remote_addr)); + sprintf(tmpstr, "%s", lookupnumaddr(ci->remote_addr)); if (strchr(tmpstr, '.')) host = strdup(tmpstr); else Index: src/parse.c =================================================================== RCS file: /home/archive/debian/hypermail/src/parse.c,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 parse.c --- src/parse.c 1999/10/26 20:30:58 1.1.1.2 +++ src/parse.c 1999/10/27 09:26:08 >>>> Sanity @@ -1077,7 +1077,7 @@ char *charset=NULL; /* this is the LOCAL charset used in the mail */ - char *boundary; + char *boundary = NULL; char type[129]; /* for Content-Type type */ char charbuffer[129]; /* for Content-Type charset */ FileStatus file_created = NO_FILE; /* for attachments */ @@ -2420,7 +2420,7 @@ char line[MAXLINE]; struct emailinfo *email; - struct body *bp, *cp, *dp, *status, *lp=NULL; + struct body *bp, *cp, *dp=NULL, *status, *lp=NULL; int ul; FILE *fp; char *ptr; Index: src/print.c =================================================================== RCS file: /home/archive/debian/hypermail/src/print.c,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 print.c --- src/print.c 1999/10/26 20:30:59 1.1.1.2 +++ src/print.c 1999/10/27 08:32:58 >>>> ID03 @@ -319,7 +319,7 @@ int showheader(char *header) { - return (inlist(set_show_headers, header)); + return (inlist(set_show_headers, header) || inlist(set_show_headers, "*")); } /* >>>> ID02 @@ -464,7 +464,7 @@ if(bp->header) { char head[128]; if(!inheader) { - if(!pre && !set_showhtml && set_showheaders) { + if(!pre && set_showheaders) { fprintf(fp, "
\n"); pre=TRUE; } Index: src/setup.c =================================================================== RCS file: /home/archive/debian/hypermail/src/setup.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 setup.c --- src/setup.c 1999/10/26 20:30:59 1.1.1.1 +++ src/setup.c 1999/10/26 21:58:09 >>>> ID01 @@ -415,12 +415,16 @@ return; /* nothing currently */ } -int ConfigAddItem(char *line) +int ConfigAddItem(char *cfg_line) { char keyword[256]; char towhat[501]; char *keywp; int i; + char *line = cfg_line; + + if (!strncmp (line, "set ", 4)) + line+=4; if (2 <= sscanf(line, " %255[a-zA-Z0-9._] %*[=: ] %500[^\n]", keyword, towhat)) { Index: src/string.c =================================================================== RCS file: /home/archive/debian/hypermail/src/string.c,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 string.c --- src/string.c 1999/10/26 20:30:59 1.1.1.2 +++ src/string.c 1999/10/26 21:57:00 >>>> Sanity @@ -654,7 +654,7 @@ PushNString(&buff, lastpos, email-lastpos); } - sprintf(mailaddr,"%.*s@%s", ptr-email, email, mailbuff); + msnprintf(mailaddr, sizeof(mailaddr),"%.*s@%s", ptr-email, email, mailbuff); if (valid_root_domain(mailaddr)) { char *mailcmd=makemailcommand(set_mailcommand,