Commit a253e62a a253e62ae760dd0489e0b7c5c098eb4110866ee6 by Sergey Poznyakoff

Implemented "set autoprint"

1 parent fa4b22e0
......@@ -23,7 +23,7 @@
int
mail_delete0 ()
{
{
message_t msg;
attribute_t attr;
if (mailbox_get_message (mbox, cursor, &msg) != 0)
......@@ -31,7 +31,7 @@ mail_delete0 ()
message_get_attribute (msg, &attr);
attribute_set_deleted (attr);
return 0;
}
}
int
mail_delete (int argc, char **argv)
......@@ -62,6 +62,10 @@ mail_delete (int argc, char **argv)
cursor = realcursor;
}
if (util_find_env("autoprint")->set)
util_do_command("print");
return rc;
}
......