📄 mailinspect.h
字号:
/* * Copyright (C) 2002 Laird Breyer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * Author: Laird Breyer <laird@lbreyer.com> */#include "dbacl.h"typedef long seek_t;typedef u_int32_t line_count_t;typedef u_int32_t email_count_t;typedef u_int16_t rank_t;#define INITIAL_LIST_SIZE 256#define PIPE_BUFLEN 2048#define HEADER_BUFLEN 128#define SORT_INCREASING 1#define SORT_DECREASING -1#define TAGRE_INCLUDE 0#define TAGRE_EXCLUDE 1#define MAX_FORMATS 2#define MAX_SCORES 2/* make sure these options don't interfere with those options defined in dbacl.h which we want to use */#define OPTION_INTERACTIVE 2#define OPTION_REVSORT 6#define OPTION_FORMAT 8#define STATE_TAGGED 2#define STATE_LIMITED 3/* data structures */typedef struct { char from[HEADER_BUFLEN]; char subject[HEADER_BUFLEN];} email_header;typedef struct { seek_t seekpos; char *description[MAX_FORMATS]; weight_t score[MAX_SCORES]; char state;} mbox_item;typedef struct { mbox_item *list; mbox_item **llist; email_header header; email_count_t list_size; email_count_t num_limited; email_count_t num_emails; int sortedby; char *filename; unsigned char index_format; unsigned char score_type;} Emails;typedef struct { int num_rows; int num_cols; bool_t delay_sigwinch; int highlighted; email_count_t first_visible; char *fkey_cmd[10];} display_state;void redraw_current_state();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -