mirror of
https://git.proxmox.com/git/proxmox-mail-forward
synced 2025-08-16 05:01:24 +00:00
pbs user config: allow parsing unknown sections
Previously, configs with entries for tokens could not be parsed successfully, so extracting the mail for the root user failed. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
1d5cb0707b
commit
1bb79e8a95
@ -46,7 +46,7 @@ fn normalize_for_return(s: Option<&str>) -> Option<String> {
|
||||
|
||||
/// Extract the root user's email address from the PBS user config.
|
||||
fn get_pbs_mail_to(content: &str) -> Option<String> {
|
||||
let mut config = SectionConfig::new(&DUMMY_ID_SCHEMA);
|
||||
let mut config = SectionConfig::new(&DUMMY_ID_SCHEMA).allow_unknown_sections(true);
|
||||
let user_plugin = SectionConfigPlugin::new(
|
||||
"user".to_string(),
|
||||
Some("userid".to_string()),
|
||||
|
Loading…
Reference in New Issue
Block a user