Hi Eduardo, thanks for checking, I increased the size of the variable in get_mailbox_delimiter to: "char tmp[256]" with the same results.
I also added a debug line to show the value of vms inside init_mailstream: ... /* Now connect to the target folder */ imap_mailbox_name(tmp, sizeof(tmp), vms, box, 1); ast_debug(3, "Before mail_open, server: %s, box:%d\n", tmp, box); ast_debug(3, "Value of vms at init_mailstream %s\n", vms); ast_mutex_lock(&vms->lock); vms->mailstream = mail_open (stream, tmp, debug ? OP_DEBUG : NIL); ... And it shows the value: INBOX May 28 17:48:32 vdc400 asterisk[14250]: DEBUG[17595][C-00000000]: app_voicemail.c:2952 in init_mailstream: Value of vms at init_mailstream INBOX Not sure if that is what you where asking to show. Thanks again, Alejandro 2014-05-28 1:49 GMT-05:00 Eduardo Chappa <echa...@gmx.com>: > On Tue, 27 May 2014, Alejandro Ríos wrote: > > get_mailbox_delimiter(vms, stream); >> > > Does the tmp variable in the function above have enough space to hold the > server specification? it seems that it does not (a char tmp[50] declaration > seems too small, and then you do a sprintf on it...), so it looks like you > are corrupting the stack. > > If this is not the case, can you show the value of *vms? in the function > init_mailstream? > > -- > Eduardo > http://patches.freeiz.com/alpine/ >
_______________________________________________ Imap-uw mailing list Imap-uw@u.washington.edu http://mailman13.u.washington.edu/mailman/listinfo/imap-uw