The qpage port will run words together in long pages. The problem is in msgcpy in util.c, where the breaks don't preserve word boundries. Fix: Add this patch file to the port. I've also submitted it to the author of qpage. How-To-Repeat: qpage -p USER -f USER "this is a test of a message where two words will have the white space between them removed" results in this page being delivered: USER: this is a test of a message where two words will have the whitespace between them removed (Notice that "white space" became "whitespace", and no I didn't plan my test case that carefully. :))
Sigh. My patch is slightly broken. I wrote: --- /tmp/ports/a/Agena/usr/ports/comms/qpage/work/qpage-3.3/util.c-orig Fri Oct 22 18:57:00 2004 +++ /tmp/ports/a/Agena/usr/ports/comms/qpage/work/qpage-3.3/util.c Fri Oct 22 18:57:04 2004 @@ -537,7 +537,7 @@ ** Now make sure we didn't chop a word in the middle. */ if (*src && end) { - *end++ = '\0'; + *++end = '\0'; src = start; } And of course the absolute path names should not be there. Sorry about that. This patch should work better: --- util.c-orig Fri Oct 22 18:57:00 2004 +++ util.c Fri Oct 22 18:57:04 2004 @@ -537,7 +537,7 @@ ** Now make sure we didn't chop a word in the middle. */ if (*src && end) { - *end++ = '\0'; + *++end = '\0'; src = start; }
State Changed From-To: open->closed Committed, thanks!