<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #3386: search in body searches raw base64 stream instead of decoding it



#3386: search in body searches raw base64 stream instead of decoding it
------------------------+---------------------------------------------------
 Reporter:  cypherpunk  |       Owner:  mutt-dev
     Type:  defect      |      Status:  new     
 Priority:  major       |   Milestone:          
Component:  mutt        |     Version:  1.5.20  
 Keywords:              |  
------------------------+---------------------------------------------------
 In a Maildir folder that contains a message with the following MIME
 structure:

 User-Agent: Thunderbird 2.0.0.23 (X11/20091103)
 MIME-Version: 1.0
 Content-Type: text/plain; charset="utf-8"
 Content-Transfer-Encoding: base64

 And then a base64 encoded stream, naturally, e.g.

 SSdtIGEgZm9vYXN0aWMgYmFyZGVyIHRoYXQgYWxsb3dzIGhpbXNlbGYgdG8g
 dXNlIHRoZSB3b3JkIGZvbyBxdWl0ZSBhIGxvdC4K

 A body-search (=b or ~b) for a word that does appear in the body (after
 base64-decoding, naturally) does not match that message. Ditto for a
 limit. In the example, e.g. "~b foo". However, a search on a substring of
 the raw base64 stream (e.g. "~b YmFyZGVyI") matches that message.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3386>
Mutt <http://www.mutt.org/>
The Mutt mail user agent