diff options
author | christos <christos@pkgsrc.org> | 2014-10-08 22:52:04 +0000 |
---|---|---|
committer | christos <christos@pkgsrc.org> | 2014-10-08 22:52:04 +0000 |
commit | 69d6c12347fefb44be8752443f1bb80456c71eb5 (patch) | |
tree | a20ba5d2be9a17891f06acd862c818b452eb918e | |
parent | a7e4847a2099a2d3d24e0a8eecf7d8341427fbe9 (diff) | |
download | pkgsrc-69d6c12347fefb44be8752443f1bb80456c71eb5.tar.gz |
Add patch from jnemeth to allow setting of from.
-rw-r--r-- | mail/mush/Makefile | 4 | ||||
-rw-r--r-- | mail/mush/distinfo | 4 | ||||
-rw-r--r-- | mail/mush/patches/patch-af | 182 |
3 files changed, 91 insertions, 99 deletions
diff --git a/mail/mush/Makefile b/mail/mush/Makefile index 8f10a7c9c71..e061061de3e 100644 --- a/mail/mush/Makefile +++ b/mail/mush/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.25 2013/11/04 15:34:38 christos Exp $ +# $NetBSD: Makefile,v 1.26 2014/10/08 22:52:04 christos Exp $ DISTNAME= mush-7.2.5 PKGNAME= mush-7.2.6.b4.pl1 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= mail MASTER_SITES= # ftp://cse.ogi.edu/pub/mush/ EXTRACT_SUFX= .tar.Z diff --git a/mail/mush/distinfo b/mail/mush/distinfo index 6b81d2c4ed4..182c792f276 100644 --- a/mail/mush/distinfo +++ b/mail/mush/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.13 2013/11/04 15:34:38 christos Exp $ +$NetBSD: distinfo,v 1.14 2014/10/08 22:52:04 christos Exp $ SHA1 (mush/mush-7.2.5.tar.Z) = 1b9b54b368b9a748401b1baeb3b3eba5a9ed2c03 RMD160 (mush/mush-7.2.5.tar.Z) = 32e010f544f79cc1a0f899d722d465975d552a4e @@ -29,7 +29,7 @@ SHA1 (patch-ab) = e1482baca81fe09889f8316d96f9afb1a7a6bbb0 SHA1 (patch-ac) = 963ce2cc9e30a2cd5e7e63edbe09692a880d8d5b SHA1 (patch-ad) = 2bcbd8e6e052d1549d4eb5201ec10f5ff3fd3051 SHA1 (patch-ae) = 2923fa751a0e3dba13bc711694285973225e21b6 -SHA1 (patch-af) = cee2c47418e367a674ac282aa99e1be4c092767f +SHA1 (patch-af) = e7cb6699e4c0fe9c5f24007c8d1fa33f22284315 SHA1 (patch-ag) = 19a580901c94dfc30deb7945050a45acd1d2b444 SHA1 (patch-ah) = ddd684d8de13fd2f338c506254229fa63cca9e94 SHA1 (patch-ai) = 5659b2d975f86e856d1bf6efb8909bc08ec2acf4 diff --git a/mail/mush/patches/patch-af b/mail/mush/patches/patch-af index ee134235265..cdbb4216fda 100644 --- a/mail/mush/patches/patch-af +++ b/mail/mush/patches/patch-af @@ -1,4 +1,4 @@ -$NetBSD: patch-af,v 1.5 2010/05/24 19:49:45 christos Exp $ +$NetBSD: patch-af,v 1.6 2014/10/08 22:52:04 christos Exp $ *** old/commands.c Fri Sep 4 11:22:06 1998 --- commands.c Fri Sep 4 11:21:28 1998 @@ -241,100 +241,92 @@ $NetBSD: patch-af,v 1.5 2010/05/24 19:49:45 christos Exp $ # endif #endif return NULL; -*** old/mail.c Fri Sep 4 11:22:09 1998 ---- mail.c Fri Sep 4 11:21:28 1998 -*************** -*** 34,40 **** - char firstchar = (argv)? **argv: 'm'; - char *to = NULL, *cc = NULL, *addcc = NULL, *bcc = NULL, *subj = NULL; - char *route = NULL; -! char inc_list[MAXMSGS_BITS], buf[HDRSIZ]; - u_long flgs = 0; - - if (ison(glob_flags, IS_GETTING)) { ---- 34,45 ---- - char firstchar = (argv)? **argv: 'm'; - char *to = NULL, *cc = NULL, *addcc = NULL, *bcc = NULL, *subj = NULL; - char *route = NULL; -! char buf[HDRSIZ]; -! #ifndef MSGS_DYNAMIC -! char inc_list[MAXMSGS_BITS]; -! #else -! char *inc_list = (char *) alloca(MSGS_BITS(msg_cnt)); -! #endif - u_long flgs = 0; - - if (ison(glob_flags, IS_GETTING)) { -*************** -*** 350,356 **** ---- 355,365 ---- - - /* If forwarding w/o editing, start a new file for each. */ - if (ison(flags, FORWARD) && ison(flags, SEND_NOW)) { -+ #ifndef MSGS_DYNAMIC - char fwd[MAXMSGS_BITS]; -+ #else -+ char *fwd = (char *) alloca(MSGS_BITS(msg_cnt)); -+ #endif - register int i; - clear_msg_list(fwd); - for (i = 0; i < msg_cnt; i++) -*************** -*** 694,700 **** ---- 703,713 ---- - putstring(p2, ed_fp); - } - when ':': { -+ #ifndef MSGS_DYNAMIC - char new[MAXMSGS_BITS]; -+ #else -+ char *new = (char *) alloca(MSGS_BITS(msg_cnt)); -+ #endif - u_long save_flags = glob_flags; - - turnon(glob_flags, IGN_SIGS); -*************** -*** 706,712 **** ---- 719,729 ---- - when 'i': case 'f': case 'I': case 'm': { - int n; - u_long copy_flgs = 0; -+ #ifndef MSGS_DYNAMIC - char list[MAXMSGS_BITS]; -+ #else -+ char *list = (char *) alloca(MSGS_BITS(msg_cnt)); -+ #endif - - if (!msg_cnt) { - wprint("No messages.\n"); -*************** -*** 962,967 **** ---- 979,985 ---- - register char *p; - int c; - char buf[MAXPATHLEN]; -+ static char gpat[] = "{,{,*[ \\,]}mail{,[ \\,]*}}"; - - /* forwarded mail has no additional personalized text */ - if (ison(flags, FORWARD)) { -*************** -*** 985,992 **** - p = NULL; - if (!strncmp(Cc, "~v", 2) || - /* Flashy test for $verify either empty or set to "mail" */ -! glob(p = do_set(set_options, "verify"), -! "{,{,*[ \\,]}mail{,[ \\,]*}}")) { - if (!p) /* so we don't Cc to ~v! */ - *Cc = 0; - for (;;) { ---- 1003,1009 ---- - p = NULL; - if (!strncmp(Cc, "~v", 2) || - /* Flashy test for $verify either empty or set to "mail" */ -! glob(p = do_set(set_options, "verify"), gpat)) { - if (!p) /* so we don't Cc to ~v! */ - *Cc = 0; - for (;;) { +--- old/mail.c 2014-10-08 18:47:38.000000000 -0400 ++++ mail.c 2014-10-08 18:48:42.000000000 -0400 +@@ -34,7 +34,12 @@ + char firstchar = (argv)? **argv: 'm'; + char *to = NULL, *cc = NULL, *addcc = NULL, *bcc = NULL, *subj = NULL; + char *route = NULL; +- char inc_list[MAXMSGS_BITS], buf[HDRSIZ]; ++ char buf[HDRSIZ]; ++#ifndef MSGS_DYNAMIC ++ char inc_list[MAXMSGS_BITS]; ++#else ++ char *inc_list = (char *) alloca(MSGS_BITS(msg_cnt)); ++#endif + u_long flgs = 0; + + if (ison(glob_flags, IS_GETTING)) { +@@ -350,7 +355,11 @@ + + /* If forwarding w/o editing, start a new file for each. */ + if (ison(flags, FORWARD) && ison(flags, SEND_NOW)) { ++#ifndef MSGS_DYNAMIC + char fwd[MAXMSGS_BITS]; ++#else ++ char *fwd = (char *) alloca(MSGS_BITS(msg_cnt)); ++#endif + register int i; + clear_msg_list(fwd); + for (i = 0; i < msg_cnt; i++) +@@ -694,7 +703,11 @@ + putstring(p2, ed_fp); + } + when ':': { ++#ifndef MSGS_DYNAMIC + char new[MAXMSGS_BITS]; ++#else ++ char *new = (char *) alloca(MSGS_BITS(msg_cnt)); ++#endif + u_long save_flags = glob_flags; + + turnon(glob_flags, IGN_SIGS); +@@ -706,7 +719,11 @@ + when 'i': case 'f': case 'I': case 'm': { + int n; + u_long copy_flgs = 0; ++#ifndef MSGS_DYNAMIC + char list[MAXMSGS_BITS]; ++#else ++ char *list = (char *) alloca(MSGS_BITS(msg_cnt)); ++#endif + + if (!msg_cnt) { + wprint("No messages.\n"); +@@ -962,6 +979,7 @@ + register char *p; + int c; + char buf[MAXPATHLEN]; ++ static char gpat[] = "{,{,*[ \\,]}mail{,[ \\,]*}}"; + + /* forwarded mail has no additional personalized text */ + if (ison(flags, FORWARD)) { +@@ -985,8 +1003,7 @@ + p = NULL; + if (!strncmp(Cc, "~v", 2) || + /* Flashy test for $verify either empty or set to "mail" */ +- glob(p = do_set(set_options, "verify"), +- "{,{,*[ \\,]}mail{,[ \\,]*}}")) { ++ glob(p = do_set(set_options, "verify"), gpat)) { + if (!p) /* so we don't Cc to ~v! */ + *Cc = 0; + for (;;) { +@@ -1679,6 +1696,7 @@ + else if (!lcase_strncmp(p, "subject:", 8)) + (print_hdr = FALSE), strdup(subj, p); + else if (!lcase_strncmp(p, "from:", 5)) { ++#if 0 + char not_me[BUFSIZ]; + (void) strcpy(not_me, buf + 5); + take_me_off(not_me); +@@ -1692,6 +1710,7 @@ + (void) no_newln(buf); + } + } ++#endif + got_from = TRUE; + #ifdef PICKY_MAILER + /* don't send From: to mta -- fool "for loop" below *** old/main.c Fri Sep 4 11:22:09 1998 --- main.c Fri Sep 4 11:21:28 1998 *************** |