Thread View: news.software.readers
5 messages
5 total messages
Started by Tomasz 'tsca' Sienicki
Fri, 18 Jun 1999 00:00
slrn: editing custom headers
Author: Tomasz 'tsca' Sienicki
Date: Fri, 18 Jun 1999 00:00
Date: Fri, 18 Jun 1999 00:00
17 lines
1432 bytes
1432 bytes
When composing a post I'd like to have the header
Content-Type: text/plain; charset=iso-8859-1
available in my editor. I know I can use hooks for different encodings
for different ng's, or I can bind a given encoding to a key sequence
when doing a followup/posting, but having it in the editor would be
simply more convinient. Is that possible?
--
tsca life is short: take risks *
Tomasz Sienicki <tsca@cryogen.com> if you win, you'll be happy *
if you lose, you'll be wise *
--- [ phevbfvgl xvyyrq gur png ] --------------------------- (anonymous) *
Re: slrn: editing custom headers
Author: Tomasz 'tsca' Sienicki
Date: Sat, 19 Jun 1999 00:00
Date: Sat, 19 Jun 1999 00:00
41 lines
2212 bytes
2212 bytes
Albert Koellner wrote
[in <slrn7mnfto.fuf.crajk@tron.oeh.univie.ac.at>]:
> > When composing a post I'd like to have the header
> >
> > Content-Type: text/plain; charset=iso-8859-1
> >
> > available in my editor.
>
> Have a look at your .slrnrc, you can add e.g. the lines
>
> set custom_headers "X-Custom-Header: anything"
> set followup_custom_headers "X-Custom-Header: anything"
>
> and the header will be added in any new post or follow-up.
No, the Content-Type header is added by slrn. If you add it this way
you'll get
Article rejected: 441 Duplicate "Content-Type" header
> You know that you can simply add
>
> set use_mime 1
> set mime_charset "iso-8859-1"
>
> in your .slrnrc?
Sure. I have a hook: default iso-8859-2, but iso-8859-1 for dk.*
groups. But sometimes I wish to post sth in *-1 to non dk.* groups or
post in *-2 to dk.* groups. That happens. So what I want is the hooks
still working, but the Content-Type line in my editor available for
editing in unusual cases.
--
tsca life is short: take risks *
Tomasz Sienicki <tsca@cryogen.com> if you win, you'll be happy *
if you lose, you'll be wise *
--- [ phevbfvgl xvyyrq gur png ] --------------------------- (anonymous) *
Re: slrn: editing custom headers
Author: Albert Koellner
Date: Sat, 19 Jun 1999 00:00
Date: Sat, 19 Jun 1999 00:00
35 lines
1644 bytes
1644 bytes
Tomasz 'tsca' Sienicki <tsca@cryogen.com> wrote: > > When composing a post I'd like to have the header > > Content-Type: text/plain; charset=iso-8859-1 > > available in my editor. Have a look at your .slrnrc, you can add e.g. the lines set custom_headers "X-Custom-Header: anything" set followup_custom_headers "X-Custom-Header: anything" and the header will be added in any new post or follow-up. > I know I can use hooks for different encodings > for different ng's, or I can bind a given encoding to a key sequence > when doing a followup/posting, but having it in the editor would be > simply more convinient. Is that possible? See above. But why would you make it that complicated? You know that you can simply add set use_mime 1 set mime_charset "iso-8859-1" in your .slrnrc? Albert -- Sig looking for content. Apply inside.
Re: slrn: editing custom headers
Author: Tomasz 'tsca' Sienicki
Date: Mon, 21 Jun 1999 00:00
Date: Mon, 21 Jun 1999 00:00
28 lines
1992 bytes
1992 bytes
Tomasz 'tsca' Sienicki wrote
[in <slrn7mnkdl.d9.tsca@gate1.has.dk>]:
> Sure. I have a hook: default iso-8859-2, but iso-8859-1 for dk.*
> groups. But sometimes I wish to post sth in *-1 to non dk.* groups or
> post in *-2 to dk.* groups. That happens. So what I want is the hooks
> still working, but the Content-Type line in my editor available for
> editing in unusual cases.
Well, I after a short look into slrnfuns.txt I came up with something
much better (which greatly improved my mood :)
define post_filter_hook ()
{
variable mime_charset;
variable n_code ;
n_code = select_list_box ("Choose encoding",
"iso-8859-1", "iso-8859-2", "iso-8859-3", "iso-8859-4", 4, 2);
set_string_variable ("mime_charset", n_code);
}
--
tsca life is short: take risks *
Tomasz Sienicki <tsca@cryogen.com> if you win, you'll be happy *
if you lose, you'll be wise *
--- [ phevbfvgl xvyyrq gur png ] --------------------------- (anonymous) *
Re: slrn: editing custom headers
Author: garusher Gary Rusher
Date: Tue, 22 Jun 1999 00:00
Date: Tue, 22 Jun 1999 00:00
44 lines
2212 bytes
2212 bytes
>this is cool In article <slrn7mnkdl.d9.tsca@gate1.has.dk>, Tomasz 'tsca' Sienicki wrote: > Albert Koellner wrote > [in <slrn7mnfto.fuf.crajk@tron.oeh.univie.ac.at>]: > >> > When composing a post I'd like to have the header >> > >> > Content-Type: text/plain; charset=iso-8859-1 >> > >> > available in my editor. >> >> Have a look at your .slrnrc, you can add e.g. the lines >> >> set custom_headers "X-Custom-Header: anything" >> set followup_custom_headers "X-Custom-Header: anything" >> >> and the header will be added in any new post or follow-up. > > No, the Content-Type header is added by slrn. If you add it this way > you'll get > > Article rejected: 441 Duplicate "Content-Type" header > >> You know that you can simply add >> >> set use_mime 1 >> set mime_charset "iso-8859-1" >> >> in your .slrnrc? > > Sure. I have a hook: default iso-8859-2, but iso-8859-1 for dk.* > groups. But sometimes I wish to post sth in *-1 to non dk.* groups or > post in *-2 to dk.* groups. That happens. So what I want is the hooks > still working, but the Content-Type line in my editor available for > editing in unusual cases. > >-- > tsca life is short: take risks * > Tomasz Sienicki <tsca@cryogen.com> if you win, you'll be happy * > if you lose, you'll be wise * > --- [ phevbfvgl xvyyrq gur png ] --------------------------- (anonymous) *
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