Re: [imp] Folder names with tilde character

2015-11-20 Thread Jan Schneider
Zitat von Jens Wahnes : On Thu, Nov 19 2015, at 22:28:35 +0100, Jan Schneider wrote: http://github.com/horde/horde/commit/2cc3963358d08fe180db41a0bdeb2b7844bf47ac Many thanks to both of you! I tried that code and, so far, it works very well. Could it be that the comment in the source code

Re: [imp] Folder names with tilde character

2015-11-20 Thread Jens Wahnes
On Thu, Nov 19 2015, at 22:28:35 +0100, Jan Schneider wrote: > http://github.com/horde/horde/commit/2cc3963358d08fe180db41a0bdeb2b7844bf47ac Many thanks to both of you! I tried that code and, so far, it works very well. Could it be that the comment in the source code has a typo? Shouldn't it r

Re: [imp] Folder names with tilde character

2015-11-19 Thread Jan Schneider
Zitat von Michael M Slusarz : Quoting Jan Schneider : Zitat von Michael M Slusarz : Quoting Jens Wahnes : After a very long search, I found out that this problem is caused by the code in the Horde_Imap_Client_Tokenize class, or more precisely the code within the "next" method on line 2

Re: [imp] Folder names with tilde character

2015-11-19 Thread Michael M Slusarz
The only place where we would need to *parse* a literal8, is when reading BODY data of a part. I think we always try to do this, but IIRC the server only has to send literal8 when the data both 1) is 8bit an 2) contains NULs. So you would have to artificially create that kind of data to p

Re: [imp] Folder names with tilde character

2015-11-19 Thread Jan Schneider
Zitat von Michael M Slusarz : Quoting Jens Wahnes : After a very long search, I found out that this problem is caused by the code in the Horde_Imap_Client_Tokenize class, or more precisely the code within the "next" method on line 292 or so. There is a comment attached to the "case" sta

Re: [imp] Folder names with tilde character

2015-11-19 Thread Michael M Slusarz
Quoting Jens Wahnes : After a very long search, I found out that this problem is caused by the code in the Horde_Imap_Client_Tokenize class, or more precisely the code within the "next" method on line 292 or so. There is a comment attached to the "case" statement in question which reads

Re: [imp] Folder names with tilde character

2015-11-19 Thread Jan Schneider
Zitat von Jens Wahnes : One of our users created a folder with a tilde ("~") character within the folder name. This kind of folder name is not handled correctly. When the folder is shown in the folder list, the tilde character is silently dropped. For instance, if a folder by the name

[imp] Folder names with tilde character

2015-11-18 Thread Jens Wahnes
One of our users created a folder with a tilde ("~") character within the folder name. This kind of folder name is not handled correctly. When the folder is shown in the folder list, the tilde character is silently dropped. For instance, if a folder by the name of "~tilde~" is created, it is