diff options
Diffstat (limited to 'src/plugins/abrt-action-mailx.c')
-rw-r--r-- | src/plugins/abrt-action-mailx.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/plugins/abrt-action-mailx.c b/src/plugins/abrt-action-mailx.c index d1b35564..21180854 100644 --- a/src/plugins/abrt-action-mailx.c +++ b/src/plugins/abrt-action-mailx.c @@ -20,8 +20,6 @@ #include "abrtlib.h" #include "parse_options.h" -#define PROGNAME "abrt-action-mailx" - static void exec_and_feed_input(const char* text, char **args) { int pipein[2]; @@ -131,16 +129,14 @@ static void create_and_send_email( int main(int argc, char **argv) { - char *env_verbose = getenv("ABRT_VERBOSE"); - if (env_verbose) - g_verbose = atoi(env_verbose); + abrt_init(argv); const char *dump_dir_name = "."; const char *conf_file = NULL; /* Can't keep these strings/structs static: _() doesn't support that */ const char *program_usage_string = _( - PROGNAME" [-v] -d DIR [-c CONFFILE]\n" + "\b [-v] -d DIR [-c CONFFILE]\n" "\n" "Sends contents of a dump directory DIR via email" ); @@ -158,11 +154,7 @@ int main(int argc, char **argv) }; /*unsigned opts =*/ parse_opts(argc, argv, program_options, program_usage_string); - putenv(xasprintf("ABRT_VERBOSE=%u", g_verbose)); - - char *pfx = getenv("ABRT_PROG_PREFIX"); - if (pfx && string_to_bool(pfx)) - msg_prefix = PROGNAME; + export_abrt_envvars(0); map_string_h *settings = new_map_string(); if (conf_file) |