
----- Nachricht von Andreas Mauser <andreas@mauser.info> ---------
   Datum: Fri, 17 Jun 2016 20:17:56 +0200
     Von: Andreas Mauser <andreas@mauser.info>
Betreff: Re: [horde] No Text in Mail
      An: horde@lists.horde.org


> ----- Nachricht von Arjen de Korte <arjen+horde@de-korte.org> ---------
>   Datum: Fri, 17 Jun 2016 20:05:16 +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 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?
>>
>> Permissions? /var/log/horde_imap.log != /var/log/horde_imp.log
>
> damn typo :( thanks Arjen.
>
> I corrected that but horde_imp.log not filling

Wait, its doing something. Output:
------------------------------
>> Fri, 17 Jun 2016 20:18:33 +0200
>> Connection to: imap://10.0.24.2/
>> Server connection took 0.0015 seconds.
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID  
ENABLE IDLE STARTTLS LOGINDISABLED] Dovecot ready.
C: 1 STARTTLS
S: 1 OK Begin TLS negotiation now.
>> Command 1 took 0.0011 seconds.
>> Successfully completed TLS negotiation.
C: 2 CAPABILITY
S: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE  
IDLE AUTH=PLAIN
S: 2 OK Capability completed.
>> Command 2 took 0.0014 seconds.
C: 3 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: uta)]
S: 3 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID  
ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS  
MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED  
I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN  
CONTEXT=SEARCH LIST-STATUS QUOTA] Logged in
>> Command 3 took 0.1086 seconds.
>> CACHE: Using the IMP_Imap_Cache_Wrapper storage driver.
C: 4 ENABLE QRESYNC
C: 5 NAMESPACE
S: * ENABLED QRESYNC
S: 4 OK Enabled.
>> Command 4 took 0,0024 seconds.
S: * NAMESPACE (("" ".")) NIL NIL
S: 5 OK Namespace completed.
>> Command 5 took 0,0032 seconds.
C: 7 LIST "" INBOX RETURN (SUBSCRIBED)
C: 6 LIST (SUBSCRIBED) "" (*) RETURN (SUBSCRIBED)
S: * LIST () "." "INBOX"
S: 7 OK List completed.
>> Command 7 took 0,0215 seconds.
S: * LIST (\Subscribed) "." "Entw&APw-rfe"
S: * LIST (\Subscribed) "." "Gesendete Elemente"
S: * LIST (\Subscribed) "." "Trash"
S: * LIST (\Subscribed) "." "Junk-E-Mail"
S: * LIST (\Subscribed \NonExistent) "." "Infected Items"
S: * LIST (\Subscribed \NonExistent) "." "Gel&APY-schte Objekte"
S: * LIST (\Subscribed) "." "Gesendete Objekte"
S: * LIST (\Subscribed) "." "Haus"
S: * LIST (\Subscribed) "." "Sent"
S: * LIST (\Subscribed) "." "GMX"
S: * LIST (\Subscribed) "." "Outbox"
S: * LIST (\Subscribed) "." "Templates"
S: * LIST (\Subscribed) "." "Vorlagen"
S: * LIST (\Subscribed) "." "Drafts"
S: * LIST (\Subscribed) "." "Gesendet"
S: * LIST (\Subscribed) "." "Papierkorb"
S: 6 OK List completed.
>> Command 6 took 0,037 seconds.
C: 9 LIST "" INBOX RETURN (SUBSCRIBED)
C: 8 LIST (SUBSCRIBED) "" (*) RETURN (SUBSCRIBED)
S: * LIST () "." "INBOX"
S: 9 OK List completed.
>> Command 9 took 0,0013 seconds.
S: * LIST (\Subscribed) "." "Entw&APw-rfe"
S: * LIST (\Subscribed) "." "Gesendete Elemente"
S: * LIST (\Subscribed) "." "Trash"
S: * LIST (\Subscribed) "." "Junk-E-Mail"
S: * LIST (\Subscribed \NonExistent) "." "Infected Items"
S: * LIST (\Subscribed \NonExistent) "." "Gel&APY-schte Objekte"
S: * LIST (\Subscribed) "." "Gesendete Objekte"
S: * LIST (\Subscribed) "." "Haus"
S: * LIST (\Subscribed) "." "Sent"
S: * LIST (\Subscribed) "." "GMX"
S: * LIST (\Subscribed) "." "Outbox"
S: * LIST (\Subscribed) "." "Templates"
S: * LIST (\Subscribed) "." "Vorlagen"
S: * LIST (\Subscribed) "." "Drafts"
S: * LIST (\Subscribed) "." "Gesendet"
S: * LIST (\Subscribed) "." "Papierkorb"
S: 8 OK List completed.
>> Command 8 took 0,0047 seconds.
C: 10 LOGOUT
S: * BYE Logging out
S: 10 OK Logout completed.
>> Command 10 took 0,0024 seconds.

but is this what we look for?
