[ Daniel A. Nichols writes: ]
>
> [...] in the list config file I can't quite get
> message_footer and message_fronter to work.
>
> If I define them like this:
> ---------------
> message_footer << END
> To subscribe to Test-Digest, send the command:
> subscribe test-digest
> in the body of a message to "majordomo@kypris.com". If you want
> to subscribe something other than the account the mail is coming
> from, such as a local redistribution list, then append that address
> to the "subscribe" command; for example, to subscribe "local-alicia":
> subscribe alicia-fans-digest local-alicia@your.domain.net
> END
[...]
> it inserts it just fine, but what I really want is the following:
>
> ---------------
> message_footer << END
> To subscribe to Test-Digest, send the command:
>
> subscribe test-digest
>
> in the body of a message to "majordomo@kypris.com". If you want
> to subscribe something other than the account the mail is coming
> from, such as a local redistribution list, then append that address
> to the "subscribe" command; for example, to subscribe "local-alicia":
>
> subscribe alicia-fans-digest local-alicia@your.domain.net
> END
[...]
> With the blank lines in there, it throws away everything from the
> first blank line on and rewrites the config file to look like this:
>
> ---------------
> message_footer << END
> To subscribe to Test-Digest, send the command:
>
> END
[...]
> Can anyone explain this and/or tell me how to keep the blank lines in
> there?
The docs for this are sort of hidden; you have to read the comments in
the list config file:
# Within a here document for a string_array, the '-' sign takes on a special
# significance.
#
# To embed a blank line in the here document, put a '-' as the first
# and ONLY character on the line.
#
# To preserve whitespace at the beginning of a line, put a - on the
# line before the whitespace to be preserved
#
# To put a literal '-' at the beginning of a line, double it.
So, to get the whitespace in your footers and fronters, make them look
like this in the config file:
message_footer << END
To subscribe to Test-Digest, send the command:
-
- subscribe test-digest
-
in the body of a message to "majordomo@kypris.com". If you want
to subscribe something other than the account the mail is coming
from, such as a local redistribution list, then append that address
to the "subscribe" command; for example, to subscribe "local-alicia":
-
- subscribe alicia-fans-digest local-alicia@your.domain.net
END
--
Dave Wolfe *Not a spokesman for Motorola* (512) 891-3246
Motorola MMTG 6501 Wm. Cannon Dr. W. OE112 Austin TX 78735-8598
References:
|
|