From f05781e875ba8179cd5a8b9be4c4f594e440ae2d Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Tue, 3 Oct 2017 12:14:31 +1000 Subject: [PATCH] Fix typo #2 --- src/email.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/email.c b/src/email.c index edc0f2e..dd396eb 100644 --- a/src/email.c +++ b/src/email.c @@ -534,13 +534,13 @@ void list_emails(struct user_record *user) { s_printf("\e[%d;1H", position - start + 3); localtime_r((time_t *)&emails[position + 1]->date, &msg_date); if (!emails[position + 1]->seen) { - if (config.date_style == 1) { + if (conf.date_style == 1) { s_printf(get_string(64), position + 2, emails[position + 1]->subject, emails[position + 1]->from, msg_date.tm_hour, msg_date.tm_min, msg_date.tm_mon + 1, msg_date.tm_mday, msg_date.tm_year - 100); } else { s_printf(get_string(64), position + 2, emails[position + 1]->subject, emails[position + 1]->from, msg_date.tm_hour, msg_date.tm_min, msg_date.tm_mday, msg_date.tm_mon + 1, msg_date.tm_year - 100); } } else { - if (config.date_style == 1) { + if (conf.date_style == 1) { s_printf(get_string(65), position + 2, emails[position + 1]->subject, emails[position + 1]->from, msg_date.tm_hour, msg_date.tm_min, msg_date.tm_mon + 1, msg_date.tm_mday, msg_date.tm_year - 100); } else { s_printf(get_string(65), position + 2, emails[position + 1]->subject, emails[position + 1]->from, msg_date.tm_hour, msg_date.tm_min, msg_date.tm_mday, msg_date.tm_mon + 1, msg_date.tm_year - 100); @@ -549,13 +549,13 @@ void list_emails(struct user_record *user) { s_printf("\e[%d;1H", position - start + 2); localtime_r((time_t *)&emails[position]->date, &msg_date); if (!emails[position]->seen) { - if (config.date_style == 1) { + if (conf.date_style == 1) { s_printf(get_string(192), position + 1, emails[position]->subject, emails[position]->from, msg_date.tm_hour, msg_date.tm_min, msg_date.tm_mon + 1, msg_date.tm_mday, msg_date.tm_year - 100); } else { s_printf(get_string(192), position + 1, emails[position]->subject, emails[position]->from, msg_date.tm_hour, msg_date.tm_min, msg_date.tm_mday, msg_date.tm_mon + 1, msg_date.tm_year - 100); } } else { - if (config.date_style == 1) { + if (conf.date_style == 1) { s_printf(get_string(193), position + 1, emails[position]->subject, emails[position]->from, msg_date.tm_hour, msg_date.tm_min, msg_date.tm_mon + 1, msg_date.tm_mday, msg_date.tm_year - 100); } else { s_printf(get_string(193), position + 1, emails[position]->subject, emails[position]->from, msg_date.tm_hour, msg_date.tm_min, msg_date.tm_mday, msg_date.tm_mon + 1, msg_date.tm_year - 100);