Commit a253e62a a253e62ae760dd0489e0b7c5c098eb4110866ee6 by Sergey Poznyakoff

Implemented "set autoprint"

1 parent fa4b22e0
...@@ -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
......