32 lines
657 B
C++
32 lines
657 B
C++
/*
|
|
* Copyright 2007-2012, Haiku, Inc. All rights reserved.
|
|
* Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved.
|
|
* Copyright 2011, Clemens Zeidler <haiku@clemens-zeidler.de>
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
|
|
|
|
#include "MailDaemonApplication.h"
|
|
|
|
|
|
int
|
|
main(int argc, const char** argv)
|
|
{
|
|
bool remakeMIMETypes = false;
|
|
|
|
for (int i = 1; i < argc; i++) {
|
|
if (strcmp(argv[i], "-E") == 0) {
|
|
if (!BMailSettings().DaemonAutoStarts())
|
|
return 0;
|
|
}
|
|
if (strcmp(argv[i], "-M") == 0)
|
|
remakeMIMETypes = true;
|
|
}
|
|
|
|
MailDaemonApplication app;
|
|
if (remakeMIMETypes)
|
|
app.MakeMimeTypes(true);
|
|
app.Run();
|
|
return 0;
|
|
}
|