]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Added --hostdomain setting to show the current hostdomain.
authorTimo Sirainen <tss@iki.fi>
Tue, 6 Aug 2013 11:36:25 +0000 (14:36 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 6 Aug 2013 11:36:25 +0000 (14:36 +0300)
src/master/main.c

index abede6986004edfa62b34c4223d19dbe8254f6b8..5027e5a47236aec6832f6d7d4069082504557509 100644 (file)
@@ -823,6 +823,9 @@ int main(int argc, char *argv[])
        } else if (strcmp(argv[optind], "version") == 0) {
                printf("%s\n", DOVECOT_VERSION_FULL);
                return 0;
+       } else if (strcmp(argv[optind], "hostdomain") == 0) {
+               printf("%s\n", my_hostdomain());
+               return 0;
        } else if (strcmp(argv[optind], "build-options") == 0) {
                print_build_options();
                return 0;