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 */ 7 8 9 #include "MailDaemonApplication.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 MailDaemonApplication app; 27 if (remakeMIMETypes) 28 app.MakeMimeTypes(true); 29 app.Run(); 30 return 0; 31 } 32