summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspwhitton2018-08-17 14:36:19 +0000
committeradmin2018-08-17 14:36:19 +0000
commita688a533ac983688c67da1c55d2534c55ccb595e (patch)
tree041cbb414591458e15a4cdfd8d360d51b85d979d
parent9e22e1abd796ee85fcf0e5865f83f52a640dc3f4 (diff)
Added a comment
-rw-r--r--doc/forum/mailname_set_by_Propellor.Property.Hostname.sane/comment_5_b4c1265f881e96d999528d8a433176cc._comment24
1 files changed, 24 insertions, 0 deletions
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.
+"""]]