from the quill of "Brian J. Murrell" <[EMAIL PROTECTED]> on scroll <[EMAIL PROTECTED]>
Hello Cookers. :-)

Please find a source RPM for the latest (non-beta) version of the
Hylafax fax system at
ftp://ftp.linux-mandrake.com/incoming/hylafax-4.0pl2.rjc11-1bjm.src.rpm.

Discovered a problem already. It would seem a feature was taken out of hylafax, left in the documentation is a handy feature, so I have put it back in. Find enclosed a patch that should go into the spec file as "Patch3".

Find the patch enclosed.

Thanx,
b.
Index: faxcover/faxcover.c++
===================================================================
RCS file: /cvsroot/hylafax/faxcover/faxcover.c++,v
retrieving revision 1.2
diff -u -r1.2 faxcover/faxcover.c++
--- faxcover/faxcover.c++       1999/01/07 07:01:03     1.2
+++ faxcover/faxcover.c++       2000/02/19 22:20:34
@@ -341,6 +342,36 @@
         crlf = comments.find(0, "\\n", (u_int) 0);
     }
     coverDef("comments", comments);
+
+       /* now split into lines as per the manpage */
+       int line = 1;
+       while (comments.length() > 0) {
+               // strip leading white space
+               while (comments.length() > 0 && isspace(comments[0]))
+                       comments.remove(0);
+               int len = fxmin(comments.length(), (u_int) 35);
+               if (len == 35 && !isspace(comments[len-1])) {// break on word boundary
+                       int l = len-1;
+                       for (; l > 1 && !isspace(comments[l-1]); l--)
+                               ;
+                       if (l > 0)
+                               len = l;
+                       // otherwise, break in the middle of this really long word
+               }
+               int tot = comments.length();
+               u_int crlf = comments.find(0, "\\n", (u_int) 0);
+               if ( crlf < comments.length() && crlf < len )
+                       len = crlf;
+               fxStr num(line, "%u");
+               coverDef("comments" | num, comments.cut(0,len));
+               if ( crlf < tot && comments.length() >= 2 )
+                       comments.cut(0, 2);
+               line++;
+       }
+       for (; line < maxcomments; line++) {
+               fxStr num(line, "%u");
+               coverDef("comments" | num, "");
+       }
 }
 
 void

--

Brian J. Murrell
InterLinx Support Services, Inc. North Vancouver, B.C.
[EMAIL PROTECTED]
Internet Security and Connectivity

Reply via email to