Dirty hack to avoid displaying a single ")" at the end of each message

This commit is contained in:
Pierre Pronchery 2011-06-05 01:56:16 +00:00
parent 27f73d0c94
commit 94d40c4455

View File

@ -430,6 +430,9 @@ static int _context_fetch(AccountPlugin * plugin, char const * answer)
switch(cmd->data.fetch.status)
{
case I4FS_BODY:
/* FIXME dirty hack for now */
if(strcmp(answer, ")") == 0)
return 0;
helper->message_set_body(message->message, answer,
strlen(answer), 1);
helper->message_set_body(message->message, "\r\n",