Make UEFI boot-platform build again
[haiku.git] / src / servers / mail / main.cpp
blob1a2e956efd1135ee9612c477f9129bd2444a1d78
1 /*
2 * Copyright 2007-2012, Haiku, Inc. All rights reserved.
3 * Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved.
4 * Copyright 2011, Clemens Zeidler <haiku@clemens-zeidler.de>
5 * Distributed under the terms of the MIT License.
6 */
9 #include "MailDaemonApplication.h"
12 int
13 main(int argc, const char** argv)
15 bool remakeMIMETypes = false;
17 for (int i = 1; i < argc; i++) {
18 if (strcmp(argv[i], "-E") == 0) {
19 if (!BMailSettings().DaemonAutoStarts())
20 return 0;
22 if (strcmp(argv[i], "-M") == 0)
23 remakeMIMETypes = true;
26 MailDaemonApplication app;
27 if (remakeMIMETypes)
28 app.MakeMimeTypes(true);
29 app.Run();
30 return 0;