Re: Mailing articles as message/rfc822

Urs Janßen <[email protected]>
Newsgroups gmane.network.tin.devel,gmane.network.tin.user
Message-ID <[email protected]>
On Tue, Feb 24, 2004 at 05:22:00PM +0100, Elmar W. Tischhauser wrote:
> I'm wondering whether it is possible to mail usenet articles as
> message/rfc822 instead of simply including the whole article in the mail
> body.

this is on (my) TODO-list for some time now (and IIRC Dirk already
implemented this for the the -M/-N batchmode).

> Since I was unable to find an appropriate configuration variable, I
> digged a little in the source and modified src/post.c:mail_to_someone()
> to include additional MIME headers (MIME-Version: 1.0, Content-Type:
> message/rfc822, Content-Disposition: inline; Content-Transfer-Encoding:
> copied from the original usenet article).
> However, these settings did not prevail, as rfc15211522_encode()
> (invoked from src/post.c:submit_mail_file()) decided to parse the whole
> body and add the usual "Content-Type: text/plain; charset=ISO-8859-15"
> again; regardless whether the mailed article was encoded in UTF-8 or
> whatever.

correct place would be inside mail_loop() (or submit_mail_file())
around the related comment:
            /* TODO: wrap article into message/rfc822? */
,-)

urs
-- 
"Only whimps use tape backup: _real_ men just upload their important stuff
 on ftp, and let the rest of the world mirror it ;)" - Linus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.