6.0.0-alpha12
6/7/25

[#3574] some characters are lost from the end of long lines
Summary some characters are lost from the end of long lines
Queue IMP
Queue Version 4.1
Type Bug
State Resolved
Priority 3. High
Owners jan (at) horde (dot) org
Requester tpeland (at) tkukoulu (dot) fi
Created 03/08/2006 (7031 days ago)
Due
Updated 03/13/2006 (7026 days ago)
Assigned 03/10/2006 (7029 days ago)
Resolved 03/13/2006 (7026 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/13/2006 09:43:20 AM Jan Schneider Comment #8
State ⇒ Resolved
Reply to this comment
Fixed in Horde 3.1.1.
03/10/2006 07:31:00 PM Jan Schneider Comment #7 Reply to this comment
Uh, the last comment was for a different ticket.



The problem here is the String::regexMatch() call in Text/Flowed.php, 
line 265.

The message is being written in iso-8859-1, so we don't use preg_match 
that only supports utf-8. But mb_ereg doesn't support iso-8859-1 
either, at least that's the error message I get.



I guess we need to change the regexMatch() method to always convert to 
utf-8 and use preg_match.
03/10/2006 07:10:22 PM Jan Schneider Comment #6 Reply to this comment
Looks like it's a gpg problem:



LANG= ; /usr/bin/gpg --no-tty --no-secmem-warning --no-options 
--no-default-keyring --quiet --yes --homedir /dev/shm/jlfpj0wo 
--gen-key --batch --armor

%pubring /dev/shm/jlfpj0wo/horde-pgpSYKlUM

%secring /dev/shm/jlfpj0wo/horde-pgpBq0X3I

Key-Type: DSA

Key-Length: 1024

Subkey-Type: ELG-E

Subkey-Length: 1024

Name-Real: asdöjf

Name-Email: schneiderj@gmx.de

Expire-Date: 0

Passphrase: j

%commit

++++++++++..+++++++++++++++++++++++++.+++++.+++++++++++++++++++++++++.++++++++++++++++++++.++++++++++.++++++++++.+++++++++++++++++++++++++>+++++.+++++...............................+++++

+++++++++++++++++++++++++.++++++++++.++++++++++..++++++++++++++++++++.+++++++++++++++.++++++++++++++++++++.++++++++++++++++++++..+++++.+++++>+++++>+++++....................+++++^^^

gpg: build-packet.c:74: build_packet: Assertion `pkt->pkt.generic' failed.



After the first hash line was a *very* long pause.
03/10/2006 04:09:16 PM Jan Schneider State ⇒ Assigned
 
03/10/2006 04:09:00 PM Jan Schneider Priority ⇒ 3. High
 
03/10/2006 04:08:46 PM Jan Schneider Deleted Original Message
 
03/10/2006 04:08:35 PM Jan Schneider Comment #5
Assigned to Jan Schneider
Reply to this comment
I can reproduce it.
03/10/2006 03:38:49 PM Michael Slusarz Comment #4 Reply to this comment
Maybe there is a problem with the php version. I have currently php
version 4.4.0. What are you using?
I am using PHP 5.1.2.



Since I can't reproduce this, you will either have to hope that some 
other developer can reproduce this or you will have to trace the code 
and find the location where this information is being dropped on your 
system.  If you do find this location, let us know and we will take a 
look.
03/10/2006 07:02:05 AM tpeland (at) tkukoulu (dot) fi Comment #3 Reply to this comment
I can't reproduce this.  See attached IMP 4.1.1 test message I
generated which looks fine to me.
I retested this with FRAMEWORK_3-2006-03-08 packages of 
framework/horde/imp and the problem persists.



Maybe there is a problem with the php version. I have currently php 
version 4.4.0. What are you using?


03/08/2006 04:07:15 PM Michael Slusarz Comment #2
State ⇒ Feedback
Priority ⇒ 1. Low
New Attachment: Message Source.eml
Reply to this comment
I can't reproduce this.  See attached IMP 4.1.1 test message I 
generated which looks fine to me.
03/08/2006 08:58:44 AM tpeland (at) tkukoulu (dot) fi Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ some characters are lost from the end of long lines
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
While writing a new message sometimes two last characters are removed

from the end of line. Following conditions must be true to trigger this.



The paragraph must be long enough that the line is folded to multiple lines.

The paragraph must end with a "non-ascii character" + '.'.

The charset selected must be something other then utf-8 (at least

iso-8859-1 and iso-8859-15 cause this problem).



--- example (write this as a single line) ---

Sähköpostin standardeissa todetaan vain, että ohjelmien pitää varautua

erilaisiin rivinvaihtomerkkeihin tekstissä.

--- end ---



--- the contents of the mail sent ---

S=E4hk=F6postin standardeissa todetaan vain, ett=E4 ohjelmien pit=E4=E4 vara=

utua =20

erilaisiin rivinvaihtomerkkeihin tekstiss

--- end ---



In the above example the characters 'ä.'  have disappeared from the 
end of text.


Saved Queries