LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Eric Lease Morgan <[log in to unmask]>
Mon, 20 Jun 1994 21:05:07 GMT
text/plain (52 lines)
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 <[log in to unmask]>
 
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
[log in to unmask]
http://dewey.lib.ncsu.edu/staff/morgan/morgan.html

ATOM RSS1 RSS2