<<< Date Index >>>     <<< Thread Index >>>

[patch] make headers wrap at wrapmargin rather than hardcoded value



... afterall we're using wide-terminal for a reason. ;)

Moin, and enjoy.

-- 
© Rado S. -- You must provide YOUR effort for your goal!
Even if it seems insignificant, in fact EVERY effort counts
for a shared task, at least to show your deserving attitude.
--- sendlib.c   Thu Aug 17 11:00:02 2006
+++ ../sendlib.c        Thu Jan  4 20:30:38 2007
@@ -1518,8 +1518,6 @@
 }
 
 
-#define WRAPLEN 76
-
 static void foldingstrfcpy (char *d, const char *s, int n)
 {
   while (--n >= 0 && *s)
@@ -1544,6 +1542,7 @@
   int first = 1;
   int wrapped = 0;
   int in_encoded_word = 0;
+  int WRAPLEN=COLS-WrapMargin;
   
   if (tag)
   {
@@ -1684,8 +1683,6 @@
 
   return 0;
 }
-
-#undef WRAPLEN
 
 /* Note: all RFC2047 encoding should be done outside of this routine, except
  * for the "real name."  This will allow this routine to be used more than