Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One of the imapd.rc.in files has a (benign, but strange) line swap #35

Open
andrejpodzimek opened this issue Sep 7, 2021 · 2 comments

Comments

@andrejpodzimek
Copy link
Contributor

andrejpodzimek commented Sep 7, 2021

IIUC, the “taditional” ordering of config imports in Courier is:

  1. esmtpd only for esmtpd
  2. esmtpd overridden by esmtpd-ssl for esmtpd-ssl
  3. imapd-ssl overridden by imapd for imapd
  4. imapd overridden by imapd-ssl for imapd-ssl

There is one place where rule No. 2 is violated: HERE. All 3 other locations that follow rule No. 2 (here, here and here) are correct.

(This also implies that courier/courier/courier/imapd.rc.in differs from courier/courier-imap/imapd.rc.in in this particular detail.)

For the imapd-ssl.rc.in variant of the config file, all 4 relevant locations are in sync by rule No. 3.

There is no obvious problem this would be causing, at least none that I know of, mainly because this only affects the daemon’s environment, whereas most of the command line parts are resolved from the file imports above, which are in the correct order in all cases.

But still… It just caught my attention and it can cause some confusion during debugging.

@andrejpodzimek
Copy link
Contributor Author

Maybe I should have just sent a PR, but wasn’t entirely sure if it’s a bug or an odd trick that I’m missing.

@svarshavchik
Copy link
Owner

A small experiment verifies that the order of inclusion of imapd vs imapd-ssl makes no difference, so there's no particular reason for this. I suppose that someone might be dependent on the existing order of things.

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

No branches or pull requests

2 participants