Article View: news.software.readers
Article #171637Google Groups Script
From: Alan Connor
Date: Fri, 19 Aug 2005 11:24
Date: Fri, 19 Aug 2005 11:24
69 lines
2823 bytes
2823 bytes
##!/bin/bash
#
## pipe the article to this script
#
## You need GNU date for this.
#
## It will reject From lines that are way out of the norm,
##+ such as those with too many names (more than 4) and
##+ non-us-ascii characters. It recognizes these formats
##+ as valid:
#
## foo [foo] [foo] [foo] <foo@foo.foo>
## foo@foo.foo (foo [foo] [foo] [foo])
#
## It searches only the name, not the email address,
##+ for all groups, in the last year, and returns
##+ the last 10 posts. Change Posts= below up to 100
##+ posts, google's upper limit.
#
#
## put your favorite browser here
#Browser=
#
#alias=$(sed -n '/^From: /s/\(From: \)\(.*\)/\2/p')
#
#case "$alias" in
#
#*\<*@*.*\> )
#alias2=$(echo "$alias" | sed -n 's/^\(.*\)\( <.*>\)/\1/p')
#echo "$alias2" ;;
#*@*.*\(*\) )
#alias2=$(echo "$alias" | sed -n 's/^\(.*(\)\(.*\)\()\)/\2/p')
#echo "$alias2" ;;
#* ) echo "header screwed up - exiting" ; sleep 2 ; exit 1 ;;
#esac
#
#set - $alias2
#
#if [ $# -eq 1 ] ; then
#alias3="${1}"
#elif [ $# -eq 2 ] ; then
#alias3="${1}+${2}"
#elif [ $# -eq 3 ] ; then
#alias3="${1}+${2}+${3}"
#elif [ $# -eq 4 ] ; then
#alias3="${1}+${2}+${3}+${4}"
#else echo "header screwed up - exiting" ; sleep 2 ; exit 1
#fi
#
#echo "$alias3"
#
#Posts=10
#
#minday=$(date -d "1 year ago" +%-d)
#minmon=$(date -d "1 year ago" +%-m)
#minyear=$(date -d "1 year ago" +%Y)
#maxday=$(date +%-d)
#maxmon=$(date +%-m)
#maxyear=$(date +%Y)
#
#$Browser http://groups.google.com/groups\?as_q=\&num=${Posts}\&scoring=r\&hl=en\&as_epq=\&as_oq=\&as_eq=\&as_ugroup=\&as_usubject=\&as_uauthors=${alias3}\&lr=\&as_qdr=\&as_drrb=b\&as_mind=${minday}\&as_minm=${minmon}\&as_miny=${minyear}\&as_maxd=${maxday}\&as_maxm=${maxmon}\&as_maxy=${maxyear}\&safe=off
#
#
#
Remove the leftmost column of "#"
AC
Technical Details
Message-ID:
<3kjNe.8391$WD.3906@newsread1.news.pas.earthlink.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!border2.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!65807237!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <3kjNe.8391$WD.3906@newsread1.news.pas.earthlink.net> Subject: Google Groups Script Date: Fri, 19 Aug 2005 11:24:47 GMT From: Alan Connor <zzzzzz@xxx.invalid> 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!border2.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!65807237!not-for-mail Newsgroups: news.software.readers User-Agent: slrn/0.9.8.1 (Debian) Lines: 69 NNTP-Posting-Host: 4.242.9.141 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1124450687 4.242.9.141 (Fri, NNTP-Posting-Date: Fri, 19 Aug 2005 04:24:47 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net