From: Lars Magne Ingebrigtsen Date: Tue, 7 Dec 2010 20:24:15 +0000 (+0100) Subject: Tweak VANISHED regexp to avoid regexp overflow, possibly. X-Git-Url: https://cgit.sxemacs.org/?p=gnus;a=commitdiff_plain;h=d2a35abc94e599669b5081ed429f92a94e255399 Tweak VANISHED regexp to avoid regexp overflow, possibly. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ff627bfae..0328e10c7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-12-07 Lars Magne Ingebrigtsen + * nnimap.el (nnimap-parse-flags): Tweak VANISHED regexp to avoid regexp + overflow, possibly. + * shr.el (shr-tag-table-1): Use bg/gfcolor specs on tables. (shr-render-td): Handle td style="" better. (shr-tag-table): Use the color from the style sheet. diff --git a/lisp/nnimap.el b/lisp/nnimap.el index c7d61399d..fb562a3d4 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -1384,7 +1384,7 @@ textual parts.") (goto-char start) (setq vanished (and (eq flag-sequence 'qresync) - (re-search-forward "VANISHED.* \\([0-9:,]+\\)" + (re-search-forward "VANISHED .* \\([0-9:,]+\\)" (or end (point-min)) t) (match-string 1))) (goto-char start)