Article View: bit.admin
Article #1238ListProcessor, searching, and headers
From: 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
Technical Details
Message-ID:
<2u5091$70v@taco.cc.ncsu.edu>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!concert!inxs.concert.net!taco.cc.ncsu.edu!emorgan.lib.ncsu.edu!eric_morganShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109803,6793b638e6825d46,start X-Google-Attributes: gid109803,public X-Google-ArrivalTime: 1994-06-20 14:20:48 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!concert!inxs.concert.net!taco.cc.ncsu.edu!emorgan.lib.ncsu.edu!eric_morgan From: Eric Lease Morgan <eric_morgan@ncsu.edu> Newsgroups: bit.admin Subject: ListProcessor, searching, and headers Date: 20 Jun 1994 21:04:33 GMT Organization: NCSU Libraries Lines: 53 Distribution: world Message-ID: <2u5091$70v@taco.cc.ncsu.edu> NNTP-Posting-Host: emorgan.lib.ncsu.edu X-UserAgent: Nuntius v1.1.1d12 X-XXMessage-ID: <AA2B7D4D930318B1@emorgan.lib.ncsu.edu> X-XXDate: Mon, 20 Jun 94 17:07:25 GMT