Re: [Nmh-workers] nmh 1.5 has been released!

2012-06-14 Thread Alexander Zangerl
On Tue, 12 Jun 2012 12:23:36 -0500, David Levine writes:
How about this instead:

# The server doesn't always come up fast enough, so sleep and
# retry a few times if it fails...
status=1
for i in 0 1 2 3 4 5 6 7 8 9; do
if send -draft -server 127.0.0.1 -port $localport /dev/null 21; then
status=0
break
fi
sleep 1
done
[ $status -eq 0 ] || exit 1

yes, that's perfect.

regards
az


-- 
Alexander Zangerl + GnuPG Keys 0x42BD645D or 0x5B586291 + http://snafu.priv.at/
Perl is like vise grips. You can do anything with it but it is 
the wrong tool for every job. -- Bruce Eckel


signature.asc
Description: Digital Signature
___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] nmh 1.5 has been released!

2012-06-13 Thread Kevin Cosgrove

On 11 June 2012 at 0:42, Ken Hornstein k...@pobox.com wrote:

 I am pleased to announce the release of nmh 1.5.  It is available for
 download here:
 
   http://download.savannah.gnu.org/releases/nmh/nmh-1.5.tar.gz
 

1.5 works great on my systems.  That's no surprise as RC2 and RC3 
worked great too.

Thanks!

--
Kevin



___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] nmh 1.5 has been released!

2012-06-12 Thread Alexander Zangerl
On Mon, 11 Jun 2012 00:42:57 -0400, Ken Hornstein writes:
I am pleased to announce the release of nmh 1.5.  It is available for
download here:

...and i'm one day too late with these two small bug reports.

* hurd doesn't have MAXPATHLEN as outlined here:
http://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL

much of nmh is using PATH_MAX (which is set in nmh.h from 
MAXPATHLEN or an arbitrary local constant as fallback), but 
some sources don't and thus nmh doesn't build on hurd.
the attached patch changes those files to also use PATH_MAX.

* the other issue is that occasionally the post tests attempt to talk to
fakesmtp before that has completed starting up. i've inserted an arbitrary
5 sec delay between starting up fakesmtp and talking to it to avoid that
scenario.

#! /bin/sh /usr/share/dpatch/dpatch-run
## 02-maxpathlen.dpatch by  a...@debian.org
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: hurd doesn't have MAXPATHLEN, but not all code uses PATH_MAX

@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' nmh-1.5~/uip/inc.c nmh-1.5/uip/inc.c
--- nmh-1.5~/uip/inc.c	2012-06-11 14:06:19.0 +1000
+++ nmh-1.5/uip/inc.c	2012-06-12 20:03:44.034356510 +1000
@@ -202,7 +202,7 @@
 struct msgs *mp = NULL;
 struct stat st, s1;
 FILE *aud = NULL;
-char b[MAXPATHLEN + 1];
+char b[PATH_MAX + 1];
 char *maildir_copy = NULL;	/* copy of mail directory because the static gets overwritten */
 
 int nmsgs, nbytes;
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' nmh-1.5~/uip/sendsbr.c nmh-1.5/uip/sendsbr.c
--- nmh-1.5~/uip/sendsbr.c	2012-06-04 05:37:11.0 +1000
+++ nmh-1.5/uip/sendsbr.c	2012-06-12 20:04:04.840227256 +1000
@@ -35,8 +35,8 @@
 
 static jmp_buf env;
 
-static	char	body_file_name[MAXPATHLEN + 1];		/* name of temporary file for body content */
-static	char	composition_file_name[MAXPATHLEN + 1];	/* name of mhbuild composition temporary file */
+static	char	body_file_name[PATH_MAX + 1];		/* name of temporary file for body content */
+static	char	composition_file_name[PATH_MAX + 1];	/* name of mhbuild composition temporary file */
 static	int	field_size;/* size of header field buffer */
 static	char	*field;	/* header field buffer */
 static	FILE	*draft_file;/* draft file pointer */
@@ -186,7 +186,7 @@
 attach(char *attachment_header_field_name, char *draft_file_name,
int attachformat)
 {
-char		buf[MAXPATHLEN + 6];	/* miscellaneous buffer */
+char		buf[PATH_MAX + 6];	/* miscellaneous buffer */
 int			c;			/* current character for body copy */
 int			has_attachment;		/* draft has at least one attachment */
 int			has_body;		/* draft has a message body */
@@ -386,7 +386,7 @@
 {
 int			binary;			/* binary character found flag */
 int			c;			/* current character */
-char		cmd[MAXPATHLEN + 6];	/* file command buffer */
+char		cmd[PATH_MAX + 6];	/* file command buffer */
 char		*content_type;		/* mime content type */
 FILE		*fp;			/* content and pipe file pointer */
 struct	node	*np;			/* context scan node pointer */
@@ -456,7 +456,7 @@
 (void)fprintf(composition_file, #%s; name=\%s\; x-unix-mode=0%.3ho,
 content_type, ((p = strrchr(file_name, '/')) == (char *)0) ? file_name : p + 1, (unsigned short)(st.st_mode  0777));
 
-if (strlen(file_name)  MAXPATHLEN) {
+if (strlen(file_name)  PATH_MAX) {
 clean_up_temporary_files();
 adios((char *)0, attachment file name `%s' too long., file_name);
 }
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' nmh-1.5~/uip/sortm.c nmh-1.5/uip/sortm.c
--- nmh-1.5~/uip/sortm.c	2012-06-11 14:06:19.0 +1000
+++ nmh-1.5/uip/sortm.c	2012-06-12 20:04:09.675964796 +1000
@@ -492,7 +492,7 @@
 {
 int nxt, old, new;
 char *newname, oldname[BUFSIZ];
-char newbuf[MAXPATHLEN + 1];
+char newbuf[PATH_MAX + 1];
 
 for (;;) {
 	nxt = mlist[msg] - smsgs;	/* mlist[msg] is a ptr into smsgs */
@@ -530,7 +530,7 @@
 int i, j, old, new;
 seqset_t tmpset;
 char f1[BUFSIZ], tmpfil[BUFSIZ];
-char newbuf[MAXPATHLEN + 1];
+char newbuf[PATH_MAX + 1];
 struct smsg *sp;
 
 strncpy (tmpfil, m_name (mp-hghmsg + 1), sizeof(tmpfil));
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' nmh-1.5~/uip/whatnowsbr.c nmh-1.5/uip/whatnowsbr.c
--- nmh-1.5~/uip/whatnowsbr.c	2012-06-11 14:06:19.0 +1000
+++ nmh-1.5/uip/whatnowsbr.c	2012-06-12 20:03:54.316798423 +1000
@@ -141,9 +141,9 @@
 char **argp, **arguments;
 struct stat st;
 char	*attach = NMH_ATTACH_HEADER;/* attachment header field 

Re: [Nmh-workers] nmh 1.5 has been released!

2012-06-12 Thread David Levine
az wrote:

 * hurd doesn't have MAXPATHLEN as outlined here:
 http://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL

 much of nmh is using PATH_MAX (which is set in nmh.h from
 MAXPATHLEN or an arbitrary local constant as fallback), but
 some sources don't and thus nmh doesn't build on hurd.
 the attached patch changes those files to also use PATH_MAX.

Thanks, I'll apply your patch.

 * the other issue is that occasionally the post tests attempt to
 talk to fakesmtp before that has completed starting up. i've
 inserted an arbitrary 5 sec delay between starting up fakesmtp and
 talking to it to avoid that scenario.

How about this instead:

# The server doesn't always come up fast enough, so sleep and
# retry a few times if it fails...
status=1
for i in 0 1 2 3 4 5 6 7 8 9; do
if send -draft -server 127.0.0.1 -port $localport /dev/null 21; then
status=0
break
fi
sleep 1
done
[ $status -eq 0 ] || exit 1

David

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] nmh 1.5 has been released!

2012-06-10 Thread Kevin Cosgrove

On 11 June 2012 at 0:42, Ken Hornstein k...@pobox.com wrote:

 I am pleased to announce the release of nmh 1.5.  It is available for
 download here:
 
   http://download.savannah.gnu.org/releases/nmh/nmh-1.5.tar.gz

21:49:26 ERROR 404: Not Found.

???

--
Kevin



___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] nmh 1.5 has been released!

2012-06-10 Thread Ken Hornstein
  http://download.savannah.gnu.org/releases/nmh/nmh-1.5.tar.gz

Sigh.  Do you just not like Reply-to header lines?

I was kinda figuring that no one would be on-line at 1am on a Sunday and
that would give the savannah mirrors time to propagate the distribution.
If you go to the dowload area:

http://download.savannah.gnu.org/releases/nmh/

You can see some text at the bottom which tells you what to do in this
case.

--Ken

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers