Re: [bug] attributes stuff in options_menu.c broken

Dennis Preiser <[email protected]> Mon, 3 Nov 2008 19:25:47 +0100
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
On 03.11.2008, at 17:28, Urs Janßen wrote:

> In <[email protected]>,
>     Dennis Preiser wrote:

>> a mix: the new value is stored in tinrc and the old value is stored
>> in attributes.
>
> I'll try to reproduce that later today (but IIRC the current code is
> correct).

This way I can reproduce this with the latest snapshot:

$ grep trim .tin/tinrc
trim_article_body=7

.tin/attributes (without comments):

scope=*
organization=coredump
x_headers=~/.tin/header

scope=de.*,ger.*,t-online.*
undeclared_charset=Windows-1252

scope=t-online.test
trim_article_body=0


Start tin,
enter de.comm.software.newsreader,
hit 'M' and change "How to treat blank lines" to "Compact multiple  
between text",
leave the menu and leave tin.


$ grep trim .tin/tinrc
trim_article_body=4

.tin/attributes (without comments):

scope=*
organization=coredump
x_headers=~/.tin/header
trim_article_body=7

scope=de.*,ger.*,t-online.*
trim_article_body=7
undeclared_charset=Windows-1252

scope=t-online.test
trim_article_body=0


tin writes the changed value into tinrc and add an  
trim_article_body=OLD_VALUE to all scopes which matches  
de.comm.software.newsreader.

Dennis