Commit 8594f053 8594f053df8ed4de9735f40355fd5608eab1cfb9 by Sergey Poznyakoff

Bugfix.

* mail/mail.c (parse_opt): Fix handling of the --user option.
1 parent 9d8856ed
...@@ -183,6 +183,8 @@ parse_opt (int key, char *arg, struct argp_state *state) ...@@ -183,6 +183,8 @@ parse_opt (int key, char *arg, struct argp_state *state)
183 } 183 }
184 else if (args->argc || (args->hint & HINT_SEND_MODE)) 184 else if (args->argc || (args->hint & HINT_SEND_MODE))
185 util_cache_command (&command_list, "setq mode=send"); 185 util_cache_command (&command_list, "setq mode=send");
186 else if (args->user)
187 asprintf (&args->file, "%%%s", args->user);
186 break; 188 break;
187 189
188 default: 190 default:
......