X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/4877596410e850f2295f1015738bd8ca6e86ee0f..c4c53777458bfcfd288d45b7708e52eb47c56405:/etc/components?ds=sidebyside diff --git a/etc/components b/etc/components index 95be90cf..d4d4f7c6 100644 --- a/etc/components +++ b/etc/components @@ -1,6 +1,25 @@ -From: %(localmbox) -To: -cc: -Fcc: +outbox -Subject: +%; +%; Our default components file. Used by `comp' +%; +%; +%; This line creates our From: header based on the following ordering: +%; +%; - Use a -from switch if it exists ({from}) +%; - Use our local mailbox identity; first from the Local-Mailbox profile +%; entry, otherwise gets the information from the local system +%; +%<{from}%|%(void(localmbox))%>%(void(width))%(putaddr From: ) +%; +%; Here we include an address list if one or more "-to" arguments were +%; given, otherwise just output a blank header. We do the same for the +%; "cc" header as well. +%; +%<{to}%(void(width))%(putaddr To: )%|To:%> +%<{cc}%(void(width))%(putaddr cc: )%|cc:%> +%; +%; Slight difference here: if we're not given "-fcc" on the command line, +%; make the default mailbox +outbox +%; +Fcc: %<{fcc}%(putstr)%|+outbox%> +Subject:%<{subject} %(putstr)%> --------