Implemented "set autoprint"
Showing
1 changed file
with
6 additions
and
2 deletions
... | @@ -23,7 +23,7 @@ | ... | @@ -23,7 +23,7 @@ |
23 | 23 | ||
24 | int | 24 | int |
25 | mail_delete0 () | 25 | mail_delete0 () |
26 | { | 26 | { |
27 | message_t msg; | 27 | message_t msg; |
28 | attribute_t attr; | 28 | attribute_t attr; |
29 | if (mailbox_get_message (mbox, cursor, &msg) != 0) | 29 | if (mailbox_get_message (mbox, cursor, &msg) != 0) |
... | @@ -31,7 +31,7 @@ mail_delete0 () | ... | @@ -31,7 +31,7 @@ mail_delete0 () |
31 | message_get_attribute (msg, &attr); | 31 | message_get_attribute (msg, &attr); |
32 | attribute_set_deleted (attr); | 32 | attribute_set_deleted (attr); |
33 | return 0; | 33 | return 0; |
34 | } | 34 | } |
35 | 35 | ||
36 | int | 36 | int |
37 | mail_delete (int argc, char **argv) | 37 | mail_delete (int argc, char **argv) |
... | @@ -62,6 +62,10 @@ mail_delete (int argc, char **argv) | ... | @@ -62,6 +62,10 @@ mail_delete (int argc, char **argv) |
62 | 62 | ||
63 | cursor = realcursor; | 63 | cursor = realcursor; |
64 | } | 64 | } |
65 | |||
66 | if (util_find_env("autoprint")->set) | ||
67 | util_do_command("print"); | ||
68 | |||
65 | return rc; | 69 | return rc; |
66 | } | 70 | } |
67 | 71 | ... | ... |
-
Please register or sign in to post a comment