Thread View: bit.admin
1 messages
1 total messages
Started by Eric Lease Morgan
Mon, 20 Jun 1994 21:04
ListProcessor, searching, and headers
Author: Eric Lease Morgan
Date: Mon, 20 Jun 1994 21:04
Date: Mon, 20 Jun 1994 21:04
53 lines
2607 bytes
2607 bytes
ListProcessor, searching, and headers
What header does the ListProcessor (Unix LISTSERV) analyze for the
purposes of returning search requests?
I am writing a perl script whose purpose is to search LISTSERV archives.
This script creates an SMTP message on the behalf of the user. It then
sends the message to the user-selected LISTSERV for processing. I have
successfully gotten this to work for VM/CMS-based LISTSERVs. You can see
an example of my work at
http://dewey.lib.ncsu.edu/staff/morgan/listwebber.html.
When trying to accomplish the same goal for the Unix-based LISTSERV, the
server returns the search output to the wrong address; the address of
owner running the script on my WWW server (me). You can see this script
at
http://dewey.lib.ncsu.edu/cgi-bin/lw2?/usr/users/temp/www/httpd/cgi-bin
library.lists
Here is the header of my SMTP message:
From $userAddress
Reply-To: $userAddress
Subject: *** LISTWebber II Query ***
From: $userName <$userAddress>
Return-Receipt-To: <$userAddress>
X-Mailer: LISTWebber II <eric_morgan@ncsu.edu>
where $userAddress is the address given to the script by the user and
$userName is the name of the user.
I am then sending the message with the following perl command:
# send the query
$theCommand = "/usr/lib/sendmail -odq LISTSERV@$serverAddress < $smtp";
if (fork() eq 0) { exec $theCommand; }
where $serverAddress is the address of the LISTSERV and $smtp is a one
line file containing a search command like "search PUBLIB LAMA".
What must I put in my SMTP header in order for the LISTSERV to return the
output of a search command to $userAddress?
Eric Lease Morgan, Systems Librarian
NCSU Libraries
Box 7111, Room 2316-b
Raleigh, NC 27695-7111
(919) 515-6182
eric_morgan@ncsu.edu
http://dewey.lib.ncsu.edu/staff/morgan/morgan.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads