
----- Nachricht von Arjen de Korte <arjen+horde@de-korte.org> ---------
   Datum: Fri, 17 Jun 2016 18:53:55 +0200
     Von: Arjen de Korte <arjen+horde@de-korte.org>
Betreff: Re: [horde] No Text in Mail
      An: horde@lists.horde.org


> Citeren Andreas Mauser <andreas@mauser.info>:
>
>> ----- Nachricht von Jan Schneider <jan@horde.org> ---------
>>  Datum: Wed, 15 Jun 2016 17:02:36 +0000
>>    Von: Jan Schneider <jan@horde.org>
>> Betreff: Re: [horde] No Text in Mail
>>     An: horde@lists.horde.org
>>
>>
>>> Zitat von Andreas Mauser <andreas@mauser.info>:
>>>
>>>> ----- Nachricht von Arjen de Korte <arjen+horde@de-korte.org> ---------
>>>> Datum: Sun, 12 Jun 2016 20:25:31 +0200
>>>>  Von: Arjen de Korte <arjen+horde@de-korte.org>
>>>> Betreff: Re: [horde] No Text in Mail
>>>>   An: horde@lists.horde.org
>>>>
>>>>
>>>>> Citeren Andreas Mauser <andreas@mauser.info>:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> what could it be when in some mails I cannot read any text  
>>>>>> because there is none, but when forward or reply the text is  
>>>>>> there.
>>>>>>
>>>>>> Any clue how to solve or to look for?
>>>>>
>>>>> Usually this means that there are blank lines in the headers  
>>>>> where they shouln't be, causing your IMAP server to fail to  
>>>>> return a proper BODYSTRUCTURE. It might be relevant which IMAP  
>>>>> server you're using, so it may help mentioning it here.
>>>>
>>>> I just installed Thunderbird and there is no problem in viewing  
>>>> this mails.
>>>> SO, can it be its not the IMAP Server being nasty?
>>>>
>>>> Many thanks,
>>>> Andreas
>>>
>>> Not necessarily. Thunderbird probably fetches the complete message  
>>> and then parses it locally, while IMP relies on the IMAP server  
>>> parsing the message.
>>>
>>> You can find out by enabling raw imap debug logging in imp.
>>
>> How can I do that? I only know about turn on logging in the Horde  
>> admin panel.
>> Couldn't find it in the conf.php file.
>
> See imp/config/backends.php. Instructions in the header (and you  
> know not to modify this file).

I now activated Horde Debugging and placed the mentioned options in  
imp/backends.local.php and it looks like this:

<?php
$servers['imap']['disabled'] = true;
$servers['advanced']['disabled'] = false;
$servers['advanced']['hordeauth'] = false;
$servers['advanced']['hostspec'] = 'x.x.x.x';
$servers['advanced']['secure'] = tls;
$servers['advanced']['port'] = 143;
$servers['advanced']['maildomain'] = 'mauser.info';
$servers['advanced']['acl'] = true;
$servers['advanced']['protocol'] = imap;
$servers['advanced']['cache'] = none;
$servers['advanced']['quota']['params']['unit'] = 1GB;
$servers['advanced']['quota']['params']['hide_when_unlimited'] = false;
$servers['advanced']['spam']['innocent']['program'] = '/usr/bin/spamc  
-d mx -C revoke -u %l';
$servers['advanced']['spam']['innocent']['display'] = true;
$servers['advanced']['spam']['spam']['program'] = '/usr/bin/spamc -d  
mx -C report -u %l';
$servers['advanced']['spam']['spam']['display'] = true;
$servers['advanced']['autocreate_special'] = true;
$servers['advanced']['debug'] = '/var/log/horde_imap.log';
$servers['advanced']['debug_raw'] = true;

But the horde_imp.log file stays empty, the horde.log is filling up.

The files look like this:
-rw-r--r--. 1 apache apache   0 17. Jun 19:25 /var/log/horde_imp.log
-rw-r--r--. 1 apache apache 17M 17. Jun 19:27 /var/log/horde.log

Any hint?
many thanks,
Andreas
