fix bogus complaints about missing Store/Account references

... when the reference is simply invalid (we already get a complaint
about that).
This commit is contained in:
Oswald Buddenhagen 2022-06-05 19:28:35 +02:00
parent bf59636f0f
commit 0f7c231cc2
2 changed files with 2 additions and 0 deletions

View File

@ -505,6 +505,7 @@ load_config( const char *where )
goto stpcom;
}
}
channel->stores[fn] = (void *)~0;
error( "%s:%d: unknown store '%s'\n",
cfile.file, cfile.line, cfile.val + 1 );
cfile.err = 1;

View File

@ -3679,6 +3679,7 @@ imap_parse_store( conffile_t *cfg, store_conf_t **storep )
for (srv = servers; srv; srv = srv->next)
if (srv->name && !strcmp( srv->name, cfg->val ))
goto gotsrv;
store->server = (void *)~0;
error( "%s:%d: unknown IMAP account '%s'\n", cfg->file, cfg->line, cfg->val );
cfg->err = 1;
continue;