Re: Problem getting headers of an IMAP account



Philip Van Hoof wrote:
> On Wed, 2006-11-08 at 17:13 +0100, Sergio Villar Senin wrote:
>> Philip Van Hoof wrote:

> This piece of code in the file camel-imap-folder.c defines the command
> that is being sent and that is invalid for your IMAP service.
> 
> #define CAMEL_MESSAGE_INFO_HEADERS "DATE FROM TO CC SUBJECT IN-REPLY-TO
> MESSAGE-ID MIME-VERSION CONTENT-TYPE "
> 
> if (store->server_level >= IMAP_LEVEL_IMAP4REV1)
>    	header_spec = "HEADER.FIELDS (" CAMEL_MESSAGE_INFO_HEADERS ")";
>    else
>    	header_spec = "0";
> 
>  if( g_getenv ("TNY_IMAP_FETCH_ALL_HEADERS") )
>    	header_spec = "HEADER";
> 
> Can you try with export TNY_IMAP_FETCH_ALL_HEADERS=1 ?

With the environment variable it works.

Anyway I found the problem, and I think you won't believe it :-). The
issue was this evil blank space at the end of the
CAMEL_MESSAGE_INFO_HEADERS. It works for me if I remove this blank space
at the end.

Br.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]