From kmail-devel Sat Jul 19 22:18:39 2003 From: Marc Mutz Date: Sat, 19 Jul 2003 22:18:39 +0000 To: kmail-devel Subject: Re: New action: move to next unread message or folder X-MARC-Message: https://marc.info/?l=kmail-devel&m=105865356530019 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============88608171140853553==" --===============88608171140853553== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_APcG/Z13im5L/fV"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit --Boundary-02=_APcG/Z13im5L/fV Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 19 July 2003 14:14, Ingo Kl=F6cker wrote: > Yes. But the if statement isn't really necessary. The following > simpler script should do the trick: > > > #!/usr/bin/perl -w > use strict; > while ( <> ) { > # true =3D> Loop in current folder > # false =3D> Don't loop > s/^LoopOnGotoUnread=3Dtrue/LoopOnGotoUnread=3D1/; > s/^LoopOnGotoUnread=3Dfalse/LoopOnGotoUnread=3D0/; > print; > } Sorry, saw this only after committing an upgrade script ;-) Not that you'd mind, I guess... I saw talk of a "strategy". Why isn't this one? :-) Would make changing=20 the unintelligible 0,1,2 values into never,folder,all (or so) much=20 simpler. Marc =2D-=20 If free-software authors lose the right to disclaim all warranties and find themselves getting sued over the performance of the programs they've written, they'll stop contributing free software to the world. -- Bruce Perens: Open Sources: Voices from the Open Source Revolution --Boundary-02=_APcG/Z13im5L/fV Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/GcPA3oWD+L2/6DgRAlpUAJ9eMQvHZVADrisOo1fRcCfj9hMXpwCg6BIs NSRA6py6BuO3jG+9IcVpDs0= =DI+0 -----END PGP SIGNATURE----- --Boundary-02=_APcG/Z13im5L/fV-- --===============88608171140853553== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KMail Developers mailing list kmail@mail.kde.org http://mail.kde.org/mailman/listinfo/kmail --===============88608171140853553==--