summaryrefslogtreecommitdiff
path: root/pith/mailindx.h
diff options
context:
space:
mode:
authorEduardo Chappa <echappa@gmx.com>2013-02-03 00:59:38 -0700
committerEduardo Chappa <echappa@gmx.com>2013-02-03 00:59:38 -0700
commit094ca96844842928810f14844413109fc6cdd890 (patch)
treee60efbb980f38ba9308ccb4fb2b77b87bbc115f3 /pith/mailindx.h
downloadalpine-094ca96844842928810f14844413109fc6cdd890.tar.xz
Initial Alpine Version
Diffstat (limited to 'pith/mailindx.h')
-rw-r--r--pith/mailindx.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/pith/mailindx.h b/pith/mailindx.h
new file mode 100644
index 00000000..4c45268c
--- /dev/null
+++ b/pith/mailindx.h
@@ -0,0 +1,60 @@
+/*
+ * $Id: mailindx.h 925 2008-02-06 02:03:01Z hubert@u.washington.edu $
+ *
+ * ========================================================================
+ * Copyright 2006-2008 University of Washington
+ * Copyright 2013 Eduardo Chappa
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * ========================================================================
+ */
+
+#ifndef PITH_MAILINDX_INCLUDED
+#define PITH_MAILINDX_INCLUDED
+
+
+#include "../pith/indxtype.h"
+#include "../pith/msgno.h"
+#include "../pith/state.h"
+#include "../pith/pattern.h"
+#include "../pith/flag.h"
+
+
+extern ICE_S *(*format_index_line)(INDEXDATA_S *);
+extern void (*setup_header_widths)(MAILSTREAM *);
+
+
+/* exported prototypes */
+int msgline_hidden(MAILSTREAM *, MSGNO_S *, long, int);
+void adjust_cur_to_visible(MAILSTREAM *, MSGNO_S *);
+unsigned long line_hash(char *);
+void init_index_format(char *, INDEX_COL_S **);
+void free_index_format(INDEX_COL_S **);
+void reset_index_format(void);
+INDEX_PARSE_T *itoktype(char *, int);
+char *prepend_keyword_subject(MAILSTREAM *, long, char *, SubjKW, IELEM_S **, char *);
+int get_index_line_color(MAILSTREAM *, SEARCHSET *, PAT_STATE **, COLOR_PAIR **);
+void setup_for_index_index_screen(void);
+void setup_for_thread_index_screen(void);
+INDEX_PARSE_T *itoken(int);
+void load_overview(MAILSTREAM *, unsigned long, OVERVIEW *, imapuid_t);
+ICE_S *build_header_work(struct pine *, MAILSTREAM *, MSGNO_S *, long, long, int, int *);
+char *simple_index_line(char *, size_t, ICE_S *, long);
+int resent_to_us(INDEXDATA_S *);
+int parsed_resent_to_us(char *);
+ADDRESS *fetch_cc(INDEXDATA_S *);
+void index_data_env(INDEXDATA_S *, ENVELOPE *);
+void date_str(char *, IndexColType, int, char *, size_t, int);
+ADDRESS *fetch_to(INDEXDATA_S *);
+char *get_fieldval(INDEXDATA_S *, HEADER_TOK_S *);
+long scorevalfrommsg(MAILSTREAM *, MsgNo, HEADER_TOK_S *, int);
+HEADER_TOK_S *new_hdrtok(char *);
+void free_hdrtok(HEADER_TOK_S **);
+
+
+#endif /* PITH_MAILINDX_INCLUDED */