At 09:15 AM 7/20/97 -0500, you wrote:
>Folks:
>
>I'm looking for a way of creating 2 aliases for my list that will allow
>folks to subscribe & unsubscribe without having to know the majordomo
>commands.
>
>Something like "LISTNAME-SUB@midrange.com" to subscribe to a specific list
>and "LISTNAME-UNSUB@midrange.com" to unsubscribe from a specific list.
>
>TIA!
>
>david
>
David,
You could define the aliases as follows:
list-sub: "|/some/path/subscribe list"
list-unsub: "|/some/path/unsubscribe list"
where subcribe and unsubscribe are scripts that take the list name as a
argument, parses the incoming message to determine the sender and then
sends the appropriate command to majordomo or list-request to subscribe
or unsubscribe the sender. The hard part would be to determine which
header line to use. Alternatively, the scripts could strip the To: header
from the original, replace with a To: line pointing it at majordomo and
add the subscribe or unsubscribe command to the beginning of the message
followed by the end command. You could probably hack up resend to do
this.
Tom
--
+-----------------------+-------------------------+------------------------+
| Tom Schenk | Use Linux! | All opinions expressed |
| tschenk@dejanews.com | Friends don't let | are mine and not those |
| tschenk@theoffice.net | friends do Windows! | of my employer. |
+-----------------------+-------------------------+------------------------+
References:
|
|