Browse Source

quote mailbox names written to config file

wip/maildir-uid-dupes-test
Oswald Buddenhagen 12 years ago
parent
commit
bbf98bb165
  1. 4
      src/compat/config.c

4
src/compat/config.c

@ -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 );
} }

Loading…
Cancel
Save