Bug#428056: Doesn't correctly display text/plain; format=flowed mails

2009-02-28 Thread Kurt Roeckx
On Fri, Jun 08, 2007 at 02:27:59PM +0200, Bastian Venthur wrote:
 Package: debbugs
 Severity: normal

 --- Please enter the report below this line. ---
 First, to see what I mean just look at this bugreport via webinterface  
 and notice how the lines in the Package information-table below starting  
 with 1(!) whitespace followed by OR appear to have 2 whitespaces.  
 Compare this with the output of your mailclient which should just show 1  
 whitespace.

I don't know if anything has changed to debbugs, but looking at 
the website, it is displayed correctly for me.


Kurt




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#428056: Doesn't correctly display text/plain; format=flowed mails

2007-06-08 Thread Bastian Venthur

Package: debbugs
Severity: normal

--- Please enter the report below this line. ---
First, to see what I mean just look at this bugreport via webinterface 
and notice how the lines in the Package information-table below starting 
with 1(!) whitespace followed by OR appear to have 2 whitespaces. 
Compare this with the output of your mailclient which should just show 1 
whitespace.


The problem is the MimeType format=flowed

  http://tools.ietf.org/html/rfc3676

   4.1. Interpreting Format=Flowed

   If the first character of a line is a space, the line has been
   space-stuffed (see Section 4.4).  Logically, this leading space is
   deleted before examining the line further (that is, before checking
   for flowed).

If a mail is encoded with format=flowed a line starting with a single 
whitespace is encoded with 2 whitespaces. A reasonable mailclient will 
strip one whitespace again when a user reads the mail. Unfortunately 
debbugs does not. So mails written with reportbug-ng and icedove (which 
uses format=flowed by default in plaintext mails) suffer from this 
cosmetical issue.



Cheers,

Bastian

--- System information. ---
Architecture: i386
Kernel:   Linux 2.6.21-1-686

Debian Release: lenny/sid
  500 unstablewww.debian-multimedia.org
  500 unstableftp.de.debian.org
1 experimentalftp.de.debian.org

--- Package information. ---
Depends   (Version) | Installed
===-+-===
perl5   |
 OR perl| 5.8.8-7
exim|
 OR mail-transport-agent|
libmailtools-perl   | 1.74-1
ed  | 0.2-20
libmime-perl| 5.420-1
libio-stringy-perl  | 2.110-2


--
Bastian Venthur  http://venthur.de
Debian Developer venthur at debian org



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#428056: Doesn't correctly display text/plain; format=flowed mails

2007-06-08 Thread Don Armstrong
severity 428056 minor
retitle 428056 [bugreport.cgi] Delete double leading spaces when displaying 
format=flowed mails
thanks

On Fri, 08 Jun 2007, Bastian Venthur wrote:
 Package: debbugs
 Severity: normal
 
 --- Please enter the report below this line. ---
 First, to see what I mean just look at this bugreport via webinterface 
 and notice how the lines in the Package information-table below starting 
 with 1(!) whitespace followed by OR appear to have 2 whitespaces. 
 Compare this with the output of your mailclient which should just show 1 
 whitespace.

Ok; this can probably be changed for format=flowed, though
reportbug-ng probably shouldn't bother to send messages with
format=flowed.


Don Armstrong

-- 
This can't be happening to me. I've got tenure.
 -- James Hynes _Publish and Perish_

http://www.donarmstrong.com  http://rzlab.ucr.edu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#428056: Doesn't correctly display text/plain; format=flowed mails

2007-06-08 Thread Bastian Venthur

Don Armstrong wrote:

severity 428056 minor
retitle 428056 [bugreport.cgi] Delete double leading spaces when displaying 
format=flowed mails
thanks

On Fri, 08 Jun 2007, Bastian Venthur wrote:

Package: debbugs
Severity: normal

--- Please enter the report below this line. ---
First, to see what I mean just look at this bugreport via webinterface 
and notice how the lines in the Package information-table below starting 
with 1(!) whitespace followed by OR appear to have 2 whitespaces. 
Compare this with the output of your mailclient which should just show 1 
whitespace.


Ok; this can probably be changed for format=flowed, though
reportbug-ng probably shouldn't bother to send messages with
format=flowed.


This it not a rng specific issue, it's icedove which sets format=flowed 
by default when composing mails in plaintext mode, there is nothing rng 
can do about it, since i just call icedove with a mailto:URL.


I don't know if it is a proper fix to just strip a whitespace on double 
spaces on the beginning of the line when format=flowed is detected. I'm 
not a perl-guru, but I guess there is some lib which can correctly 
format every freakin' mailformat to proper html.



Cheers,

Bastian

PS: How is my SOAP support going, I just had to fix an issue with html 
parsing again today :)



--
Bastian Venthur  http://venthur.de
Debian Developer venthur at debian org



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#428056: Doesn't correctly display text/plain; format=flowed mails

2007-06-08 Thread Don Armstrong
On Sat, 09 Jun 2007, Bastian Venthur wrote:
 Don Armstrong wrote:
 severity 428056 minor
 retitle 428056 [bugreport.cgi] Delete double leading spaces when 
 displaying format=flowed mails
 thanks
 
 On Fri, 08 Jun 2007, Bastian Venthur wrote:
 Package: debbugs
 Severity: normal
 
 --- Please enter the report below this line. ---
 First, to see what I mean just look at this bugreport via webinterface 
 and notice how the lines in the Package information-table below starting 
 with 1(!) whitespace followed by OR appear to have 2 whitespaces. 
 Compare this with the output of your mailclient which should just show 1 
 whitespace.
 
 Ok; this can probably be changed for format=flowed, though
 reportbug-ng probably shouldn't bother to send messages with
 format=flowed.
 
 This it not a rng specific issue, it's icedove which sets format=flowed 
 by default when composing mails in plaintext mode, there is nothing rng 
 can do about it, since i just call icedove with a mailto:URL.

Ah.
 
 PS: How is my SOAP support going, I just had to fix an issue with
 html parsing again today :)

Slow; I'm actually fairly close to fixing archiving support which is
my current major task, but I should have it working the way I want
shortly.


Don Armstrong

-- 
Facts are the refuge of people unwilling to reassess what they hold
to be True.

http://www.donarmstrong.com  http://rzlab.ucr.edu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]