summaryrefslogtreecommitdiffstats
path: root/src/plugins/abrt-action-mailx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/abrt-action-mailx.c')
-rw-r--r--src/plugins/abrt-action-mailx.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/plugins/abrt-action-mailx.c b/src/plugins/abrt-action-mailx.c
index f9e82b04..dcea685b 100644
--- a/src/plugins/abrt-action-mailx.c
+++ b/src/plugins/abrt-action-mailx.c
@@ -134,7 +134,7 @@ int main(int argc, char **argv)
const char *program_usage_string = _(
PROGNAME" [-v] -d DIR [-c CONFFILE]\n"
"\n"
- "Upload compressed tarball of crash dump"
+ "Sends compressed tarball of dump directory DIR via email"
);
enum {
OPT_v = 1 << 0,
@@ -144,19 +144,17 @@ int main(int argc, char **argv)
/* Keep enum above and order of options below in sync! */
struct options program_options[] = {
OPT__VERBOSE(&g_verbose),
- OPT_STRING('d', NULL, &dump_dir_name, "DIR" , _("Crash dump directory")),
+ OPT_STRING('d', NULL, &dump_dir_name, "DIR" , _("Dump directory")),
OPT_STRING('c', NULL, &conf_file , "CONFFILE", _("Config file")),
OPT_END()
};
/*unsigned opts =*/ parse_opts(argc, argv, program_options, program_usage_string);
putenv(xasprintf("ABRT_VERBOSE=%u", g_verbose));
- //msg_prefix = PROGNAME;
- //if (opts & OPT_s)
- //{
- // openlog(msg_prefix, 0, LOG_DAEMON);
- // logmode = LOGMODE_SYSLOG;
- //}
+
+ char *pfx = getenv("ABRT_PROG_PREFIX");
+ if (pfx && string_to_bool(pfx))
+ msg_prefix = PROGNAME;
map_string_h *settings = new_map_string();
if (conf_file)