Jörg Sommer | 6 Nov 2006 17:31
Picon

Wrong concatenation of wrapped header lines

Hi,

there is something wrong with the code that concatenates header lines.
The subject of <news:454F2562.3020307 <at> hanft.de> and
<news:454f1b42$0$18850$9b4e6d93 <at> newsspool4.arcor-online.net>
(de.etc.finanz.banken+broker) has an additions space at the point where
the subject line is wrapped.

Original:

Subject: =?iso-8859-1?Q?Lastschriften_von_deutschem_Konto_aus_=D6sterreich_einzieh?=
        =?iso-8859-1?Q?en__=3F?=

Subject: =?ISO-8859-1?Q?Re=3A_Lastschriften_von_deutschem_Konto_?=
 =?ISO-8859-1?Q?aus_=D6sterreich_einziehen__=3F?=

Slrn prints:

Subject: Lastschriften von deutschem Konto aus Österreich einzieh en  ?

Subject: Re: Lastschriften von deutschem Konto  aus Österreich einziehen  ?

Bye, Jörg.
--

-- 
Der Wille und nicht die Gabe macht den Geber.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
(Continue reading)

Christian Ebert | 6 Nov 2006 18:57
X-Face
Picon
Gravatar

Re: Wrong concatenation of wrapped header lines

* Jörg Sommer on Monday, November 06, 2006 at 16:31:22 +0000:
> Original:
> 
> Subject: =?iso-8859-1?Q?Lastschriften_von_deutschem_Konto_aus_=D6sterreich_einzieh?=
>         =?iso-8859-1?Q?en__=3F?=
> 
> Subject: =?ISO-8859-1?Q?Re=3A_Lastschriften_von_deutschem_Konto_?=
>  =?ISO-8859-1?Q?aus_=D6sterreich_einziehen__=3F?=
> 
> Slrn prints:
> 
> Subject: Lastschriften von deutschem Konto aus Österreich einzieh en  ?
> 
> Subject: Re: Lastschriften von deutschem Konto  aus Österreich einziehen  ?

Same here.

Slrn 0.9.8.1pl2 [2005-02-17]
	* Note: This version is a developer preview.
S-Lang Library Version: 2.0.7
Compiled at: Oct 29 2006 23:14:19
Operating System: Darwin

 COMPILE TIME OPTIONS:
  Backends: +nntp -slrnpull -spool
  External programs / libs: -canlock -inews -ssl -uudeview
  Features: +charset_mapping +decoding +emphasized_text +end_of_thread
    +fake_refs +gen_msgid -grouplens -msgid_cache +piping +rnlock +slang
    +spoilers -strict_from
 DEFAULTS:
(Continue reading)

Troy Piggins | 8 Nov 2006 06:43

is there a way to assume yes?

I have an article_mode_quit_hook that calls catchup_all on
leaving article mode.  Trouble is it still asks if I want to
catchup all articles.

Is there a way to set it to assume 'yes' as the answer?

--

-- 
Troy Piggins

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

J.B. Nicholson-Owens | 8 Nov 2006 06:56

Re: is there a way to assume yes?

[I didn't mean to send this to just Troy Piggins.  Sorry for the duplicate 
response, Troy Piggins.]

Troy Piggins wrote:
 > I have an article_mode_quit_hook that calls catchup_all on
 > leaving article mode.  Trouble is it still asks if I want to
 > catchup all articles.
 >
 > Is there a way to set it to assume 'yes' as the answer?

I think you have to push the "y" on the queue of responses before you run the 
function that asks the question with set_input_chars().  I think you can do 
what you want with something like:

   set_input_chars ("y");
   call ("catchup_all);

and that will always catchup all the articles without prompting.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Troy Piggins | 8 Nov 2006 07:06

Re: is there a way to assume yes?

* J.B. Nicholson-Owens <jbn <at> forestfield.org> :
> [I didn't mean to send this to just Troy Piggins.  Sorry for the duplicate 
> response, Troy Piggins.]

No worries - thanks for the quick response!

> Troy Piggins wrote:
>  > I have an article_mode_quit_hook that calls catchup_all on
>  > leaving article mode.  Trouble is it still asks if I want to
>  > catchup all articles.
>  >
>  > Is there a way to set it to assume 'yes' as the answer?
> 
> I think you have to push the "y" on the queue of responses before you run the 
> function that asks the question with set_input_chars().  I think you can do 
> what you want with something like:
> 
>    set_input_chars ("y");
>    call ("catchup_all);
> 
> and that will always catchup all the articles without prompting.

Yep - that's the command I was looking for.  Thankyou.

--

-- 
Troy Piggins

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
(Continue reading)

Jens Wahnes | 8 Nov 2006 17:56
Picon

Re: is there a way to assume yes?

Troy Piggins wrote:

> I have an article_mode_quit_hook that calls catchup_all on
> leaving article mode.  Trouble is it still asks if I want to
> catchup all articles.

Apart from what J.B. already wrote, I believe you should also be able
to do something like

set_integer_variable("confirm_actions",30)

to make the question disappear altogether.  One probably should save
the old value of confirm_actions first and restore it before the hook
exits.

Jens
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Jens Wahnes | 8 Nov 2006 17:56
Picon

Re: Wrong concatenation of wrapped header lines

Christian Ebert wrote:

> * Jörg Sommer on Monday, November 06, 2006 at 16:31:22 +0000:
> > Subject: =?iso-8859-1?Q?Lastschriften_von_deutschem_Konto_aus_=D6sterreich_einzieh?=
> >         =?iso-8859-1?Q?en__=3F?=
> > Subject: Lastschriften von deutschem Konto aus Österreich einzieh en  ?

> Same here.

Strange.  Everything's fine here using "Slrn 0.9.8.1pl1 [2005-02-17]":

| Subject: Lastschriften von deutschem Konto aus Österreich einziehen  ?

Jens
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Christian Ebert | 8 Nov 2006 19:18
X-Face
Picon
Gravatar

Re: Wrong concatenation of wrapped header lines

* Jens Wahnes on Wednesday, November 08, 2006 at 17:56:41 +0100:
> Christian Ebert wrote:
> 
>> * Jörg Sommer on Monday, November 06, 2006 at 16:31:22 +0000:
>>> Subject: =?iso-8859-1?Q?Lastschriften_von_deutschem_Konto_aus_=D6sterreich_einzieh?=
>>>         =?iso-8859-1?Q?en__=3F?=
>>> Subject: Lastschriften von deutschem Konto aus Österreich einzieh en  ?
> 
>> Same here.
> 
> Strange.  Everything's fine here using "Slrn 0.9.8.1pl1 [2005-02-17]":

Sure. This only concerns Slrn 0.9.8.1pl2 from CVS, which OTOH is
capable of Unicode and has other nice enhancements.

c
--

-- 
_B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Troy Piggins | 8 Nov 2006 21:28

Re: is there a way to assume yes?

* Jens Wahnes <jewa <at> gmx.net> :
> Troy Piggins wrote:
> 
> > I have an article_mode_quit_hook that calls catchup_all on
> > leaving article mode.  Trouble is it still asks if I want to
> > catchup all articles.
> 
> Apart from what J.B. already wrote, I believe you should also be able
> to do something like
> 
> set_integer_variable("confirm_actions",30)
> 
> to make the question disappear altogether.  One probably should save
> the old value of confirm_actions first and restore it before the hook
> exits.

Of course!  That is more along the lines of what I want.
Thankyou.

--

-- 
Troy Piggins

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Jörg Sommer | 12 Nov 2006 00:25
Picon

Access internal recoding functions or force recoding

Hi,

can I access the internal functions to translate an article form latin1
and/or base64 into UTF‐8 or can I force slrn to reinterpret the article
after I've changed it with replace_article()?

Bye, Jörg.
--

-- 
> Definiere ‚Demokratie‘ …
… eine Mehrheit beweist einer Minderheit, dass Widerstand zwecklos ist.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane