Commit 7cdb5991 7cdb5991a67eb355434b2457abcd3b931b6602de by Sergey Poznyakoff

Bugfixes.

* libproto/imap/mbox.c (imap_append_message0): Send trailing CRLF,
not just LF.
* mailbox/cfg_parser.y (mu_cfg_parse): Zero out _mu_cfg_debug
to avoid destroying it doubly.
* mailbox/mbx_default.c (plus_expand): Remove unused variable.
1 parent 5f97b649
......@@ -1081,8 +1081,8 @@ imap_append_message0 (mu_mailbox_t mailbox, mu_message_t msg)
}
f_imap->state = IMAP_APPEND_ACK;
}
/* !@#%$ UW-IMAP server hack: insists on the last line. */
imap_writeline (f_imap, "\n");
/* !@#%$ UW-IMAP and Gimap server hack: both insist on the last line. */
imap_writeline (f_imap, "\r\n");
status = imap_send (f_imap);
CHECK_EAGAIN (f_imap, status);
......
......@@ -442,6 +442,7 @@ mu_cfg_parse (mu_cfg_tree_t **ptree)
tree = mu_alloc (sizeof (*tree));
tree->debug = _mu_cfg_debug;
_mu_cfg_debug = NULL;
tree->head = parse_head;
tree->tail = parse_tail;
tree->pool = mu_cfg_lexer_pool ();
......
......@@ -270,7 +270,7 @@ plus_expand (const char *file, char **buf)
{
char *home;
const char *folder_dir = mu_folder_directory ();
int status, len;
int len;
home = get_homedir (NULL);
if (!home)
......