Great Circle Associates Majordomo-Users
(September 1995)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: list config questions (header/footer)
From: dwolfe @ risc . sps . mot . com (Dave Wolfe)
Date: Tue, 12 Sep 1995 14:52:54 -0500 (CDT)
To: dan @ kypris . com (Daniel A. Nichols)
Cc: majordomo-users @ greatcircle . com (Majordomo user's mailing list)
In-reply-to: <199509120401.AA01526@kypris.com> from "Daniel A. Nichols" at Sep 11, 95 11:01:53 pm
Reply-to: David Wolfe <david_wolfe @ risc . sps . mot . com>

[ 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:
Indexed By Date Previous: Invalid E-Mails and Mailer Daemon
From: Bowden Wise <wiseb@cs.rpi.edu>
Next: Re: another config (header/footer) question
From: dwolfe@risc.sps.mot.com (Dave Wolfe)
Indexed By Thread Previous: list config questions (header/footer)
From: dan@kypris.com (Daniel A. Nichols)
Next: another config (header/footer) question
From: dan@kypris.com (Daniel A. Nichols)

Google
 
Search Internet Search www.greatcircle.com