Index: apps/app_voicemail.c =================================================================== --- apps/app_voicemail.c (revision 168609) +++ apps/app_voicemail.c (working copy) @@ -1220,6 +1220,7 @@ ast_mutex_lock(&vms_p->lock); pgm = mail_newsearchpgm (); hdr = mail_newsearchheader ("X-Asterisk-VM-Extension", (char *)mailbox); + hdr->next = mail_newsearchheader("X-Asterisk-VM-Context", S_OR(context, "default")); pgm->header = hdr; if (fold != 1) { pgm->unseen = 1; @@ -1564,6 +1565,7 @@ /* Check IMAP folder for Asterisk messages only... */ hdr = mail_newsearchheader ("X-Asterisk-VM-Extension", vmu->mailbox); + hdr->next = mail_newsearchheader("X-Asterisk-VM-Extension", vmu->context); pgm->header = hdr; pgm->deleted = 0; pgm->undeleted = 1;