@@ -2792,7 +2792,7 @@ static int mail_engine_psubl(int argc, char **argv, int sockd) try
2792
2792
rsp.reserve (65536 );
2793
2793
for (; pstmt.step () == SQLITE_ROW; ++count)
2794
2794
rsp += std::to_string (pstmt.col_uint64 (0 )) + " " +
2795
- znul (pstmt.col_text (1 )) + " \r\n " s;
2795
+ base64_encode ( znul (pstmt.col_text (1 ) )) + " \r\n " s;
2796
2796
pstmt.finalize ();
2797
2797
pidb.reset ();
2798
2798
rsp.insert (0 , " TRUE " + std::to_string (count) + " \r\n " );
@@ -3618,7 +3618,7 @@ static void mail_engine_delete_notification_message(IDB_ITEM *pidb,
3618
3618
gx_sql_col_uint64 (pstmt, 0 ) != folder_id)
3619
3619
return ;
3620
3620
system_services_broadcast_event (fmt::format (" MESSAGE-EXPUNGE {} {} {}" ,
3621
- username, folder_name, pstmt.col_uint64 (1 )).c_str ());
3621
+ username, base64_encode ( folder_name) , pstmt.col_uint64 (1 )).c_str ());
3622
3622
pstmt.finalize ();
3623
3623
qstr = fmt::format (" DELETE FROM messages WHERE message_id={}" , message_id);
3624
3624
gx_sql_exec (pidb->psqlite , qstr.c_str ());
@@ -4010,7 +4010,7 @@ static void mail_engine_notification_proc(const char *dir,
4010
4010
return ;
4011
4011
std::string name = znul (stm.col_text (0 ));
4012
4012
stm.finalize ();
4013
- qstr = fmt::format (" FOLDER-TOUCH {} {}" , pidb->username , name);
4013
+ qstr = fmt::format (" FOLDER-TOUCH {} {}" , pidb->username , base64_encode ( name) );
4014
4014
system_services_broadcast_event (qstr.c_str ());
4015
4015
}
4016
4016
} catch (const std::bad_alloc &) {
0 commit comments