1 /* 2 * Copyright 2007-2011, 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 */ 7 8 9 #include "MailDaemon.h" 10 11 12 int 13 main(int argc, const char** argv) 14 { 15 bool remakeMIMETypes = false; 16 17 for (int i = 1; i < argc; i++) { 18 if (strcmp(argv[i], "-E") == 0) { 19 if (!BMailSettings().DaemonAutoStarts()) 20 return 0; 21 } 22 if (strcmp(argv[i], "-M") == 0) { 23 remakeMIMETypes = true; 24 } 25 } 26 27 MailDaemonApp app; 28 if (remakeMIMETypes) 29 app.MakeMimeTypes(true); 30 app.Run(); 31 return 0; 32 } 33