@@ -38,7 +38,9 @@ decltype(system_services_get_user_ids) system_services_get_user_ids;
3838std::shared_ptr<CONFIG_FILE> g_config_file;
3939static char *g_username;
4040static unsigned int g_export_mode = EXPORT_MAIL;
41+ static int g_allday_mode = -1 ;
4142static constexpr HXoption g_options_table[] = {
43+ {nullptr , ' Y' , HXTYPE_INT, &g_allday_mode, nullptr , nullptr , 0 , " Allday emission mode (default=-1, YMDHMS=0, YMD=1)" },
4244 {nullptr , ' u' , HXTYPE_STRING, &g_username, nullptr , nullptr , 0 , " Username of store to import to" , " EMAILADDR" },
4345 {" ical" , 0 , HXTYPE_VAL, &g_export_mode, nullptr , nullptr , EXPORT_ICAL, " Export as calendar object" },
4446 {" mail" , 0 , HXTYPE_VAL, &g_export_mode, nullptr , nullptr , EXPORT_MAIL, " Export as RFC5322 mail" },
@@ -100,7 +102,8 @@ int main(int argc, const char **argv) try
100102 terse_help ();
101103 return EXIT_FAILURE;
102104 }
103-
105+ if (g_allday_mode >= 0 )
106+ g_oxcical_allday_ymd = g_allday_mode;
104107 g_config_file = config_file_prg (nullptr , " midb.cfg" ,
105108 exm2eml_cfg_defaults);
106109 if (g_config_file == nullptr ) {
0 commit comments