Thread View: news.software.readers
16 messages
16 total messages
Started by Stefano Sabatini
Sat, 04 Aug 2007 10:33
How to access a post by Message-ID
Author: Stefano Sabatini
Date: Sat, 04 Aug 2007 10:33
Date: Sat, 04 Aug 2007 10:33
35 lines
2044 bytes
2044 bytes
Hi all news-readers. It's very frequent to see references to other messages in post referring to some message id. I would like to access them even in the case the message isn't present anymore on the server. How can I achieve this? The likely solution seems to use a web-based archive, for example one of those listed here: http://schmidt.devlib.org/usenet/archives.html (thanks Marc;-)). Google groups http://groups.google.com/advanced_search?q=&ups permits to do it, but I would like to do it automatically, e.g. with a script which takes the message id and assemblate an address corresponding to the Google Gorups/other archive page. I'm also not satisfied with the standard way Google Groups shows up threads, that is as a flat list of messages without any hierarchy information. Do you know if it is possible in some way to show a tree of the messages similiar to those generated e.g. by G-mane: http://thread.gmane.org/gmane.org.open-source-now/2671 ? Many thanks in advance, and sorry for the eventual noob question. Cheers. -- Stefano Sabatini Linux user number 337176 (see http://counter.li.org)
Re: How to access a post by Message-ID
Author: Sn!pe
Date: Sat, 04 Aug 2007 10:44
Date: Sat, 04 Aug 2007 10:44
15 lines
2335 bytes
2335 bytes
Stefano Sabatini <stefano.sabatini@caos.org> wrote: > Hi all news-readers. > > It's very frequent to see references to other messages in post > referring to some message id. > > I would like to access them even in the case the message isn't > present anymore on the server. > How can I achieve this? This is useful: <http://howardk.freenix.org/> -- ^Ï^ <snipe@notforspam.fsnet.co.uk> (unmunged, use as is)
Re: How to access a post by Message-ID
Author: Stefano Sabatini
Date: Sat, 04 Aug 2007 11:54
Date: Sat, 04 Aug 2007 11:54
49 lines
2526 bytes
2526 bytes
On 2007-08-04, Sn!pe <snipe@spambin.fsnet.co.uk> wrote:
> Stefano Sabatini <stefano.sabatini@caos.org> wrote:
>
>> Hi all news-readers.
>>
>> It's very frequent to see references to other messages in post
>> referring to some message id.
>>
>> I would like to access them even in the case the message isn't
>> present anymore on the server.
>> How can I achieve this?
>
> This is useful: <http://howardk.freenix.org/>
Hi Sn!pe, and thanks, yes I already knew that address.
Well, I've managed to prepare the freeni.org url corresponding to a
message id, basically with something like this:
message_id=$(grep -i "^Message-id:" $1 | sed -e 's/.*<\(.*\)>/\1/')
if [ -z "$message_id" ]; then
echo "$my_name: no message-id found in input or no input." 1>&2
exit 1
fi
url_base='http://howardk.freenix.org/msgid.cgi?STYPE=msgid&MSGI='
mangled_message_id=$(echo "%3C${message_id}%3E" | \
# %foo -> %25foo, %123 is left as it is
sed -e 's/%\([[:alpha:]]\)/%25\1/g' | \
# @ -> %40
sed -e 's/@/%40/g')
url=${url_base}${mangled_message_id}
(I'll eventually post the script at the end of the discussion).
The problem is that I would like to see also thread information (like
that of G-mane threads, see my OP).
Another question: is it possible in SLRN to launch a command which
filter the message displayed (something like the pipe-command
function of mutt)?
Thanks again.
Cheers.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
Re: How to access a post by Message-ID
Author: Frank Slootweg
Date: Sat, 04 Aug 2007 12:07
Date: Sat, 04 Aug 2007 12:07
24 lines
1970 bytes
1970 bytes
Sn!pe <snipe@spambin.fsnet.co.uk> wrote: > Stefano Sabatini <stefano.sabatini@caos.org> wrote: > > > Hi all news-readers. > > > > It's very frequent to see references to other messages in post > > referring to some message id. > > > > I would like to access them even in the case the message isn't > > present anymore on the server. > > How can I achieve this? > > This is useful: <http://howardk.freenix.org/> Also <http://groups.google.com/groups?selm=messageid&dmode=source> still works (and redirects to the silly msg/bighexnumber URL). I.e. as soon as the OP arrives on/in Google Groups: <http://groups.google.com/groups?selm=slrnfb8lfe.usu.stefano.sabatini@santefisi.caos.org&dmode=source> Even with "&dmode=source" you still get the silly three dots in the username part of email addresses, but AFAIK there's no non-interactive solution for that.
Re: How to access a post by Message-ID
Author: Stefano Sabatini
Date: Sat, 04 Aug 2007 12:58
Date: Sat, 04 Aug 2007 12:58
47 lines
2654 bytes
2654 bytes
On 2007-08-04, Frank Slootweg <this@ddress.is.invalid> wrote:
> Sn!pe <snipe@spambin.fsnet.co.uk> wrote:
>> Stefano Sabatini <stefano.sabatini@caos.org> wrote:
>>
>> > Hi all news-readers.
>> >
>> > It's very frequent to see references to other messages in post
>> > referring to some message id.
>> >
>> > I would like to access them even in the case the message isn't
>> > present anymore on the server.
>> > How can I achieve this?
>>
>> This is useful: <http://howardk.freenix.org/>
>
> Also <http://groups.google.com/groups?selm=messageid&dmode=source>
> still works (and redirects to the silly msg/bighexnumber URL).
>
> I.e. as soon as the OP arrives on/in Google Groups:
>
><http://groups.google.com/groups?selm=slrnfb8lfe.usu.stefano.sabatini@santefisi.caos.org&dmode=source>
>
> Even with "&dmode=source" you still get the silly three dots in the
> username part of email addresses, but AFAIK there's no non-interactive
> solution for that.
OK, now I have:
url="http://groups.google.com/groups?selm=${message_id}&dmode=source"
then from the browser I can click on the title of the "discussion":
Message from discussion: How to access a post by Message-ID
and access the page with the whole thread, in a tree view.
Or alternatively I could download the first page, and extract from it
directly the thread archive page url.
So I basically now have what I wanted (I'm just looking for a way to
integrate the script with SLRN).
Thanks again.
Cheers.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
Re: How to access a post by Message-ID
Author: Ralph Fox
Date: Sat, 04 Aug 2007 13:17
Date: Sat, 04 Aug 2007 13:17
43 lines
3105 bytes
3105 bytes
On Sat, 4 Aug 2007 12:33:19 +0200 (CEST), in message <slrnfb8lfe.usu.stefano.sabatini@santefisi.caos.org>,
Stefano Sabatini wrote:
> Google groups
> http://groups.google.com/advanced_search?q=&ups
>
> permits to do it, but I would like to do it automatically, e.g. with a
> script which takes the message id and assemblate an
> address corresponding to the Google Gorups/other archive page.
[xpost and f'up to alt.fan.dejanews where Google Groups is on-topic]
javascript:(function(){var msgid=prompt("Enter the message-ID ...","");if(msgid&&msgid!=""){top.location=("http://groups.google.com/groups?selm="+escape(msgid));}else{return void(0);}})()
> I'm also not satisfied with the standard way Google Groups shows up
> threads, that is as a flat list of messages without any hierarchy
> information. Do you know if it is possible in some way to show a tree
> of the messages
If you are viewing a thread, not a single message, then at the top
of the window will be a grey bar with the subject in white (you
may need to scroll the entire window up to see it).
At the right-hand end of this grey bar is a link "Options".
Click on it, and the grey bar will expand downwards to expose
several links. Click on the link "View as tree".
> similiar to those generated e.g. by G-mane:
> http://thread.gmane.org/gmane.org.open-source-now/2671
> ?
[xpost and f'up set]
--
Cheers,
Ralph
Re: How to access a post by Message-ID
Author: Stefano Sabatini
Date: Sat, 04 Aug 2007 16:37
Date: Sat, 04 Aug 2007 16:37
32 lines
2197 bytes
2197 bytes
On 2007-08-04, Stefano Sabatini <stefano.sabatini@caos.org> wrote: > On 2007-08-04, Frank Slootweg <this@ddress.is.invalid> wrote: >> Sn!pe <snipe@spambin.fsnet.co.uk> wrote: >>> Stefano Sabatini <stefano.sabatini@caos.org> wrote: >>> >>> > Hi all news-readers. >>> > >>> > It's very frequent to see references to other messages in post >>> > referring to some message id. >>> > >>> > I would like to access them even in the case the message isn't >>> > present anymore on the server. >>> > How can I achieve this? [...] > > So I basically now have what I wanted (I'm just looking for a way to > integrate the script with SLRN). Update: I just see in the SLRN official page: http://www.slrn.org/links.html in the Add-ons section there is a link pointing to a message-id browser which does exactly what I want to achieve: http://thore-tams.de/files/get-by-mid.sl Unfortunately the link is broken, does someone have a clue about how could I get the referenced code? Thanks. -- Stefano Sabatini Linux user number 337176 (see http://counter.li.org)
Re: How to access a post by Message-ID
Author: Carl Drud
Date: Sat, 04 Aug 2007 16:51
Date: Sat, 04 Aug 2007 16:51
18 lines
1972 bytes
1972 bytes
On 2007-08-04, Stefano Sabatini wrote: > Update: I just see in the SLRN official page: > http://www.slrn.org/links.html > > in the Add-ons section there is a link pointing to a message-id > browser which does exactly what I want to achieve: > http://thore-tams.de/files/get-by-mid.sl > > Unfortunately the link is broken, does someone have a clue about how > could I get the referenced code? You can get it here: http://strcat.de/wiki/dotfiles#slrn -- Carl
Re: How to access a post by Message-ID
Author: Blinky the Shark
Date: Sat, 04 Aug 2007 20:34
Date: Sat, 04 Aug 2007 20:34
17 lines
1660 bytes
1660 bytes
Stefano Sabatini wrote: > Hi all news-readers. Yo. 'Sup. > I'm also not satisfied with the standard way Google Groups shows up > threads, that is as a flat list of messages without any hierarchy http://blinkynet.net/comp/gggui.html :( -- Blinky RLU 297263 Killing all posts from Google Groups. Except in Thunderbird, which can't filter that well. The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: How to access a post by Message-ID
Author: »Q«
Date: Sun, 05 Aug 2007 02:02
Date: Sun, 05 Aug 2007 02:02
62 lines
3485 bytes
3485 bytes
In <news:slrnfb8lfe.usu.stefano.sabatini@santefisi.caos.org>, Stefano Sabatini <stefano.sabatini@caos.org> wrote: >permits to do it, but I would like to do it automatically, e.g. with a >script which takes the message id and assemblate an >address corresponding to the Google Gorups/other archive page. I just had to write a script to generate a list of links from a text file containing MID headers, so I'll use your post as an excuse to post it. This doesn't help you directly, but I guess parts of it could be used in a script that slrn could pipe articles or just headers to. The grep and sed parts are the important bits. It's intended to work on .mbox or other files with multiple MID headers, but it would work on single posts ok. Output is a list of links. Piping output to xargs firefox or xargs konqueror opens the links in tabs (depending on the browser's settings, I guess). Opera needs some extra option I can't recall, but opera --help would turn it up. Please pardon the clumsy use of a conditional to deliver a usage message. My bash script fu isn't so strong. #!/bin/bash # # This script takes as input a text file containing # Message-ID headers, such as a .mbx file. Only # Message-ID headers lines are considered; any # other lines will be ignored. # # The output is a list of Google Groups URLs, one for # each Message-ID from the input file. If no output # file is specified, the URLs will be printed to # stdout. # # Note: There's no error checking, other than to # check that the input file exists. And it clobbers # the output file. Pass bad parameters to this script # at your own risk. if [ -f "$1" ] then INPUT=$1 if [ -n "$2" ] then OUTPUT="$2" else OUTPUT="/dev/stdout" fi grep "^Message-ID: <.*>$" $INPUT | \ sed "s/Message-ID: </http:\/\/groups.google.com\/groups?as_umsgid=/" | \ tr -d ">" > "$OUTPUT" else echo "A script to turn Message-ID headers into Google Groups URLs." echo "The inputfile should be a file containing some Message-ID headers." echo echo "Usage: $0 <inputfile> [<outputfile>]" echo fi -- »Q«
Re: How to access a post by Message-ID
Author: Marco Schmidt
Date: Sun, 05 Aug 2007 09:09
Date: Sun, 05 Aug 2007 09:09
57 lines
3052 bytes
3052 bytes
Stefano Sabatini: >It's very frequent to see references to other messages in post >referring to some message id. Unfortunately, I see a trend which makes users spread around Google Groups addresses instead, which may or may not work in the future. As can be seen with old articles which point to Deja URLs. Those used to work at some point (Google would forward the reader to the correct groups.google.com URL, after all they bought Deja and knew what message ID was behind a particular Deja URL), but not anymore (2006 discussion of the topic in German at <news:4tnqcoF145q00U1@mid.dfncis.de>). Everyone, please use "real" message IDs! And don't use tinyurl and similar services for the same reason. It's frustrating not to be able to follow tips anymore after a couple of months. >I would like to access them even in the case the message isn't >present anymore on the server. >How can I achieve this? > >The likely solution seems to use a web-based archive, for example one >of those listed here: >http://schmidt.devlib.org/usenet/archives.html > >(thanks Marc;-)). You're welcome! It's Marco, though. In addition to what's been written in this thread, NNTP2HTTP offers a MID search as well, as documented at <http://www.nntp2http.com/hilfe/> (German): |Nachrichten können über die URL http://www.nntp2http.com/mid/message-id@host.tld |verlinkt werden. Diese Adresse leitet auf die entsprechende Newsgroup weiter oder |gibt eine Auswahlmöglichkeit, wenn es sich um einen Crosspost handelt. Diese |Adresse wird auch in Zukunft immer auf das Posting verweisen. My translation: == You can link to articles with the URL http://www.nntp2http.com/mid/message-id@host.tld That address forwards to the corresponding newsgroup or offers a way to choose when dealing with crosspostings. The address will always reference the article. == Sounds like a script would have to make an additional effort to deal with crosspostings. (Maybe automatic retrieval is against their terms of service, I didn't check.) Regards, Marco
Re: How to access a post by Message-ID
Author: Stefano Sabatini
Date: Sun, 05 Aug 2007 09:46
Date: Sun, 05 Aug 2007 09:46
117 lines
4415 bytes
4415 bytes
On 2007-08-05, »Q« <boxcars@gmx.net> wrote:
> In <news:slrnfb8lfe.usu.stefano.sabatini@santefisi.caos.org>,
> Stefano Sabatini <stefano.sabatini@caos.org> wrote:
>
>>permits to do it, but I would like to do it automatically, e.g. with a
>>script which takes the message id and assemblate an
>>address corresponding to the Google Gorups/other archive page.
>
> I just had to write a script to generate a list of links from a text
> file containing MID headers, so I'll use your post as an excuse to post
> it.
>
> This doesn't help you directly, but I guess parts of it could be used
> in a script that slrn could pipe articles or just headers to. The grep
> and sed parts are the important bits.
>
> It's intended to work on .mbox or other files with multiple MID
> headers, but it would work on single posts ok. Output is a list of
> links. Piping output to xargs firefox or xargs konqueror opens the
> links in tabs (depending on the browser's settings, I guess). Opera
> needs some extra option I can't recall, but opera --help would turn it
> up.
[...]
Thanks »Q«!
I already had my script, which I'm going to publish for the archive.
Anyway, with SLRN should be possible to parse the message using S-lang
facilities, which is more efficient and gives more control (but I'm
still figuring out how to do).
Enjoy the getopt parsing in bash!
#!/bin/bash
# strip leading base path
$my_name=${0##*/}
browse_command=~/bin/web-browse
E_BADARGS=65
usage() {
cat <<EOT
Usage: $my_name -h|--help|--usage
$my_name <options> [<message-filename>]
Grep the file for the message-id, assemblate a corresponding
google groups url, echo such url on stdout and eventually launch a
browser on it.
The browser command is "$browse_command".
If no file in input is given then filter stdin.
Options:
-h|--help|--usage Print this help and exit
-b|--browse Launch the browser on the found url
EOT
}
browse=off
# reset the arguments strings using the parsing facility provided by getopt
args=$(getopt -lhelp -lusage -lbrowse -o bh -- $@)
# integer comparison: -eq, -ne, -lt, -gt
if [ $? -ne 0 ]; then
echo "$my_name: parsing error" 1>&2
usage 1>&2
exit $E_BADARGS
fi
eval set -- $args
# command line arguments parsing
# continue when there are arguments to parse
while true; do
case "$1" in
-h|--help|--usage)
usage
exit 0
;;
-b|--browse)
browse=on
shift
;;
# getopt puts a "--" at the end of the parsed options
--)
shift
break
;;
esac
done
message_id=$(grep -i "^Message-id:" $1 | sed -e 's/.*<\(.*\)>/\1/')
if [ -z "$message_id" ]; then
echo "$my_name: no message-id found in input or no input." 1>&2
exit 1
fi
# freenix.org mode
#url_base='http://howardk.freenix.org/msgid.cgi?STYPE=msgid&MSGI='
#mangled_message_id=$(echo "%3C${message_id}%3E" | \
#sed -e 's/%\([[:alpha:]]\)/%25\1/g' | \
#sed -e 's/@/%40/g')
#
#url=${url_base}${mangled_message_id}
url="http://groups.google.com/groups?selm=${message_id}&dmode=source"
echo $url
if [ "$browse" = "on" ]; then
$browse_command $url
fi
Cheers.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
Re: How to access a post by Message-ID
Author: Stefano Sabatini
Date: Sun, 05 Aug 2007 09:51
Date: Sun, 05 Aug 2007 09:51
21 lines
1832 bytes
1832 bytes
On 2007-08-04, Carl Drud <carl.drud@myrealbox.com> wrote: > On 2007-08-04, Stefano Sabatini wrote: > >> Update: I just see in the SLRN official page: >> http://www.slrn.org/links.html >> >> in the Add-ons section there is a link pointing to a message-id >> browser which does exactly what I want to achieve: >> http://thore-tams.de/files/get-by-mid.sl >> >> Unfortunately the link is broken, does someone have a clue about how >> could I get the referenced code? > > You can get it here: > > http://strcat.de/wiki/dotfiles#slrn Thanks. -- Stefano Sabatini Linux user number 337176 (see http://counter.li.org)
Re: How to access a post by Message-ID
Author: Whiskers
Date: Sun, 05 Aug 2007 13:02
Date: Sun, 05 Aug 2007 13:02
84 lines
3800 bytes
3800 bytes
On 2007-08-05, Marco Schmidt <marcoschmidt@geocities.com> wrote: > Stefano Sabatini: [...] > In addition to what's been written in this thread, NNTP2HTTP offers a > MID search as well, as documented at <http://www.nntp2http.com/hilfe/> > (German): > >|Nachrichten können über die URL http://www.nntp2http.com/mid/message-id@host.tld >|verlinkt werden. Diese Adresse leitet auf die entsprechende Newsgroup weiter oder >|gibt eine Auswahlmöglichkeit, wenn es sich um einen Crosspost handelt. Diese >|Adresse wird auch in Zukunft immer auf das Posting verweisen. > > My translation: > == > You can link to articles with the URL > http://www.nntp2http.com/mid/message-id@host.tld > That address forwards to the corresponding newsgroup or offers a way > to choose when dealing with crosspostings. The address will always > reference the article. > == > > Sounds like a script would have to make an additional effort to deal > with crosspostings. (Maybe automatic retrieval is against their terms > of service, I didn't check.) > > Regards, > Marco Unfortunately they have a much smaller selection of newsgroups than Google carry, so (using Lynx):- .-----<http://www.nntp2http.com/mid/5hlidsF3ldnhnU1@mid.dfncis.de> | | nntp2http.com | | | Newsgroups | | Hilfe & Kontakt | * Kontakt | * Hilfe | * Impressum | | nntp2http.com > Message-ID | | MID nicht gefunden: 5hlidsF3ldnhnU1@mid.dfncis.de | '----- because they don't carry the news.* heirarchy. But they do carry alt.os.linux.mandr*:- .-<http://www.nntp2http.com/mid/slrnfbaiqo.8r6.no.spam@thurston.blinkynet.net> | | nntp2http.com | | | Newsgroups | | Hilfe & Kontakt | * Kontakt | * Hilfe | * Impressum | | nntp2http.com > Message-ID | | Die Message-ID ist unter folgenden URLs zu erreichen: | * alt.os.linux.mandrake | * alt.os.linux.mandriva | '----- (You can manually select which of the cross-posted groups to read the article in). They also seem to be rather out of date in some of the groups they do carry. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: How to access a post by Message-ID
Author: »Q«
Date: Sun, 05 Aug 2007 16:08
Date: Sun, 05 Aug 2007 16:08
10 lines
1708 bytes
1708 bytes
In <news:slrnfbb73c.l9g.stefano.sabatini@santefisi.caos.org>, Stefano Sabatini <stefano.sabatini@caos.org> wrote: >Enjoy the getopt parsing in bash! Ah, thanks! My ulterior motive in posting was so that someone would show me a better way. "info getopt", here I come. :) -- »Q«
Re: How to access a post by Message-ID
Author: »Q«
Date: Wed, 22 Aug 2007 23:29
Date: Wed, 22 Aug 2007 23:29
47 lines
3220 bytes
3220 bytes
In <news:slrnfbb73c.l9g.stefano.sabatini@santefisi.caos.org>,
Stefano Sabatini <stefano.sabatini@caos.org> wrote:
>I already had my script, which I'm going to publish for the archive.
Hi Stefano -- I hope you're still reading.
>Enjoy the getopt parsing in bash!
Thanks again for this. I ended up using getopts instead, since it's a
bash builtin, but I never would have found it if you hadn't pointed me
that way.
I've been playing with my script in order to learn more about bash (and
sed), and now it's got a lot of options I'll never need. ;)
># freenix.org mode
>#url_base='http://howardk.freenix.org/msgid.cgi?STYPE=msgid&MSGI='
>#mangled_message_id=$(echo "%3C${message_id}%3E" | \
>#sed -e 's/%\([[:alpha:]]\)/%25\1/g' | \
>#sed -e 's/@/%40/g')
>#
>#url=${url_base}${mangled_message_id}
There are problems with this, but since it's commented out they don't
really count as errors. ;)
The freenix URLs require more encoding than just the < brackets > and @
and %. For an example, try <faf751$2mj9$2@sage.ukr.net> -- the $'s
need encoding.
Also, the expression %\([[:alpha:]]\) won't catch all the % characters.
Consider something like <foo%@example.com>.
Without a lot of actual MIDs to test, it's hard to say, but my guess is
that the freenix URLs need to have all special characters encoded. Any
% characters should be encoded first, then the others in any order. I
think I've made a complete list of characters which are legal in MIDs
but which need encoding in http URLs. There's a string of sed commands
for them in the current version of the script.
The script is at <http://remarqs.net/misc/mids2urls.sh.txt>. I think
it's all ok, but I've been tinkering with it today and haven't tested
much to see if I've broken anything.
--
»Q«
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