quote mailbox names written to config file

This commit is contained in:
Oswald Buddenhagen 2012-09-15 11:57:14 +02:00
parent 18936f6696
commit bbf98bb165

View File

@ -456,10 +456,10 @@ write_config( int fd )
box->channel_name = cn; box->channel_name = cn;
gotchan: gotchan:
if (box->path[0] == '/') if (box->path[0] == '/')
fprintf( fp, "Channel %s\nMaster :%s:%s\nSlave :local_root:%s\n", fprintf( fp, "Channel %s\nMaster :%s:\"%s\"\nSlave :local_root:\"%s\"\n",
box->channel_name, box->store_name, box->box, box->path + 1 ); box->channel_name, box->store_name, box->box, box->path + 1 );
else else
fprintf( fp, "Channel %s\nMaster :%s:%s\nSlave :local:%s\n", fprintf( fp, "Channel %s\nMaster :%s:\"%s\"\nSlave :local:\"%s\"\n",
box->channel_name, box->store_name, box->box, box->path ); box->channel_name, box->store_name, box->box, box->path );
write_channel_parm( fp, box ); write_channel_parm( fp, box );
} }