🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Greg Shenaut Tue, 28 Mar 2000 00:00
[tin] x-newsgroups in mailed articles
#59768
Author: Greg Shenaut
Date: Tue, 28 Mar 2000 00:00
27 lines
1650 bytes
Sometimes I like to mail myself a news article that interests me
so I can keep it.  I use MH to auto-sort incoming mail, and I used
to be able to sort such articles using the "Newsgroups" header line.
However, this header line is now suppressed for some reason, although
when mailing a reply to an article's author, it is converted to
"X-Newsgroups".  I added a line to post.c as follows to restore
this functionality to articles I mail to myself:

> *** post.c	Sun Sep 26 15:22:51 1999
> --- ../src/tin-19990927/src/post.c	Tue Mar 28 12:15:35 2000
> ***************
> *** 2182,2187 ****
> --- 2182,2188 ----
>   			msg_add_header ("Reply-To", reply_to);
>   
>   		msg_add_x_headers (msg_headers_file);
> + 		msg_add_header ("X-Newsgroups", note_h.newsgroups);
>   	}
>   	start_line_offset = msg_write_headers (fp) + 1;
>   	msg_free_headers ();

If this doesn't break something else, I would like to request that
it be made part of the standard distribution.

Greg Shenaut

Re: [tin] x-newsgroups in mailed articles
#60141
Author: Greg Shenaut
Date: Tue, 04 Apr 2000 00:00
35 lines
2382 bytes
Urs Janssen <urs@buil.tin.org> wrote:
> In <8br4g1$6hr$1@mark.ucdavis.edu>,
>     Greg Shenaut <greg@bogslab.ucdavis.edu> wrote:
>> Sometimes I like to mail myself a news article that interests me
>> so I can keep it.  I use MH to auto-sort incoming mail, and I used
>> to be able to sort such articles using the "Newsgroups" header line.
>> However, this header line is now suppressed for some reason,

> Newsgroups is not a mail but a news header

Sure, that's why it is renamed to X-Newsgroups.

>> although
>> when mailing a reply to an article's author, it is converted to
>> "X-Newsgroups".  I added a line to post.c as follows to restore
>> this functionality to articles I mail to myself:

> there is no 'mail_to_self()' option/funtion, just a mail_to_someone()

I personally use this function 99 times out of 100 to mail an
article to myself, but don't see why this is relevant.

> and a mail_to_author() (aka reply-to) function - so if one adds the
> Newsgroups renaming/inclusion in mail_to_someone() it will affect all
> mails except replys. I don't think that this is usefull as in the
> mail_to_someone() case the full headers of the original posting are
> includet in the body of the mail -> dublicated information.

It is not only useful but critical, because standard mail redirecting
software like slocal looks at headers, not at the body of the message.
The information for routing has to be in the email header to be seen.

Greg Shenaut

Re: [tin] x-newsgroups in mailed articles
#60176
Author: Greg Shenaut
Date: Wed, 05 Apr 2000 00:00
70 lines
4016 bytes
Urs Janssen <urs@buil.tin.org> wrote:
> In <8cdgpc$8eq$1@mark.ucdavis.edu>,
>     Greg Shenaut <greg@bogslab.ucdavis.edu> wrote:

>>> there is no 'mail_to_self()' option/funtion, just a mail_to_someone()
>> I personally use this function 99 times out of 100 to mail an
>> article to myself,

> but why do you use 'm'ail and not 's'ave with the =-prefix?

Well, it's because I run tin on a gateway machine with a fast
connection, but do virtually all of my work, including all email, on a
different machine at home with only a modem connection.  But even
if that weren't true, I would still want to use mail because I find
auto-sorting of email so convenient.  In other words, I use the same
auto-classified "filing system" for saved emails and news articles.

>> but don't see why this is relevant.

> it doubles information on mail-forwards - and that's what the function
> is implemented for.
>  
>> It is not only useful but critical, because standard mail redirecting
>> software like slocal looks at headers, not at the body of the message.

> mail-filter should be able to look at the body, if they are not, they
> are crap.

Anything can be in the body of an email, but how would a program such as
slocal know whether to use it or not?  Headers specifically describe the
*transmission* of the information: who it's from, when it was sent, who it
is addressed to, its subject, and so on.  The contents of the message
can be anything, and is unrelated to its transmission.  For example, in
this article I could write

Newsgroups: alt.yoga,talk.origins

or even

>Newsgroups: alt.yoga,talk.origins

even though the article has nothing whatever to do with yoga or evolution.
I wouldn't want message handling software to look at the body.

>> The information for routing has to be in the email header to be seen.

> what do you mean by routing? for mail-'routing' they way I understand
> it the header of the mail is irrelevant, obly the envelop is used.

I mean routing in the sense of slocal.  I have a bunch of MH
"folders", or directories, that contain various types of mail,
determined by headers like To, X-loop, Sender, Reply-To, From, and,
in the old version of tin I recently upgraded from, Newsgroups.
With the hack that I posted here, I now use X-Newsgroups  for this
function, and it works just the way I want it to.  For example,
let's say I receive several FreeBSD mailing lists, and I also read
the comp.unix.bsd.freebsd newsgroup.  I want incoming email from
those mailing lists, as well as articles from the newsgroup that
I want to keep, "routed" (in this sense) by slocal into my
incoming-freebsd mail directory.

I'm curious--what do most people use the mail_to_someone function
for?  It strikes me that, except for somewhat unusual applications
such as mine, it may not be be very heavily used, in which case
the redundancy caused by the inclusion of X-Newsgroups in all such
mailed news articles would be unlikely to bring the Internet to its knees.

Greg Shenaut

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