backport: give the implicitly created imap account config the name of

the store.
This commit is contained in:
Oswald Buddenhagen 2008-04-13 09:57:27 +00:00
parent dff2f6a9f5
commit d2ccc93584

View File

@ -1815,6 +1815,7 @@ imap_parse_store( conffile_t *cfg, store_conf_t **storep, int *err )
if (!store->server) { if (!store->server) {
store->server = nfmalloc( sizeof(sserver) ); store->server = nfmalloc( sizeof(sserver) );
memcpy( store->server, &sserver, sizeof(sserver) ); memcpy( store->server, &sserver, sizeof(sserver) );
store->server->name = store->gen.name;
} else if (acc_opt) { } else if (acc_opt) {
fprintf( stderr, "IMAP store '%s' has both Account and account-specific options\n", store->gen.name ); fprintf( stderr, "IMAP store '%s' has both Account and account-specific options\n", store->gen.name );
*err = 1; *err = 1;