X-Command's in subject or body
Hi, I'm trying out to figure what is the syntax for unsubscription. I looks if I use the code from http://www.hartzler.net/smartlist/SmartList-FAQ.html#Section_3.2 that users have to say: Subject: X-Command: unsubscribe , right? It also applies to the message body, right? Can someone explain me the sentence "Now X-Commands can go at the top of the message body. Add a blank line between the X-Commands and any other message content (as for instance with moderator approval)." from the above URL? Can you post an example of such moderator approval? I'm sorry for such stupid question, although I have been using majordomo for years and procmail for 2 years, smartlist is not that intuitive and the docs are not clear to me. :( TIA -- Martin Mokrejs - PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs MIPS / Institute for Bioinformatics <http://mips.gsf.de> GSF - National Research Center for Environment and Health Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany tel.: +49-89-3187 3616 , fax: +49-89-3187 3585
On Mon, 25 Feb 2002, Martin MOKREJŠ wrote:
Hi, I'm trying out to figure what is the syntax for unsubscription. I looks if I use the code from http://www.hartzler.net/smartlist/SmartList-FAQ.html#Section_3.2 that users have to say:
Subject: X-Command: unsubscribe , right?
BTW: this is in the buil-in help: General info ------------ Subcription/unsubscription/info requests should always be sent to the -request address of a mailinglist. If a mailinglist for example is called "thelist@some.domain", then the -request address can be inferred from this to be: "thelist-request@some.domain". To subscribe to a mailinglist, simply send a message with the word "subscribe" in the Subject: field to the -request address of that list. As in: To: thelist-request@some.domain Subject: subscribe
It also applies to the message body, right?
Can someone explain me the sentence "Now X-Commands can go at the top of the message body. Add a blank line between the X-Commands and any other message content (as for instance with moderator approval)." from the above URL? Can you post an example of such moderator approval?
-- Martin Mokrejs - PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs MIPS / Institute for Bioinformatics <http://mips.gsf.de> GSF - National Research Center for Environment and Health Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany tel.: +49-89-3187 3616 , fax: +49-89-3187 3585
I'm trying out to figure what is the syntax for unsubscription. I looks if I use the code from http://www.hartzler.net/smartlist/SmartList-FAQ.html#Section_3.2 that users have to say:
Subject: X-Command: unsubscribe , right?
It also applies to the message body, right?
Perhaps you are a little bit confused, X-Command: is for the list admins. Users would subscribe or unsubscribe the usual way. BTW, if you use rc.local.r00 to use X-Command in the body, it just mean you can write: Subject: whatever From: whatever <- blank line separating headers and body. X-Command: whatever <- first line of body. instead of Subject: whatever From: whatever X-Command: whatever <- still a header line.
Martin -- To clarify Santiago's explanation -- subscribers simply put 'subscribe' or 'unsubscribe' in the subject OR body of their message, sent to the list-request address. Regular users never use X-Command. "2.5: How do people subscribe/unsubscribe to the list?" http://www.hartzler.net/smartlist/SmartList-FAQ.html#Section_2.5 On the other hand, If a list ADMIN needs to use X-Commands, these need to be sent to the list-request address either as their own HEADER element, OR after applying the 'X-Commands from the message body' fix, X-Command: xxx can be the FIRST line of the message BODY. To explain: Email consists of two sections. First comes the header, with each header element (From: To: Subject: Cc: Whatever: ) starting at the beginning of a line. No empty lines are allowed in the header, BECAUSE: An empty line is the divider between the header and the message BODY. Here is the relevant section of RFC 2822: "Internet Message Format" A message consists of header fields (collectively called "the header of the message") followed, optionally, by a body. The header is a sequence of lines of characters with special syntax as defined in this standard. The body is simply a sequence of characters that follows the header and is separated from the header by an empty line (i.e., a line with nothing preceding the CRLF). What the 'X-Commands from the message body' hack does is allow SmartList to continue scanning for X-Commands into the message body, by telling it to ignore the first empty line (which would normally tell it that it's done scanning the header.) SmartList needs to see an X-Command header like this: X-Command: blah blah blah; NOT: Subject: X-Command: blah blah blah. Since the second one isn't an X-Command: header, it's a Subject: header. Hope this helps. Regards, Pete. On Mon, 25 Feb 2002, [iso-8859-2] Martin MOKREJ© wrote:
Hi, I'm trying out to figure what is the syntax for unsubscription. I looks if I use the code from http://www.hartzler.net/smartlist/SmartList-FAQ.html#Section_3.2 that users have to say:
Subject: X-Command: unsubscribe , right?
It also applies to the message body, right?
Can someone explain me the sentence "Now X-Commands can go at the top of the message body. Add a blank line between the X-Commands and any other message content (as for instance with moderator approval)." from the above URL? Can you post an example of such moderator approval?
On Mon, 25 Feb 2002, Santiago Vila wrote:
Perhaps you are a little bit confused, X-Command: is for the list admins. Users would subscribe or unsubscribe the usual way.
BTW, if you use rc.local.r00 to use X-Command in the body, it just mean you can write:
Subject: whatever From: whatever <- blank line separating headers and body. X-Command: whatever <- first line of body.
instead of
Subject: whatever From: whatever X-Command: whatever <- still a header line.
Dear Santiago and Peter, thank you for your very nice replies. So now I know I understood right in the beginning the X-Command: , but unfortunately it doesn't solve my problem with subscriptions ... While sending mesaage to testing-request@ with Subject: subscribe and empty mesage body I get back: Return-Path: <testing-request@natur.cuni.cz> Received: from tao.natur.cuni.cz (localhost [127.0.0.1]) by natur.cuni.cz (a.b.c/a.b.c) with ESMTP id g1PCrJrA043782 for <mmokrejs@natur.cuni.cz>; Mon, 25 Feb 2002 13:53:20 +0100 (MET) X-Envelope-From: testing-request@natur.cuni.cz X-Envelope-To: <mmokrejs@natur.cuni.cz> Received: (from listserv@localhost) by tao.natur.cuni.cz (a.b.c/8.12.2/Submit) id g1PCrJVu045253; Mon, 25 Feb 2002 13:53:19 +0100 (CET) Date: Mon, 25 Feb 2002 13:53:19 +0100 (CET) Message-Id: <200202251253.g1PCrJVu045253@tao.natur.cuni.cz> X-Authentication-Warning: tao.natur.cuni.cz: listserv set sender to testing-request@natur.cuni.cz using -f To: mmokrejs@natur.cuni.cz References: <Pine.OSF.4.44.0202251351410.38981-100000@tao.natur.cuni.cz> In-Reply-To: <Pine.OSF.4.44.0202251351410.38981-100000@tao.natur.cuni.cz> X-Loop: testing@natur.cuni.cz From: testing-request@natur.cuni.cz Reply-To: Please.write.a.new.mail.instead.of.replying@FIRST.WORD.archive Subject: archive retrieval info Precedence: bulk WARNING: Please make sure to start the Subject: of requests to the archive- server with the word archive. Unknown command subscribe. This archive server knows the following commands: get filename ... ls directory ... egrep case_insensitive_regular_expression filename ... [...] What shall I do? On Mon, 25 Feb 2002, Santiago Vila wrote:
I'm trying out to figure what is the syntax for unsubscription. I looks if I use the code from http://www.hartzler.net/smartlist/SmartList-FAQ.html#Section_3.2 that users have to say:
Subject: X-Command: unsubscribe , right?
It also applies to the message body, right?
Perhaps you are a little bit confused, X-Command: is for the list admins. Users would subscribe or unsubscribe the usual way.
BTW, if you use rc.local.r00 to use X-Command in the body, it just mean you can write:
yes, I put it already into, but as you see I did not get the sed stuff. ;( TIA -- Martin Mokrejs - PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs MIPS / Institute for Bioinformatics <http://mips.gsf.de> GSF - National Research Center for Environment and Health Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany tel.: +49-89-3187 3616 , fax: +49-89-3187 3585
So now I know I understood right in the beginning the X-Command: , but unfortunately it doesn't solve my problem with subscriptions ...
While sending mesaage to testing-request@ with
Subject: subscribe
and empty mesage body I get back:
[...] WARNING: Please make sure to start the Subject: of requests to the archive- server with the word archive. Unknown command subscribe. [...]
What shall I do?
Use the source and the usual debugging procedures. Smartlist thinks your subcribe request is an archive request. The code that does this is in rc.request when it calls "| arch_retrieve". Put VERBOSE=yes at the top of the file and analyze the logs after trying again. [ I would perhaps disable the X-command-allowed-in-the-body feature just to be sure it's not the cause for this behaviour ].
On Mon, 25 Feb 2002, Santiago Vila wrote:
So now I know I understood right in the beginning the X-Command: , but unfortunately it doesn't solve my problem with subscriptions ...
While sending mesaage to testing-request@ with
Subject: subscribe
and empty mesage body I get back:
[...] WARNING: Please make sure to start the Subject: of requests to the archive- server with the word archive. Unknown command subscribe. [...]
What shall I do?
Use the source and the usual debugging procedures.
Smartlist thinks your subcribe request is an archive request. The code that does this is in rc.request when it calls "| arch_retrieve". Put VERBOSE=yes at the top of the file and analyze the logs after trying again.
[ I would perhaps disable the X-command-allowed-in-the-body feature just to be sure it's not the cause for this behaviour ].
Well, it turned I did not manage to undo partial installation of confirm-1.2.3.tar.gz package. I's a pitty it's not a part of standard smartlist bundle. So after I've used: diff -u -r .etc smartlist/procmail-3.15/SmartList/etc it turned out I had the rc.submit from the confirm-1.2.3 package. So, cat smartlist/procmail-3.15/SmartList/etc/rc.request > .etc/rc.request solved my problem. I think confirmation of subscription and unsubscription is nice, spammers never subscribe to the list and forcing autosubscription will open gate to spam (although I could use anti-Spam packages using procmail, yes) and confirming unsubscribe stops people unsubscribing others. It would be nice if the doc's would say that even the default setup when there's no unsub confirmation sends to the address which was unsubscribed a note what happened. BTW: --- smartlist/procmail-3.15/SmartList/bin/subscribe Sat Dec 21 04:28:11 1996 +++ /usr/users/listserv/.bin/subscribe Tue Feb 26 10:15:40 2002 @@ -108,7 +108,7 @@ $test ! -z "$wrongaddress" && $echo "$wrongaddress" && wrongaddress="" - $echo "You have added to the subscriber list of:" + $echo "You have been added to the subscriber list of:" $echo "" $echo " $listaddr" $echo "" -- Martin Mokrejs - PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs MIPS / Institute for Bioinformatics <http://mips.gsf.de> GSF - National Research Center for Environment and Health Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany tel.: +49-89-3187 3616 , fax: +49-89-3187 3585
participants (3)
-
Martin MOKREJŠ
-
Peter Hartzler
-
Santiago Vila