Thread View: news.software.readers
5 messages
5 total messages
Started by Omar Thameen
Thu, 12 Sep 1996 00:00
reading mail with tin/trn (?)
Author: Omar Thameen
Date: Thu, 12 Sep 1996 00:00
Date: Thu, 12 Sep 1996 00:00
28 lines
1324 bytes
1324 bytes
With some of the mailing lists that I'm on generating hundreds of messages daily, I got to wondering if there's any way to use trn or tin to thread and read the email. I've written a short perl script that splits up the big mail file into individual files with incrementing numbers as filenames. I guess the question then is, can I put these files in a directory, so some massaging of the format of the headers, and get trn/tin to look at them? I don't think that these newsreaders actually need to have the database files like .overview in order to work, but there still may be some header lines that I'd need to generate (like "Newsgroups:", or maybe even a fake article id, for example). Omar omar@inch.com -- Omar Thameen Systems Administration The Internet Channel omar@inch.com
Re: reading mail with tin/trn (?)
Author: Greg Wooledge x5932
Date: Fri, 13 Sep 1996 00:00
Date: Fri, 13 Sep 1996 00:00
56 lines
2705 bytes
2705 bytes
omar@metric.inch.com (Omar Thameen) writes: >With some of the mailing lists that I'm on generating hundreds of >messages daily, I got to wondering if there's any way to use trn >or tin to thread and read the email. I don't think there's any great way to do true threading. Mail messages don't have a References: header line as far as I know. That means your threading would be limited to the Subject: header. >I've written a short perl script that splits up the big mail file >into individual files with incrementing numbers as filenames. OK so far. >I >guess the question then is, can I put these files in a directory, >so some massaging of the format of the headers, and get trn/tin >to look at them? Have you tried it yet? I don't know enough of the RFC's to be able to predict exactly what will (or "should") happen. >I don't think that these newsreaders actually need to have the >database files like .overview in order to work, Definitely not. I'm not using overview on my news spool at home. >but there still >may be some header lines that I'd need to generate (like >"Newsgroups:", or maybe even a fake article id, for example). You can use the Message-Id: header for that, but I don't know whether your news reader will care. Since you're not using news software (C News or INN) to manage the messages, I presume, a lot of the information is extraneous. You might also look into mail-to-newsgroup gateway software. I've heard about it, but never used it, so I can't provide any details. A mail filter that converts all incoming messages into posts to some group such as "local.mail.omar" may be just what you need. In that case, you could use your news software to manage the messages, expiring them after X days and so forth. -- Greg Wooledge wooledgj@bp.com UNIX Technical Support (216) 586-5932 British Petroleum FAX (216) 586-2044 "The views expressed in this note are those of the individual concerned and should not necessarily be taken as being the views of The British Petroleum Company p.l.c. or any of the BP Group of companies."
Re: reading mail with tin/trn (?)
Author: Richard Kettlewell
Date: Mon, 23 Sep 1996 00:00
Date: Mon, 23 Sep 1996 00:00
30 lines
1772 bytes
1772 bytes
Bruce Becker <bdb@GTS.Net> wrote:
>Greg Wooledge x5932 <wooledgj@bp.com> wrote:
>>omar@metric.inch.com (Omar Thameen) writes:
>>>With some of the mailing lists that I'm on generating hundreds of
>>>messages daily, I got to wondering if there's any way to use trn or
>>>tin to thread and read the email.
>>
>>I don't think there's any great way to do true threading. Mail
>>messages don't have a References: header line as far as I know.
>>That means your threading would be limited to the Subject: header.
IME some mailers do, in fact, insert a References: header in mail much
as in news. VM - which I used - also has threading.
I think this should be encouraged.
>However there is an "In-Reply-To:" header - it's not universally
>supplied however.
...and the syntax seems to vary quite a bit between different mailers;
sometimes it's a Message-ID, sometimes it contains the sender and date
of the original message, sometimes that _and_ a Message-ID, etc.
--
Richard Kettlewell richard@greenend.org.uk richard@elmail.co.uk
http://www.elmail.co.uk/staff/richard/
Re: reading mail with tin/trn (?)
Author: Bruce Becker
Date: Mon, 23 Sep 1996 00:00
Date: Mon, 23 Sep 1996 00:00
54 lines
2334 bytes
2334 bytes
In article <1996Sep13.141946.2526@netusr.bp.com>, Greg Wooledge x5932 <wooledgj@bp.com> wrote: |omar@metric.inch.com (Omar Thameen) writes: | |>With some of the mailing lists that I'm on generating hundreds of |>messages daily, I got to wondering if there's any way to use trn |>or tin to thread and read the email. | |I don't think there's any great way to do true threading. Mail |messages don't have a References: header line as far as I know. That |means your threading would be limited to the Subject: header. However there is an "In-Reply-To:" header - it's not universally supplied however. |>I've written a short perl script that splits up the big mail file |>into individual files with incrementing numbers as filenames. | |OK so far. | |>I |>guess the question then is, can I put these files in a directory, |>so some massaging of the format of the headers, and get trn/tin |>to look at them? | |Have you tried it yet? I don't know enough of the RFC's to be able to |predict exactly what will (or "should") happen. There is a fair amount of header line massaging required - "newsgate" is one tool. |>I don't think that these newsreaders actually need to have the |>database files like .overview in order to work, | |Definitely not. I'm not using overview on my news spool at home. depends on the newsreader - I think tin needs the overview records to be happy. the tools for making them can be found in the C News distribution. -- ,u, Bruce Becker Toronto, Ontario 1 416 699 1868 a /i/ Internet: bdb@gts.org Uucp: ...!gts!bdb `\o\-e "De Boer also creates protective gear for humans [...] including _< /_ a Roman catapult that hurls fax machines" - J. Prittie
Re: reading mail with tin/trn (?)
Author: Olly Betts
Date: Fri, 27 Sep 1996 00:00
Date: Fri, 27 Sep 1996 00:00
70 lines
3347 bytes
3347 bytes
In article <526eoa$8eo@muskogee.elmail.co.uk>, Richard Kettlewell wrote:
>IME some mailers do, in fact, insert a References: header in mail much
>as in news. VM - which I used - also has threading.
>
>I think this should be encouraged.
A relevant point to note is that mail delivery is more reliable than news
delivery, in that the messages get delivery to your mailbox, rather than
wandering around the net and arriving noticably out of sequence. So just
having one back reference is good enough most of the time (for a suitable
definition of most anyway).
That said, I agree a news-semantics References: header on mail is a good
idea.
>>However there is an "In-Reply-To:" header - it's not universally
>>supplied however.
>
>..and the syntax seems to vary quite a bit between different mailers;
>sometimes it's a Message-ID, sometimes it contains the sender and date
>of the original message, sometimes that _and_ a Message-ID, etc.
Ages ago I wrote a script to gateway mailing lists into local newsgroups.
The fly in the ointment is that a number of MUAs put e-mail addresses in "<"
and ">" in In-Reply-To: headers. If these get into References:, you'll end
up with lots of unrelated messages appearing to be replies to a message with
the message-id of your e-mail address (since much of your mail is probably
replies to messages you sent).
My strategy for faking a References: header was:
* If there's a References: header there, leave it (a quick syntax check would
be wise)
* Unfold "In-Reply-To:" for ease of processing.
* Do s/\sfrom\s.*$// (in perl) i.e. chop off: <whitespace>from<whitespace>...
(This deals with most e-mail addresses).
The one common case that's left is:
In-Reply-To: John Doe <jd@foo.org>
"Message subject" (Feb 3, 6:58am)
I've seen this from mailers identifying themselves as:
X-Mailer: Mail User's Shell (7.2.4 2/2/92)
X-Mailer: Z-Mail (3.1.0 22feb94 MediaMail)
I coped with this by crudely rejecting anything ending with something in
double quotes followed by something like a date and time in brackets.
Then I had a last ditch strategy (this was mostly for a particular mailing
list which unhelpfully stripped all In-Reply-To: and References: headers).
This was to check the first line against:
In message <msgid> ...
In article <msgid> ...
In <msgid> ...
All in all, a bit icky, but it's being doing good service for a couple of
years now, and I don't recall seeing it get one wrong in that time.
Olly
--
cool wet grass cool wet grass cool wet grass cool wet grass cool wet grass
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