Skip to content

Commit

Permalink
NeoMutt 2017-07-14 (1.8.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
flatcap committed Jul 14, 2017
2 parents 237aa39 + bcea5f8 commit 4dfb371
Show file tree
Hide file tree
Showing 40 changed files with 11,693 additions and 11,444 deletions.
12 changes: 12 additions & 0 deletions ChangeLog.md
@@ -1,3 +1,15 @@
2017-07-14 Richard Russon <rich@flatcap.org>
* Translations
- Update German translation
* Docs
- compile-time output: use two lists
- doxygen: add config file
- doxygen: tidy existing comments
* Build
- fix hcachever.sh script
* Upstream
- Fix crash when $postponed is on another server.

2017-07-07 Richard Russon <rich@flatcap.org>
* Features
- Support Gmail's X-GM-RAW server-side search
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -4,7 +4,7 @@ dnl autoreconf -i
CFLAGS=$CFLAGS
LDFLAGS=$LDFLAGS

AC_INIT([NeoMutt], [20170707], [neomutt-devel@neomutt.org], [mutt], [https://www.neomutt.org])
AC_INIT([NeoMutt], [20170714], [neomutt-devel@neomutt.org], [mutt], [https://www.neomutt.org])
AC_CONFIG_SRCDIR(mutt.h)
AC_CONFIG_AUX_DIR([.build-aux])
AM_INIT_AUTOMAKE
Expand Down
14 changes: 7 additions & 7 deletions doc/manual.xml.head
Expand Up @@ -2898,7 +2898,7 @@ color sidebar_divider color8 default
<tgroup cols="1">
<tbody>
<row>
<entry>neomuttrc-20170707</entry>
<entry>neomuttrc-20170714</entry>
</row>
<row>
<entry>neomuttrc</entry>
Expand Down Expand Up @@ -2942,7 +2942,7 @@ color sidebar_divider color8 default
</thead>
<tbody>
<row>
<entry>/etc/xdg/mutt/neomuttrc-20170707</entry>
<entry>/etc/xdg/mutt/neomuttrc-20170714</entry>
<entry>NeoMutt release version</entry>
</row>
<row>
Expand All @@ -2958,7 +2958,7 @@ color sidebar_divider color8 default
<entry>Note the case of the filename</entry>
</row>
<row>
<entry>/etc/mutt/neomuttrc-20170707</entry>
<entry>/etc/mutt/neomuttrc-20170714</entry>
<entry>NeoMutt release version</entry>
</row>
<row>
Expand All @@ -2974,7 +2974,7 @@ color sidebar_divider color8 default
<entry>Note the case of the filename</entry>
</row>
<row>
<entry>/usr/share/mutt/neomuttrc-20170707</entry>
<entry>/usr/share/mutt/neomuttrc-20170714</entry>
<entry>NeoMutt release version</entry>
</row>
<row>
Expand Down Expand Up @@ -3021,7 +3021,7 @@ color sidebar_divider color8 default
</thead>
<tbody>
<row>
<entry>~/.config/mutt/neomuttrc-20170707</entry>
<entry>~/.config/mutt/neomuttrc-20170714</entry>
<entry>NeoMutt release version</entry>
</row>
<row>
Expand All @@ -3035,7 +3035,7 @@ color sidebar_divider color8 default
<entry>~/.config/mutt/muttrc</entry>
</row>
<row>
<entry>~/.neomuttrc-20170707</entry>
<entry>~/.neomuttrc-20170714</entry>
<entry>NeoMutt release version</entry>
</row>
<row>
Expand All @@ -3049,7 +3049,7 @@ color sidebar_divider color8 default
<entry>~/.muttrc</entry>
</row>
<row>
<entry>~/.mutt/neomuttrc-20170707</entry>
<entry>~/.mutt/neomuttrc-20170714</entry>
<entry>NeoMutt release version</entry>
</row>
<row>
Expand Down
2 changes: 1 addition & 1 deletion doxygen/doxygen.conf
Expand Up @@ -25,7 +25,7 @@ PROJECT_NAME = "NeoMutt"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 20170707
PROJECT_NUMBER = 20170714

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
3 changes: 2 additions & 1 deletion menu.c
Expand Up @@ -934,7 +934,8 @@ static int menu_search(struct Menu *menu, int op)
mutt_str_replace(&SearchBuffers[menu->menu], buf);
searchBuf = SearchBuffers[menu->menu];
}
menu->search_dir = (op == OP_SEARCH || op == OP_SEARCH_NEXT) ? MUTT_SEARCH_DOWN : MUTT_SEARCH_UP;
menu->search_dir =
(op == OP_SEARCH || op == OP_SEARCH_NEXT) ? MUTT_SEARCH_DOWN : MUTT_SEARCH_UP;
}

search_dir = (menu->search_dir == MUTT_SEARCH_UP) ? -1 : 1;
Expand Down
10 changes: 5 additions & 5 deletions muttlib.c
Expand Up @@ -1294,11 +1294,11 @@ char *mutt_apply_replace(char *dbuf, size_t dlen, char *sbuf, struct ReplaceList
void mutt_FormatString(char *dest, /* output buffer */
size_t destlen, /* output buffer len */
size_t col, /* starting column (nonzero when called recursively) */
int cols, /* maximum columns */
const char *src, /* template string */
format_t *callback, /* callback for processing */
unsigned long data, /* callback data */
enum FormatFlag flags) /* callback flags */
int cols, /* maximum columns */
const char *src, /* template string */
format_t *callback, /* callback for processing */
unsigned long data, /* callback data */
enum FormatFlag flags) /* callback flags */
{
char prefix[SHORT_STRING], buf[LONG_STRING], *cp = NULL, *wptr = dest, ch;
char ifstring[SHORT_STRING], elsestring[SHORT_STRING];
Expand Down
10 changes: 6 additions & 4 deletions newsrc.c
Expand Up @@ -814,9 +814,10 @@ void nntp_clear_cache(struct NntpServer *nserv)
* %s = news server name
* %S = url schema
* %u = username */
const char *nntp_format_str(char *dest, size_t destlen, size_t col, int cols, char op,
const char *src, const char *fmt, const char *ifstring,
const char *elsestring, unsigned long data, enum FormatFlag flags)
const char *nntp_format_str(char *dest, size_t destlen, size_t col, int cols,
char op, const char *src, const char *fmt,
const char *ifstring, const char *elsestring,
unsigned long data, enum FormatFlag flags)
{
struct NntpServer *nserv = (struct NntpServer *) data;
struct Account *acct = &nserv->conn->account;
Expand Down Expand Up @@ -1035,7 +1036,8 @@ struct NntpServer *nntp_select_server(char *server, int leave_lock)
if (last >= nntp_data->first_message && last <= nntp_data->last_message)
{
nntp_data->last_cached = last;
mutt_debug(2, "nntp_select_server: %s last_cached=%u\n", nntp_data->group, last);
mutt_debug(2, "nntp_select_server: %s last_cached=%u\n",
nntp_data->group, last);
}
}
mutt_hcache_free(hc, &hdata);
Expand Down
27 changes: 14 additions & 13 deletions pager.c
Expand Up @@ -842,8 +842,8 @@ static void resolve_types(char *buf, char *raw, struct Line *line_info, int n,
{
if (q_classify && line_info[n].quote == NULL)
line_info[n].quote = classify_quote(quote_list, buf + pmatch[0].rm_so,
pmatch[0].rm_eo - pmatch[0].rm_so,
force_redraw, q_level);
pmatch[0].rm_eo - pmatch[0].rm_so,
force_redraw, q_level);
line_info[n].type = MT_COLOR_QUOTED;
}
else
Expand All @@ -858,8 +858,8 @@ static void resolve_types(char *buf, char *raw, struct Line *line_info, int n,
{
if (q_classify && line_info[n].quote == NULL)
line_info[n].quote = classify_quote(quote_list, buf + pmatch[0].rm_so,
pmatch[0].rm_eo - pmatch[0].rm_so,
force_redraw, q_level);
pmatch[0].rm_eo - pmatch[0].rm_so,
force_redraw, q_level);
line_info[n].type = MT_COLOR_QUOTED;
}
}
Expand Down Expand Up @@ -1373,10 +1373,10 @@ static int format_line(struct Line **line_info, int n, unsigned char *buf, int f
* 0 normal exit, line was not displayed
* >0 normal exit, line was displayed
*/
static int display_line(FILE *f, LOFF_T *last_pos, struct Line **line_info, int n,
int *last, int *max, int flags, struct QClass **quote_list,
int *q_level, int *force_redraw, regex_t *search_re,
struct MuttWindow *pager_window)
static int display_line(FILE *f, LOFF_T *last_pos, struct Line **line_info,
int n, int *last, int *max, int flags,
struct QClass **quote_list, int *q_level, int *force_redraw,
regex_t *search_re, struct MuttWindow *pager_window)
{
unsigned char *buf = NULL, *fmt = NULL;
size_t buflen = 0;
Expand Down Expand Up @@ -1424,8 +1424,8 @@ static int display_line(FILE *f, LOFF_T *last_pos, struct Line **line_info, int
goto out;
}

resolve_types((char *) fmt, (char *) buf, *line_info, n, *last, quote_list,
q_level, force_redraw, flags & MUTT_SHOWCOLOR);
resolve_types((char *) fmt, (char *) buf, *line_info, n, *last,
quote_list, q_level, force_redraw, flags & MUTT_SHOWCOLOR);

/* avoid race condition for continuation lines when scrolling up */
for (m = n + 1; m < *last && (*line_info)[m].offset && (*line_info)[m].continuation; m++)
Expand Down Expand Up @@ -1471,7 +1471,8 @@ static int display_line(FILE *f, LOFF_T *last_pos, struct Line **line_info, int

offset = 0;
(*line_info)[n].search_cnt = 0;
while (regexec(search_re, (char *) fmt + offset, 1, pmatch, (offset ? REG_NOTBOL : 0)) == 0)
while (regexec(search_re, (char *) fmt + offset, 1, pmatch,
(offset ? REG_NOTBOL : 0)) == 0)
{
if (++((*line_info)[n].search_cnt) > 1)
safe_realloc(&((*line_info)[n].search),
Expand Down Expand Up @@ -1839,8 +1840,8 @@ static void pager_menu_redraw(struct Menu *pager_menu)
}
i = -1;
j = -1;
while (display_line(rd->fp, &rd->last_pos, &rd->line_info, ++i, &rd->last_line, &rd->max_line,
rd->has_types | rd->search_flag | (rd->flags & MUTT_PAGER_NOWRAP),
while (display_line(rd->fp, &rd->last_pos, &rd->line_info, ++i, &rd->last_line,
&rd->max_line, rd->has_types | rd->search_flag | (rd->flags & MUTT_PAGER_NOWRAP),
&rd->quote_list, &rd->q_level, &rd->force_redraw,
&rd->search_re, rd->pager_window) == 0)
if (!rd->line_info[i].continuation && ++j == rd->lines)
Expand Down
8 changes: 4 additions & 4 deletions pattern.c
Expand Up @@ -1333,17 +1333,17 @@ struct Pattern *mutt_pattern_comp(/* const */ char *s, int flags, struct Buffer
return curlist;
}

static bool perform_and(struct Pattern *pat, enum PatternExecFlag flags, struct Context *ctx,
struct Header *hdr, struct PatternCache *cache)
static bool perform_and(struct Pattern *pat, enum PatternExecFlag flags,
struct Context *ctx, struct Header *hdr, struct PatternCache *cache)
{
for (; pat; pat = pat->next)
if (mutt_pattern_exec(pat, flags, ctx, hdr, cache) <= 0)
return false;
return true;
}

static int perform_or(struct Pattern *pat, enum PatternExecFlag flags, struct Context *ctx,
struct Header *hdr, struct PatternCache *cache)
static int perform_or(struct Pattern *pat, enum PatternExecFlag flags,
struct Context *ctx, struct Header *hdr, struct PatternCache *cache)
{
for (; pat; pat = pat->next)
if (mutt_pattern_exec(pat, flags, ctx, hdr, cache) > 0)
Expand Down

0 comments on commit 4dfb371

Please sign in to comment.