Skip to content

Conversation

@mochouinard
Copy link

Add TIMEOUT in the list of allowed config paramaters, make sure no random memory is parted for potential options and fix output when the parameters name entered is invalid.

Note that the timeout error output would still show (10) even if a different timeout is set.

…ndom memory is parted for potential options and fix output when the parameters name entered is invalid
@mochouinard
Copy link
Author

The reason for this change, is because if my DNS server is not responding, EXIM4 take more than 10 second to timeout before answering on port 25. Even if Internet is down, I want my email to be queued by the local agent

"VCARD"
"VCARD",
"TIMEOUT",
""
Copy link
Owner

@deanproxy deanproxy Nov 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to just kill the MAX_CONF_VARS macro all together and have conf_vars just be a pointer-array?

static char *conf_vars[] = {
        "USE_TLS",
        /* ... */,
        "TIMEOUT",
        NULL
}

int i;

for (i = 0; i < MAX_CONF_VARS; i++) {
for (i = 0; strcasecmp("", conf_vars[i]) ; i++) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then here it would be a bit more simple and performant to just say:

for (i = 0; conf_vars[i]; i++) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants