3
0
Fork 0
forked from mirrors/nixpkgs

nixos/mlmmj: add more list headers

since we already add a couple of default headers, it makes sense to have
a sensible default and add the unsubscribe header and friends
This commit is contained in:
Francesco Gazzetta 2019-05-28 16:47:16 +02:00 committed by Edward Tjörnhammar
parent f1bb633034
commit 7596e7a495

View file

@ -16,7 +16,14 @@ let
alias = domain: list: "${list}: \"|${pkgs.mlmmj}/bin/mlmmj-receive -L ${listDir domain list}/\"";
subjectPrefix = list: "[${list}]";
listAddress = domain: list: "${list}@${domain}";
customHeaders = domain: list: [ "List-Id: ${list}" "Reply-To: ${list}@${domain}" ];
customHeaders = domain: list: [
"List-Id: ${list}"
"Reply-To: ${list}@${domain}"
"List-Post: <mailto:${list}@${domain}>"
"List-Help: <mailto:${list}+help@${domain}>"
"List-Subscribe: <mailto:${list}+subscribe@${domain}>"
"List-Unsubscribe: <mailto:${list}+unsubscribe@${domain}>"
];
footer = domain: list: "To unsubscribe send a mail to ${list}+unsubscribe@${domain}";
createList = d: l:
let ctlDir = listCtl d l; in