Do not handle '%name' separately: mailbox_open_default now does it.
Showing
1 changed file
with
1 additions
and
11 deletions
... | @@ -51,21 +51,11 @@ mail_file (int argc, char **argv) | ... | @@ -51,21 +51,11 @@ mail_file (int argc, char **argv) |
51 | 51 | ||
52 | switch (argv[1][0]) | 52 | switch (argv[1][0]) |
53 | { | 53 | { |
54 | case '%': | ||
55 | if (argv[1][1] == 0) | ||
56 | name = NULL; /* our system mailbox */ | ||
57 | else | ||
58 | { | ||
59 | util_error("%%user not supported"); | ||
60 | return 1; | ||
61 | } | ||
62 | break; | ||
63 | |||
64 | case '#': | 54 | case '#': |
65 | if (!prev_name) | 55 | if (!prev_name) |
66 | { | 56 | { |
67 | util_error("No previous file"); | 57 | util_error("No previous file"); |
68 | return 1; | 58 | return 1; |
69 | } | 59 | } |
70 | name = prev_name; | 60 | name = prev_name; |
71 | break; | 61 | break; | ... | ... |
-
Please register or sign in to post a comment