Article View: news.software.readers
Article #186673Re: slrn macro for google lookup
From: W. Citoan
Date: Sun, 18 Jun 2006 14:09
Date: Sun, 18 Jun 2006 14:09
32 lines
2207 bytes
2207 bytes
Edward Langenback wrote:
>
> However this only allows lookups by email address instead of by
> username / nick with or without the address. How can I get it to
> pull the 'poster nick <address@example.com>' so that I can either use
> the whole thing, or backspace out the address? I've been plugging
> away at it but not getting anywhere since I've never seen s-lang code
> untill about a week ago
You want to search on the whole from line, correct? If so, in that
script, the variable whois has the entire from line:
variable whois = extract_article_header ("From"),
re,wann,hvr,lan,nm_,ae_,browser=get_variable_value("non_Xbrowser");
The next 3 lines perform a pattern match to extract the email address:
wann = string_match(whois,"\\C\\(\\<[-_0-9a-z.]*@[^.][-_0-9a-z.]*\\>\\)",1);
if(wann) {(hvr,lan)=string_match_nth(1); ae_ = substr (whois, hvr+1, lan);}
else error ("No email address has been found");
You could simply remove those three lines and replace them with:
ae_ = whois
and then the remainder of the script should use the whole from line. If
that explanation doesn't make sense, let me know.
- W. Citoan
--
What we anticipate seldom occurs; what we least expected generally happens.
-- Benjamin Disraeli
Technical Details
Message-ID:
<slrne9ank4.324.wcitoan@wcitoan-via.supernews.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!router2.astraweb.com!news.astraweb.com!router1.astraweb.com!sn-xt-sjc-04!sn-xt-sjc-01!sn-post-02!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<slrne99ec3.9l2.apostle@peculiar.homeip.net>Show Full Headers
Complete Article Headers
Message-ID: <slrne9ank4.324.wcitoan@wcitoan-via.supernews.com> Subject: Re: slrn macro for google lookup Date: Sun, 18 Jun 2006 14:09:08 -0000 From: "W. Citoan" <wcitoan@NOSPAM-yahoo.com> References: <slrne99ec3.9l2.apostle@peculiar.homeip.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!router2.astraweb.com!news.astraweb.com!router1.astraweb.com!sn-xt-sjc-04!sn-xt-sjc-01!sn-post-02!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Newsgroups: news.software.readers Organization: Posted via Supernews, http://www.supernews.com User-Agent: slrn/0.9.8.1 (Win32) X-Complaints-To: abuse@supernews.com Lines: 32