提交 12c13e11 authored 作者: cypromis's avatar cypromis

more formatting mistakes *sigh*

上级 cf83f9c3
...@@ -1277,9 +1277,9 @@ static void message_count(vm_profile_t *profile, const char *id_in, const char * ...@@ -1277,9 +1277,9 @@ static void message_count(vm_profile_t *profile, const char *id_in, const char *
myid = resolve_id(id_in, domain_name, "message-count"); myid = resolve_id(id_in, domain_name, "message-count");
switch_snprintf(sql, sizeof(sql), "select 1, read_flags, count(read_epoch) from voicemail_msgs where username='%s' and domain='%s' and in_folder='%s' and read_epoch=0 group by read_flags union switch_snprintf(sql, sizeof(sql), "select 1, read_flags, count(read_epoch) from voicemail_msgs where username='%s' and domain='%s' and in_folder='%s' "
select 0, read_flags, count(read_epoch) from voicemail_msgs where username='%s' and domain='%s' and in_folder='%s' and read_epoch<>0 group by read_flags;", myid, domain_name, myfolder); "and read_epoch=0 group by read_flags union select 0, read_flags, count(read_epoch) from voicemail_msgs where username='%s' "
"and domain='%s' and in_folder='%s' and read_epoch<>0 group by read_flags;", myid, domain_name, myfolder);
vm_execute_sql_callback(profile, profile->mutex, sql, message_count_callback, &cbt); vm_execute_sql_callback(profile, profile->mutex, sql, message_count_callback, &cbt);
*total_new_messages = cbt.total_new_messages + cbt.total_new_urgent_messages; *total_new_messages = cbt.total_new_messages + cbt.total_new_urgent_messages;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论