[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Re: EmailMaxLines ignored in 2.1.14
From: |
Jamie Wilkinson |
Subject: |
[PATCH] Re: EmailMaxLines ignored in 2.1.14 |
Date: |
Tue, 9 Aug 2005 18:34:12 +1000 |
User-agent: |
Mutt/1.5.6+20040907i |
This one time, at band camp, Eric Sorenson wrote:
>Can you please try the attached patch? It compiles OK but I can't
>easily test it tonight. This fixes the above problem as well as the
>frequent complaint that the documentation differs from reality. The docs
>say that if EmailMaxLines is unset, it defaults to 100 but the code
>says 20.
The patch is working for me on 2.1.15.
>--
> - Eric Sorenson - N37 17.255 W121 55.738 - http://eric.explosive.net -
> - Personal colo with a professional touch - http://www.explosive.net -
>Index: cfexecd.c
>===================================================================
>--- cfexecd.c (revision 101)
>+++ cfexecd.c (working copy)
>@@ -459,8 +459,16 @@
> if (strcmp(name,"EmailMaxLines") == 0)
> {
> Debug("%s/%s\n",name,content);
>- MAXLINES = 20;
>- sscanf(content,"%d",&MAXLINES);
>+ MAXLINES = 100;
>+ if (strcmp(content,"inf") == 0)
>+ {
>+ MAXLINES = -2;
>+ Debug("EmailMaxLines set to infinity\n");
>+ }
>+ else
>+ {
>+ sscanf(content,"%d",&MAXLINES);
>+ }
> continue;
> }
>
>--
>Help-cfengine mailing list
>Help-cfengine@gnu.org
>http://lists.gnu.org/mailman/listinfo/help-cfengine
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Re: EmailMaxLines ignored in 2.1.14,
Jamie Wilkinson <=