~ubuntu-branches/ubuntu/lucid/bogofilter/lucid-updates

« back to all changes in this revision

Viewing changes to src/tests/t.lexer.eoh

  • Committer: Bazaar Package Importer
  • Author(s): Loïc Minier
  • Date: 2010-04-10 11:08:53 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20100410110853-5w0vep9aa9qqr9lx
Tags: 1.2.1-0ubuntu1
* New upstream bugfix release; LP: #557468.
  - Fixes parsing of the first line of the body in MIME messages;
    LP: #320829.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# This checks if bogofilter/bogolexer will properly MIME decode the
 
4
# first body line. It used to fail up to and including 1.2.0,
 
5
# because the lexer lookahead beyond <INITIAL>\n wasn't decoded.
 
6
 
 
7
. ${srcdir:=.}/t.frame
 
8
 
 
9
# This message contains one body word "SPAM". Check if it's present
 
10
# after scanning.
 
11
cat <<_EOF | $BOGOLEXER -p -C | grep SPAM >/dev/null
 
12
MIME-Version: 1.0
 
13
Content-Transfer-Encoding: quoted-printable
 
14
 
 
15
=53=50=41=4D
 
16
_EOF