X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fimap%2Fimap_fetch.c;h=2165688125cea1edadc66a1cb5baa53445d0adbc;hb=7c7698836856107cf05908ddb4314a82506ddd76;hp=3af4e8cb7447533f631861acd4eb5d39cc14c287;hpb=4a6134802531013e4f8b8e6e7498274ffb3c2828;p=citadel.git diff --git a/citadel/modules/imap/imap_fetch.c b/citadel/modules/imap/imap_fetch.c index 3af4e8cb7..216568812 100644 --- a/citadel/modules/imap/imap_fetch.c +++ b/citadel/modules/imap/imap_fetch.c @@ -793,6 +793,10 @@ void imap_fetch_bodystructure_part( cprintf("("); /* begin body parameter list */ + /* "NAME" must appear as the first parameter. This is not required by IMAP, + * but the Asterisk voicemail application blindly assumes that NAME will be in + * the first position. If it isn't, it rejects the message. + */ if (name != NULL) if (!IsEmptyStr(name)) { cprintf("\"NAME\" "); imap_strout(name);