mail: honor columns/screen variables
* mail/util.c (util_command_list): Use util_screen_columns instead of util_getcols. (util_getcols): Don't use COLUMNS. (util_getlines): Don't use LINES. * mail/mail.c: Don't force COLUMNS and LINES (they are normally not exported, so setting them will cause util_getcols and util_getlines to return wrong results). Set variable "columns" from envvar COLUMNS, if set to a numeric value. Set variable "screen" from envvar LINES, if set to a numeric value. * mail/from.c (format_headline): Use util_screen_columns instead of util_getcols. * mail/mailvar.c (mailvar_print,mail_variable): Likewise. * mail/print.c (mail_print_msg): Likewise.
Showing
6 changed files
with
22 additions
and
32 deletions
-
Please register or sign in to post a comment