[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Majordomo Welcome Message...



Thanks!  I actually stumbled upon this a while after my original post.
Here's how I corrected the problem:

In /etc/majordomo/majordomo after:

    # Set up the sendmail process to welcome the new subscriber
    &set_mail_sender($config_opts{$list,"sender"} . "\@" . $whereami);
    &sendmail(MSG, $subscriber, "Welcome to $list");
    &set_mail_sender($whoami_owner);

Add:

    #Check to see if a pre-defined welcome message exists.
    #If it exists, then print it.
    if (&lopen(WELCOME, "", "$listdir/$list.welcome")) {
        while (<WELCOME>) {
            print MSG $_;
            }
            &lclose(WELCOME);
    } else {

Then, to end the else, add your } after the following:

    # send them the info for the list, if it's available
    # the <list>.intro file has information for subscribers only
    if (&lopen(INFO, "", "$listdir/$list.intro")) {
	while (<INFO>) {
 	    print MSG $_;
 	}
 	&lclose(INFO);
    } elsif (&lopen(INFO, "", "$listdir/$list.info")) {
 	print MSG <<"EOM";
     Here's the general information for the list you've subscribed to,
     in case you don't already have it:

    EOM
    #';
         while (<INFO>) {
	        print MSG $_;
    	}
	    &lclose(INFO);
        } else {
    	print MSG "#### No info available for $list.\n";
        }

}  #Closes the Pre-Defined 'Welcome' If Statement above.  ADD THIS LINE

Now, for any site that you wish to have a custom welcome message add a
[listname].welcome file to your
/etc/majordomo/www.virtualsite.tld/lists/ folder.

Works like a charm for me, perhaps this will be beneficial to others!
Thanks!

~Joseph


-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx] On Behalf Of Jeff Lasman
Sent: Sunday, October 06, 2002 1:27 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] Majordomo Welcome Message...


"Joseph A. Hurdt" wrote:

> If possible, how do I modify the welcome message for a Majordomo 
> mailing list on a Raq4?
> 
> Please note that I have found the functionality of the listname.intro 
> file in my search, however, I would like to change the _entire_ 
> welcome message.  The exact text that I am referring to starts off 
> like this:
> 
>      Welcome to the <<LISTNAME>> mailing list!
...<balance snipped>...

The text is hardwired into the majordomo program file; take a look at
/usr/local/majordomo/majordomo.

You can change it, but make sure you understand the syntax.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
Linux and Cobalt/Sun/RaQ Consulting
nobaloney.net, P. O. Box 52672, Riverside, CA  92517
voice: +1 909 778-9980  *  fax: +1 909 548-9484

_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users