Re: Bug handling long lines ?

2002-06-26 Thread Nicolas Rachinsky

* Pedro Alves [EMAIL PROTECTED] [2002-06-26 09:44 +0100]:
 On Wed, Jun 26, 2002 at 01:58:45AM +0200, Nicolas Rachinsky wrote:
  It's encoded with quoted-printable, AFAIK quoted-printable requires
  the sender to a maximal line length of (I think) 100 bytes, after
  which you have to add at least a soft line break. This problem has
  been discussed on mutt-dev at least once. It's not mutt's fault, the
  message is broken.
 
 Well, It works on virtually every other mail client... including pine.

Is there sane working MUA producing such mails? 

Nicolas



Bug handling long lines ?

2002-06-25 Thread Pedro Alves

Hi.   
  
I noticed a problem regarding an HTML attachment that has very long lines.
Somehow mutt truncates those lines arround column 255.
  
This is a bit weird because I tried to reproduce the error writing my own 
html attachment with lines greater than 400 chars and all worked well.
  
Any suggestions?   


-- 
Pedro Miguel G. Alves

THINK - Tecnologias de Informação
Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
Tel: +351 21 3590285   Fax: +351 21 3582729
HomePage: www.think.pt



Re: Bug handling long lines ?

2002-06-25 Thread Pedro Alves

On Tue, Jun 25, 2002 at 06:16:06PM +0100, Pedro Alves wrote:
 Hi.   
   
 I noticed a problem regarding an HTML attachment that has very long lines.
 Somehow mutt truncates those lines arround column 255.
   
 This is a bit weird because I tried to reproduce the error writing my own 
 html attachment with lines greater than 400 chars and all worked well.
   
 Any suggestions?   
 
 
 

Btw, the problem only happens in mutt (eg: pine works fine :/// ) and it is
solved by applying the folowing regexp to the mailbox:

perl -i.bak -pe 's/(.{200}[^ ]) (.*)/$1\n$2/g' mailbox


-- 
Pedro Miguel G. Alves

THINK - Tecnologias de Informação
Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
Tel: +351 21 3590285   Fax: +351 21 3582729
HomePage: www.think.pt




Re: Bug handling long lines ?

2002-06-25 Thread David T-G

Pedro --

...and then Pedro Alves said...
% 
% Hi.   

Hello!


%   
% I noticed a problem regarding an HTML attachment that has very long lines.
% Somehow mutt truncates those lines arround column 255.

Are you sure it's actually doing that, or are you perhaps looking at an
alternative text attachment that has been truncated for you?

Can you forward the message (remember to MIME-encapsulate it) if it
really, truly, absolutely looks like mutt is clipping the HTML lines?


%   
% This is a bit weird because I tried to reproduce the error writing my own 
% html attachment with lines greater than 400 chars and all worked well.

Even more reason to think that it's not really doing what you think it is.


%   
% Any suggestions?   

Well, you could always refuse any HTML mail :-)


% 
% 
% -- 
% Pedro Miguel G. Alves
% 
% THINK - Tecnologias de Informação
% Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
% Tel: +351 21 3590285   Fax: +351 21 3582729
% HomePage: www.think.pt


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg29234/pgp0.pgp
Description: PGP signature


Re: Bug handling long lines ?

2002-06-25 Thread Pedro Alves

On Tue, Jun 25, 2002 at 12:45:54PM -0500, David T-G wrote:
 % I noticed a problem regarding an HTML attachment that has very long lines.
 % Somehow mutt truncates those lines arround column 255.
 
 Are you sure it's actually doing that, or are you perhaps looking at an
 alternative text attachment that has been truncated for you?
 
 Can you forward the message (remember to MIME-encapsulate it) if it
 really, truly, absolutely looks like mutt is clipping the HTML lines?

It really, truly absolutly looks like a mutt problem.

I'm sending a tgz'd mailbox with only one line. Open it and look at the
attachment as text. You'll see that it truncates some long lines.
Saving/opening with w3m, lynx, netscape, whatever, it shows the file is
absolutly broken



-- 
Pedro Miguel G. Alves

THINK - Tecnologias de Informação
Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
Tel: +351 21 3590285   Fax: +351 21 3582729
HomePage: www.think.pt



mutt-bug.tgz
Description: application/tar-gz


Re: Bug handling long lines ?

2002-06-25 Thread David T-G

Pedro --

...and then Pedro Alves said...
% 
% On Tue, Jun 25, 2002 at 12:45:54PM -0500, David T-G wrote:
%  % I noticed a problem regarding an HTML attachment that has very long lines.
%  % Somehow mutt truncates those lines arround column 255.
%  
%  Are you sure it's actually doing that, or are you perhaps looking at an
%  alternative text attachment that has been truncated for you?
%  
%  Can you forward the message (remember to MIME-encapsulate it) if it
%  really, truly, absolutely looks like mutt is clipping the HTML lines?
% 
% It really, truly absolutly looks like a mutt problem.

OK :-)

It looks like your perl script fix just looked for a space at char 201
and got rid of it.  Is that really true?


% 
% I'm sending a tgz'd mailbox with only one line. Open it and look at the

I'm not sure what you mean; I see 1077 lines in it (headers included).


% attachment as text. You'll see that it truncates some long lines.
% Saving/opening with w3m, lynx, netscape, whatever, it shows the file is
% absolutly broken

It also appears to read fine for me under lynx (except that Sala 3 is
duplicated in the listings; Sala 2 appears to be missing).  Maybe I'm
just not seeing the same thing you are.


% 
% 
% 
% -- 
% Pedro Miguel G. Alves
% 
% THINK - Tecnologias de Informação
% Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
% Tel: +351 21 3590285   Fax: +351 21 3582729
% HomePage: www.think.pt


HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg29237/pgp0.pgp
Description: PGP signature


Re: Bug handling long lines ?

2002-06-25 Thread Pedro Alves

On Tue, Jun 25, 2002 at 01:09:33PM -0500, David T-G wrote:
 Pedro --
 
 ...and then Pedro Alves said...
 % 
 % On Tue, Jun 25, 2002 at 12:45:54PM -0500, David T-G wrote:
 %  % I noticed a problem regarding an HTML attachment that has very long lines.
 %  % Somehow mutt truncates those lines arround column 255.
 %  
 %  Are you sure it's actually doing that, or are you perhaps looking at an
 %  alternative text attachment that has been truncated for you?
 %  
 %  Can you forward the message (remember to MIME-encapsulate it) if it
 %  really, truly, absolutely looks like mutt is clipping the HTML lines?
 % 
 % It really, truly absolutly looks like a mutt problem.
 
 OK :-)
 
 It looks like your perl script fix just looked for a space at char 201
 and got rid of it.  Is that really true?

It looks for the first space after char 200 and replaces it for a newline.
It brakes the line. Keeps doing that so a line is never longer than 200
chars
 
 
 % 
 % I'm sending a tgz'd mailbox with only one line. Open it and look at the
 
 I'm not sure what you mean; I see 1077 lines in it (headers included).

One message, not one line! My mistake.


 
 
 % attachment as text. You'll see that it truncates some long lines.
 % Saving/opening with w3m, lynx, netscape, whatever, it shows the file is
 % absolutly broken
 
 It also appears to read fine for me under lynx (except that Sala 3 is
 duplicated in the listings; Sala 2 appears to be missing).  Maybe I'm
 just not seeing the same thing you are.
 

Try to apply my patch


what it's supposed to see is:

...
CINEMA S. JORGE  
Av. da Liberdade, 175   
Tel. 213103400/01   

Sala 1   
Jogo de Espiões  
Realizador: Tony Scott, Com Robert Redford, Brad Pitt, Catherine
McCormack e Stephen Dillane 
M/12 - 126 minutos - Acção/Drama/Thriller 
Sessões: 15.00, 18.00, 22.00 

Sala 2
Showtime  
Realizador: Tom Dey, Com Eddie Murphy, Robert de Niro, Rene Russo, Mel
Rodriguez 
M/12 - 92 minutos - Acção / Comédia 
Sessões: 15.15, 18.15, 21.15
 
...

what mutt sees before the patch is:

...
INEMA S. JORGE 
Av. da Liberdade, 175  
Tel. 213103400/01  
   
Sala 1 
Jogo de Espiões 
Realizador: Tony Scott, Com Robert Redford, Showtime  
Realizador: Tom Dey, Com Eddie Murphy, Star Wars - Episódio II - Ataque
dos Clones  
Realizador: George Lucas, Com Ewan McGregor, Star Wars - Episódio II -
Ataque dos Clones
Realizador: George Lucas, Com Ewan McGregor, O Poder dos Sentidos
Realizador: Tom Shadyac, Com Kevin Costner, Kathryn Erbe, Identidade   
Falsa 
Realizador: Harold Becker, Com John Travolta, Pela Mão do Senhor  
Realizador: Bill Paxton, Com Bill Paxton, Fala com Ela   
Realizador: Pedro Almodóvar, Com Leonor Watling, Bicicleta de Pequim  
Realizador: Xiaoshuai Wang, Com Lin Cui e Xun Zhou 
M/12 - 113 minutos - Drama 
Sessões: 14.00, 16.30, 19.00, 21.30, 00.00 
   
Sala 3 
Mulholland Drive 
Realizador: David Lynch, Com Justin Theroux e Pela Mão do Senhor
Realizador: Bill Paxton, Com Bill Paxton, O Delfim
Realizador: Fernando Lopes, Com Rogério Samora, Star Wars - Episódio II
- Ataque dos Clones  
Realizador: George Lucas, Com Ewan McGregor, Sala de Pânico
Realizador: David Fincher, Com Jodie Foster, O Poder dos Sentidos
Realizador: Tom Shadyac, Com Kevin Costn
.




Re: Bug handling long lines ?

2002-06-25 Thread Cedric Duval

Pedro Alves wrote:
 It really, truly absolutly looks like a mutt problem.

 I'm sending a tgz'd mailbox with only one line.

Is this supposed to be a valid charset?

 Content-Type: text/html; charset=3DISO-8859-1

-- 
Cedric



Re: Bug handling long lines ?

2002-06-25 Thread Vineet Kumar

* Cedric Duval ([EMAIL PROTECTED]) [020625 11:59]:
 Pedro Alves wrote:
  It really, truly absolutly looks like a mutt problem.
 
  I'm sending a tgz'd mailbox with only one line.
 
 Is this supposed to be a valid charset?
 
  Content-Type: text/html; charset=3DISO-8859-1

Looks like the '=' in 'charset=ISO-8859-1 got QP-encoded.

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
[T]he ad skips It's theft  Any time you skip a commercial...
you're actually stealing the programming. - Turner CEO Jamie Kellner
Is fair use dead?   Help the EFF help you!   http://www.eff.org/



msg29242/pgp0.pgp
Description: PGP signature