From a688a533ac983688c67da1c55d2534c55ccb595e Mon Sep 17 00:00:00 2001 From: spwhitton Date: Fri, 17 Aug 2018 14:36:19 +0000 Subject: Added a comment --- ...ent_5_b4c1265f881e96d999528d8a433176cc._comment | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 doc/forum/mailname_set_by_Propellor.Property.Hostname.sane/comment_5_b4c1265f881e96d999528d8a433176cc._comment diff --git a/doc/forum/mailname_set_by_Propellor.Property.Hostname.sane/comment_5_b4c1265f881e96d999528d8a433176cc._comment b/doc/forum/mailname_set_by_Propellor.Property.Hostname.sane/comment_5_b4c1265f881e96d999528d8a433176cc._comment new file mode 100644 index 00000000..0f1ba25c --- /dev/null +++ b/doc/forum/mailname_set_by_Propellor.Property.Hostname.sane/comment_5_b4c1265f881e96d999528d8a433176cc._comment @@ -0,0 +1,24 @@ +[[!comment format=mdwn + username="spwhitton" + avatar="http://cdn.libravatar.org/avatar/9c3f08f80e67733fd506c353239569eb" + subject="comment 5" + date="2018-08-17T14:36:19Z" + content=""" +I worked around the problem in the following way: + + module Propellor.Property.SiteSpecific.SPW.Hostname (sane) where + + import Propellor.Base + import qualified Propellor.Property.Hostname as Hostname + + sane :: Property UnixLike + sane = Hostname.sane' id + +> How about we add a separate mailname property and make Hostname.sane not touch the mailname. mailname could take a Maybe and guess based on the hostname when Nothing is specified. + +This seems reasonable. `Hostname.sane` is often wanted but `Mailname.sane` will be wanted only occasionally, so it makes sense for them to be separate properties. + +> Or, the mailname property could only set Info, and Hostname.sane use that info when set and guess when not. But, I suspect that would not have avoided your email-losing misconfiguration from happening in the first place. + +This wouldn't be much different from my workaround, indeed. +"""]] -- cgit v1.2.3