Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quota-status: Support recipient_delimiter
- Loading branch information
Showing
4 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* Copyright (c) 2017 Dovecot authors, see the included COPYING file */ | ||
|
||
#include "lib.h" | ||
#include "settings-parser.h" | ||
#include "service-settings.h" | ||
#include "mail-storage-settings.h" | ||
#include "quota-status-settings.h" | ||
|
||
#undef DEF | ||
#define DEF(type, name) \ | ||
{ type, #name, offsetof(struct quota_status_settings, name), NULL } | ||
|
||
static const struct setting_define quota_status_setting_defines[] = { | ||
DEF(SET_STR, recipient_delimiter), | ||
|
||
SETTING_DEFINE_LIST_END | ||
}; | ||
|
||
static const struct quota_status_settings quota_status_default_settings = { | ||
.recipient_delimiter = "+", | ||
}; | ||
|
||
static const struct setting_parser_info *quota_status_setting_dependencies[] = { | ||
NULL | ||
}; | ||
|
||
const struct setting_parser_info quota_status_setting_parser_info = { | ||
.module_name = "mail", | ||
.defines = quota_status_setting_defines, | ||
.defaults = "a_status_default_settings, | ||
|
||
.type_offset = (size_t)-1, | ||
.struct_size = sizeof(struct quota_status_settings), | ||
|
||
.parent_offset = (size_t)-1, | ||
.dependencies = quota_status_setting_dependencies | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef QUOTA_STATUS_SETTINGS_H | ||
#define QUOTA_STATUS_SETTINGS_H 1 | ||
|
||
struct quota_status_settings { | ||
char *recipient_delimiter; | ||
}; | ||
|
||
extern const struct setting_parser_info quota_status_setting_parser_info; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters