aboutsummaryrefslogtreecommitdiffstats
path: root/spec/fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures')
-rw-r--r--spec/fixtures/files/autoresponse-header.email22
-rw-r--r--spec/fixtures/files/empty-return-path.email21
-rw-r--r--spec/fixtures/files/fake-authority-add-tags.rb4
-rw-r--r--spec/fixtures/files/fake-authority-type-with-field-names.csv8
-rw-r--r--spec/fixtures/files/track-response-exchange-oof-1.email102
-rw-r--r--spec/fixtures/files/track-response-exim-bounce.email67
-rw-r--r--spec/fixtures/files/track-response-generic-oof.email8
-rw-r--r--spec/fixtures/files/track-response-lotus-oof-1.email58
-rw-r--r--spec/fixtures/files/track-response-messageclass-oof.email63
-rw-r--r--spec/fixtures/files/track-response-messagelabs-oof-1.email62
-rw-r--r--spec/fixtures/files/track-response-multipart-report.email113
-rw-r--r--spec/fixtures/users.yml18
12 files changed, 541 insertions, 5 deletions
diff --git a/spec/fixtures/files/autoresponse-header.email b/spec/fixtures/files/autoresponse-header.email
new file mode 100644
index 000000000..ecd292961
--- /dev/null
+++ b/spec/fixtures/files/autoresponse-header.email
@@ -0,0 +1,22 @@
+From: EMAIL_FROM
+To: FOI Person <EMAIL_TO>
+Delivery-date: Fri, 01 Aug 2008 14:35:58 +0100
+Return-path: <me@cheese.com>
+X-Failed-Recipients: enquiries@cheese.com
+Auto-Submitted: auto-replied
+From: Mail Delivery System <Mailer-Daemon@sandwich.com>
+Subject: Mail delivery failed: returning message to sender
+Message-Id: <E1KOunW-000dXv-C6@sandwich.com>
+Date: Fri, 01 Aug 2008 14:35:58 +0100
+
+This message was created automatically by mail delivery software.
+
+A message that you sent could not be delivered to one or more of its
+recipients. This is a permanent error. The following address(es) failed:
+
+ enquiries@cheese.com
+ Unrouteable address
+
+------ This is a copy of the message, including all the headers. ------
+
+Hello \ No newline at end of file
diff --git a/spec/fixtures/files/empty-return-path.email b/spec/fixtures/files/empty-return-path.email
new file mode 100644
index 000000000..b01e96de8
--- /dev/null
+++ b/spec/fixtures/files/empty-return-path.email
@@ -0,0 +1,21 @@
+From: EMAIL_FROM
+To: FOI Person <EMAIL_TO>
+Return-path: <>
+Delivery-date: Fri, 01 Aug 2008 14:35:58 +0100
+X-Failed-Recipients: enquiries@cheese.com
+From: Mail Delivery System <Mailer-Daemon@sandwich.com>
+Subject: Mail delivery failed: returning message to sender
+Message-Id: <E1KOunW-000dXv-C6@sandwich.com>
+Date: Fri, 01 Aug 2008 14:35:58 +0100
+
+This message was created automatically by mail delivery software.
+
+A message that you sent could not be delivered to one or more of its
+recipients. This is a permanent error. The following address(es) failed:
+
+ enquiries@cheese.com
+ Unrouteable address
+
+------ This is a copy of the message, including all the headers. ------
+
+Hello \ No newline at end of file
diff --git a/spec/fixtures/files/fake-authority-add-tags.rb b/spec/fixtures/files/fake-authority-add-tags.rb
new file mode 100644
index 000000000..a5612d87f
--- /dev/null
+++ b/spec/fixtures/files/fake-authority-add-tags.rb
@@ -0,0 +1,4 @@
+#id,request_email,name,tag_string
+,north_west_foi@localhost,North West Fake Authority,aTag
+,scottish_foi@localhost,Scottish Fake Authority,aTag
+,ni_foi@localhost,Fake Authority of Northern Ireland,fake aTag
diff --git a/spec/fixtures/files/fake-authority-type-with-field-names.csv b/spec/fixtures/files/fake-authority-type-with-field-names.csv
index 9e82308fb..a4247dced 100644
--- a/spec/fixtures/files/fake-authority-type-with-field-names.csv
+++ b/spec/fixtures/files/fake-authority-type-with-field-names.csv
@@ -1,4 +1,4 @@
-#id,request_email,name,name.es,home_page
-,north_west_foi@localhost,North West Fake Authority,Autoridad del Nordeste,http://northwest.org
-,scottish_foi@localhost,Scottish Fake Authority,Autoridad Escocesa,http://scottish.org
-,ni_foi@localhost,Fake Authority of Northern Ireland,Autoridad Irlandesa
+#id,request_email,name,name.es,tag_string,home_page
+,north_west_foi@localhost,North West Fake Authority,Autoridad del Nordeste,,http://northwest.org
+,scottish_foi@localhost,Scottish Fake Authority,Autoridad Escocesa,scottish,http://scottish.org
+,ni_foi@localhost,Fake Authority of Northern Ireland,Autoridad Irlandesa,fake aTag
diff --git a/spec/fixtures/files/track-response-exchange-oof-1.email b/spec/fixtures/files/track-response-exchange-oof-1.email
new file mode 100644
index 000000000..6bb696119
--- /dev/null
+++ b/spec/fixtures/files/track-response-exchange-oof-1.email
@@ -0,0 +1,102 @@
+Delivered-To: mysociety.robin@gmail.com
+Received: by 10.216.187.197 with SMTP id y47cs73028wem;
+ Tue, 6 Sep 2011 00:02:08 -0700 (PDT)
+Received: by 10.216.229.167 with SMTP id h39mr1763951weq.57.1315292527401;
+ Tue, 06 Sep 2011 00:02:07 -0700 (PDT)
+Return-Path: <Firstname.Surname@example.com>
+Received: from wildfire.ukcod.org.uk (wildfire.ukcod.org.uk [89.238.145.74])
+ by mx.google.com with ESMTPS id i56si7850683wed.12.2011.09.06.00.02.05
+ (version=TLSv1/SSLv3 cipher=OTHER);
+ Tue, 06 Sep 2011 00:02:06 -0700 (PDT)
+Received-SPF: neutral (google.com: 89.238.145.74 is neither permitted nor denied by domain of Firstname.Surname@example.com) client-ip=89.238.145.74;
+Authentication-Results: mx.google.com; spf=neutral (google.com: 89.238.145.74 is neither permitted nor denied by domain of Firstname.Surname@example.com) smtp.mail=Firstname.Surname@example.com
+Received: from gweuoutb1.linde.com ([94.100.245.173]:15826)
+ by wildfire.ukcod.org.uk with esmtp (Exim 4.69)
+ (envelope-from <Firstname.Surname@example.com>)
+ id 1R0pfT-00074Q-Bb
+ for team@whatdotheyknow.com; Tue, 06 Sep 2011 08:01:59 +0100
+X-IronPort-AV: E=Sophos;i="4.68,337,1312149600";
+ d="scan'208,217";a="16336258"
+X-Header: No Trailer
+Received: from unknown (HELO mlgmuc00mail099.boc.com) ([10.138.224.206])
+ by gweub1.linde.grp with ESMTP; 06 Sep 2011 09:01:48 +0200
+Received: from mlgmuc00mail096.boc.com ([10.138.224.203]) by mlgmuc00mail099.boc.com with Microsoft SMTPSVC(6.0.3790.4675);
+ Tue, 6 Sep 2011 09:02:24 +0200
+Received: from VSUK4EX01.eu.boc.com ([172.18.77.27]) by mlgmuc00mail096.boc.com with Microsoft SMTPSVC(6.0.3790.4675);
+ Tue, 6 Sep 2011 09:01:32 +0200
+Content-class: urn:content-classes:message
+MIME-Version: 1.0
+Content-Type: multipart/alternative;
+ boundary="----_=_NextPart_001_01CC6C62.CEC3EF3C"
+Subject: Out of Office AutoReply: Was the response you got to your FOI request any good?
+X-MimeOLE: Produced By Microsoft Exchange V6.5
+Date: Tue, 6 Sep 2011 08:01:31 +0100
+Message-ID: <E75A6D7A72D76346A4BF6A27672C39AB11BFF525@VSUK4EX01.eu.boc.com>
+X-MS-Has-Attach:
+X-MS-TNEF-Correlator:
+Thread-Topic: Was the response you got to your FOI request any good?
+Thread-Index: AcxsYs6PUz9cAAJDScO38LEWgNj/CQAAAA2I
+From: "Surname,Firstname" <Firstname.Surname@example.com>
+To: "WhatDoTheyKnow" <team@whatdotheyknow.com>
+X-OriginalArrivalTime: 06 Sep 2011 07:01:32.0883 (UTC) FILETIME=[CF626A30:01CC6C62]
+List-Id: Admin Team for What Do They Know <team@whatdotheyknow.com>
+
+This is a multi-part message in MIME format.
+
+------_=_NextPart_001_01CC6C62.CEC3EF3C
+Content-Type: text/plain; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+I am out of the office and have limited access to my emails until Thursday =
+nth Bartember. If you have an urgent query the please telephone me on 1234=
+5678.
+
+
+The information contained in this email and any attachments may be confiden=
+tial and is provided solely for the use of the intended recipient(s). If yo=
+u are not the intended recipient, you are hereby notified that any disclosu=
+re, distribution, or use of this e-mail, its attachments or any information=
+ contained therein is unauthorized and prohibited. If you have received thi=
+s in error, please contact the sender immediately and delete this e-mail an=
+d any attachments.
+
+No responsibility is accepted for any virus or defect that might arise from=
+ opening this e-mail or attachments, whether or not it has been checked by =
+anti-virus software.
+
+------_=_NextPart_001_01CC6C62.CEC3EF3C
+Content-Type: text/html; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso-8859-=
+1">
+<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version 6.5.7654.12">
+<TITLE>Out of Office AutoReply: Was the response you got to your FOI reques=
+t any good?</TITLE>
+</HEAD>
+<BODY>
+<!-- Converted from text/plain format -->
+
+<P><FONT SIZE=3D2>I am out of the office and have limited access to my emai=
+ls until Thursday 8th September.&nbsp; If you have an urgent query the plea=
+se telephone me on 12345678.</FONT></P>
+
+<font face=3D"monospace"><br>
+<br>
+The information contained in this email and any attachments may be confiden=
+tial and is provided solely for the use of the intended recipient(s). If yo=
+u are not the intended recipient, you are hereby notified that any disclosu=
+re, distribution, or use of this e-mail, its attachments or any information=
+ contained therein is unauthorized and prohibited. If you have received thi=
+s in error, please contact the sender immediately and delete this e-mail an=
+d any attachments.<br>
+<br>
+No responsibility is accepted for any virus or defect that might arise from=
+ opening this e-mail or attachments, whether or not it has been checked by =
+anti-virus software.</font></BODY>
+</HTML>
+------_=_NextPart_001_01CC6C62.CEC3EF3C--
+
diff --git a/spec/fixtures/files/track-response-exim-bounce.email b/spec/fixtures/files/track-response-exim-bounce.email
new file mode 100644
index 000000000..8d40380b1
--- /dev/null
+++ b/spec/fixtures/files/track-response-exim-bounce.email
@@ -0,0 +1,67 @@
+Delivered-To: mysociety.robin@gmail.com
+Received: by 10.216.187.197 with SMTP id y47cs98510wem;
+ Tue, 6 Sep 2011 14:22:44 -0700 (PDT)
+Received: by 10.216.203.79 with SMTP id e57mr78207weo.42.1315344164092;
+ Tue, 06 Sep 2011 14:22:44 -0700 (PDT)
+Return-Path: <>
+Received: from wildfire.ukcod.org.uk (wildfire.ukcod.org.uk [89.238.145.74])
+ by mx.google.com with ESMTPS id n64si9483505weq.102.2011.09.06.14.22.42
+ (version=TLSv1/SSLv3 cipher=OTHER);
+ Tue, 06 Sep 2011 14:22:43 -0700 (PDT)
+Received-SPF: pass (google.com: best guess record for domain of wildfire.ukcod.org.uk designates 89.238.145.74 as permitted sender) client-ip=89.238.145.74;
+Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of wildfire.ukcod.org.uk designates 89.238.145.74 as permitted sender) smtp.mail=
+Received: from Debian-exim by wildfire.ukcod.org.uk with local (Exim 4.69)
+ id 1R136L-0003xr-1Q
+ for team@whatdotheyknow.com; Tue, 06 Sep 2011 22:22:37 +0100
+X-Failed-Recipients: user@example.com
+Auto-Submitted: auto-replied
+From: Mail Delivery System <Mailer-Daemon@wildfire.ukcod.org.uk>
+To: team@whatdotheyknow.com
+Subject: Mail delivery failed: returning message to sender
+Message-Id: <E1R136L-0003xr-1Q@wildfire.ukcod.org.uk>
+Date: Tue, 06 Sep 2011 22:22:37 +0100
+List-Id: Admin Team for What Do They Know <team@whatdotheyknow.com>
+
+This message was created automatically by mail delivery software.
+
+A message that you sent could not be delivered to one or more of its
+recipients. This is a permanent error. The following address(es) failed:
+
+ user@example.com
+ Unrouteable address
+
+------ This is a copy of the message, including all the headers. ------
+
+Return-path: <team@whatdotheyknow.com>
+Received: from foi by wildfire.ukcod.org.uk with local (Exim 4.69)
+ (envelope-from <team@whatdotheyknow.com>)
+ id 1R136J-0003xp-Td
+ for user@example.com; Tue, 06 Sep 2011 22:22:36 +0100
+Date: Tue, 6 Sep 2011 22:22:35 +0100
+From: WhatDoTheyKnow <team@whatdotheyknow.com>
+To: Nonexistent User <user@example.com>
+Subject: Your WhatDoTheyKnow email alert
+Mime-Version: 1.0
+Content-Type: text/plain; charset=utf-8
+Precedence: bulk
+Auto-Submitted: auto-generated
+Message-Id: <E1R136J-0003xp-Td@wildfire.ukcod.org.uk>
+
+FOI requests to 'Maritime and Coastguard Agency'
+================================================
+
+-- MCA & HM Coastguard Official Vehicles --
+Maritime and Coastguard Agency sent a response to Peter Smith (12 August 2011)
+ "Peter In response (reference F0000881) to your FOI questions the
+ MCA answer is:- 1. All MCA vehicles are purchased outright. 2. Yes
+ there is a volu..."
+http://www.whatdotheyknow.com/request/mca_hm_coastguard_official_vehic#incoming-201529
+
+
+Alter your subscription
+=======================
+
+Please click on the link below to cancel or alter these emails.
+http://www.whatdotheyknow.com/c/ie4pkpy70dl4b8flsig
+
+-- the WhatDoTheyKnow team
diff --git a/spec/fixtures/files/track-response-generic-oof.email b/spec/fixtures/files/track-response-generic-oof.email
new file mode 100644
index 000000000..bf1e3e8fe
--- /dev/null
+++ b/spec/fixtures/files/track-response-generic-oof.email
@@ -0,0 +1,8 @@
+From: Someone <someone@example.com>
+Subject: Out of Office: Notification blah blah blah
+To: track@whatdotheyknow.com
+Return-Path: <>
+Content-Type: text/plain; charset=utf-8
+
+I am out of the office till the 12th of February, hunting lions in Africa.
+
diff --git a/spec/fixtures/files/track-response-lotus-oof-1.email b/spec/fixtures/files/track-response-lotus-oof-1.email
new file mode 100644
index 000000000..dbe63714d
--- /dev/null
+++ b/spec/fixtures/files/track-response-lotus-oof-1.email
@@ -0,0 +1,58 @@
+Delivered-To: mysociety.robin@gmail.com
+Received: by 10.216.187.197 with SMTP id y47cs137414wem;
+ Wed, 7 Sep 2011 14:02:45 -0700 (PDT)
+Received: by 10.227.179.14 with SMTP id bo14mr1666492wbb.90.1315429363348;
+ Wed, 07 Sep 2011 14:02:43 -0700 (PDT)
+Return-Path: <Arnos.Grove@example.net>
+Received: from wildfire.ukcod.org.uk (wildfire.ukcod.org.uk [89.238.145.74])
+ by mx.google.com with ESMTPS id 2si1547851wbx.79.2011.09.07.14.02.41
+ (version=TLSv1/SSLv3 cipher=OTHER);
+ Wed, 07 Sep 2011 14:02:42 -0700 (PDT)
+Received-SPF: neutral (google.com: 89.238.145.74 is neither permitted nor denied by best guess record for domain of Arnos.Grove@example.net) client-ip=89.238.145.74;
+Authentication-Results: mx.google.com; spf=neutral (google.com: 89.238.145.74 is neither permitted nor denied by best guess record for domain of Arnos.Grove@example.net) smtp.mail=Arnos.Grove@example.net
+Received: from foi by wildfire.ukcod.org.uk with local (Exim 4.69)
+ (envelope-from <Arnos.Grove@example.net>)
+ id 1R1PGV-0008Gu-GX
+ for team@whatdotheyknow.com; Wed, 07 Sep 2011 22:02:35 +0100
+Received: from eu1sys200aog108.obsmtp.com ([207.126.144.125]:54514)
+ by wildfire.ukcod.org.uk with smtp (Exim 4.69)
+ (envelope-from <Arnos.Grove@example.net>)
+ id 1R1PGS-0008Go-Ih
+ for track@whatdotheyknow.com; Wed, 07 Sep 2011 22:02:32 +0100
+Received: from DomG5P.tm-gnet.com ([80.195.120.125]) by eu1sys200aob108.postini.com ([207.126.147.11]) with SMTP
+ ID DSNKTmfb6CEGJQfujkX1ZzzGzMsn6uoI+AGs@postini.com; Wed, 07 Sep 2011 21:02:32 UTC
+Received: from dc3-email-02.tm-gnet.com ([10.145.42.2])
+ by DomG5P.tm-gnet.com (Lotus Domino Release 7.0.3)
+ with ESMTP id 2011090722024075-323511 ;
+ Wed, 7 Sep 2011 22:02:40 +0100
+Subject: Emma McKinney/MAIL/BIR/MG_REG is out of the office
+Auto-Submitted: auto-generated
+From: Arnos.Grove@example.net
+To: track@whatdotheyknow.com
+Message-ID: <OF82EB79DF.C2563724-ON80257904.00739633-80257904.00739633@TrinityMirror.com>
+Date: Wed, 7 Sep 2011 22:02:30 +0100
+MIME-Version: 1.0
+X-MIMETrack: Serialize by Router on DC3-Email-02/GMH(Release 8.5.1FP4|July 25, 2010) at
+ 07/09/2011 22:02:31,
+ Itemize by SMTP Server on DomG5P/GMH(Release 7.0.3|September 26, 2007) at
+ 09/07/2011 22:02:40,
+ Serialize by Router on DomG5P/GMH(Release 7.0.3|September 26, 2007) at 09/07/2011
+ 22:02:41,
+ Serialize complete at 09/07/2011 22:02:41
+Content-type: text/plain; charset=US-ASCII
+List-Id: Admin Team for What Do They Know <team@whatdotheyknow.com>
+
+
+I will be out of the office starting dd/mm/yyyy and will not return until
+dd/mm/yyyy.
+
+If you need to contact anyone urgently while I'm out of the office call
+aaaa bbb cccc or aaaa bbb dddd.
+
+********************
+IMPORTANT NOTICE This email (including any attachments) is meant only for the intended recipient. It may also contain confidential and privileged information. If you are not the intended recipient, any reliance on, use, disclosure, distribution or copying of this email or attachments is strictly prohibited. Please notify the sender immediately by email if you have received this message by mistake and delete the email and all attachments.
+
+Any views or opinions in this email are solely those of the author and do not necessarily represent those of Brickbat Industries PLC or its associated group companies (hereinafter referred to as "BI Group"). BI Group accept no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Although every reasonable effort is made to keep its network free from viruses, BI Group accept no liability for any virus transmitted by this email or any attachments and the recipient should use up-to-date virus checking software. Email to or from this address may be subject to interception or monitoring for operational reasons or for lawful business practices.
+
+Brickbat PLC is the parent company of the Brickbat group of companies and is registered in England No 99999, with its address at Nine Made-up Lane, Arnos Grove.
+********************
diff --git a/spec/fixtures/files/track-response-messageclass-oof.email b/spec/fixtures/files/track-response-messageclass-oof.email
new file mode 100644
index 000000000..ce82b6df0
--- /dev/null
+++ b/spec/fixtures/files/track-response-messageclass-oof.email
@@ -0,0 +1,63 @@
+Delivered-To: mysociety.robin@gmail.com
+Received: by 10.216.187.197 with SMTP id y47cs177522wem;
+ Thu, 8 Sep 2011 14:01:27 -0700 (PDT)
+Received: by 10.216.220.168 with SMTP id o40mr1165141wep.75.1315515686762;
+ Thu, 08 Sep 2011 14:01:26 -0700 (PDT)
+Return-Path: <MAILER-DAEMON@wildfire.ukcod.org.uk>
+Received: from wildfire.ukcod.org.uk (wildfire.ukcod.org.uk [89.238.145.74])
+ by mx.google.com with ESMTPS id k18si4719546wed.16.2011.09.08.14.01.25
+ (version=TLSv1/SSLv3 cipher=OTHER);
+ Thu, 08 Sep 2011 14:01:25 -0700 (PDT)
+Received-SPF: pass (google.com: best guess record for domain of MAILER-DAEMON@wildfire.ukcod.org.uk designates 89.238.145.74 as permitted sender) client-ip=89.238.145.74;
+Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of MAILER-DAEMON@wildfire.ukcod.org.uk designates 89.238.145.74 as permitted sender) smtp.mail=MAILER-DAEMON@wildfire.ukcod.org.uk
+Received: from foi by wildfire.ukcod.org.uk with local (Exim 4.69)
+ (envelope-from <MAILER-DAEMON@wildfire.ukcod.org.uk>)
+ id 1R1lio-0004zB-Fv
+ for team_delivery@whatdotheyknow.com; Thu, 08 Sep 2011 22:01:18 +0100
+Received: from mailproxy2.newsquest.co.uk ([93.174.8.201]:2528)
+ by wildfire.ukcod.org.uk with esmtp (Exim 4.69)
+ id 1R1lin-0004z2-Lk
+ for track@whatdotheyknow.com; Thu, 08 Sep 2011 22:01:17 +0100
+X-IronPort-AV: E=Sophos;i="4.68,352,1312153200";
+ d="scan'208";a="450582625"
+Content-Type: multipart/mixed; boundary="===============1667734580=="
+MIME-Version: 1.0
+Received: from sx-mailtraq.se.ad.newsquest.co.uk (sx-mailtraq.se.ad.newsquest.co.uk [10.50.6.12])
+ by nqsussex.co.uk with ESMTP (Mailtraq/2.12.0.2278) id NQSSF0865193
+ for track@whatdotheyknow.com; Thu, 08 Sep 2011 22:01:04 +0100
+From: "bjarne.stroustrup" <bjarne.stroustrup@example.co.uk>
+To: track@whatdotheyknow.com
+Date: Thu, 08 Sep 2011 22:01:01 +0100
+Message-ID: <THRGF086ADB9@example.co.uk>
+Subject: Automatic Response
+X-Hops: 1
+X-POST-MessageClass: 9; Autoresponder
+
+--===============1667734580==
+MIME-Version: 1.0
+Content-Type: text/plain; charset=""
+
+I am out of the office until Tuesday, January 20. If your email is
+urgent please resend it to news@example.co.uk.
+Thanks very much
+Boris
+
+--===============1667734580==
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: quoted-printable
+Content-Disposition: inline
+
+This email has been scanned for viruses and other threats using Newsquest's=
+ Ironport email filters.
+
+This document is private and confidential.
+All property, copyright and other rights in it and its contents belong to
+ewsquest Media Group Limited.
+It must not be read, copied, disclosed or otherwise used without Newsquest=
+=E2=80=99s authorisation. Newsquest may exercise its legal rights and remed=
+ies in the event of any such unauthorised use.
+
+
+--===============1667734580==--
+
diff --git a/spec/fixtures/files/track-response-messagelabs-oof-1.email b/spec/fixtures/files/track-response-messagelabs-oof-1.email
new file mode 100644
index 000000000..7cd5d6b8d
--- /dev/null
+++ b/spec/fixtures/files/track-response-messagelabs-oof-1.email
@@ -0,0 +1,62 @@
+Delivered-To: mysociety.robin@gmail.com
+Received: by 10.216.187.197 with SMTP id y47cs96363wem;
+ Tue, 6 Sep 2011 13:24:49 -0700 (PDT)
+Received: by 10.216.229.200 with SMTP id h50mr234738weq.32.1315340689299;
+ Tue, 06 Sep 2011 13:24:49 -0700 (PDT)
+Return-Path: <rick.rollington@parliament.uk>
+Received: from majestic.ukcod.org.uk (majestic.ukcod.org.uk [89.238.145.68])
+ by mx.google.com with ESMTPS id j13si9391756wed.109.2011.09.06.13.24.48
+ (version=TLSv1/SSLv3 cipher=OTHER);
+ Tue, 06 Sep 2011 13:24:49 -0700 (PDT)
+Received-SPF: pass (google.com: domain of rick.rollington@parliament.uk designates 89.238.145.68 as permitted sender) client-ip=89.238.145.68;
+Authentication-Results: mx.google.com; spf=pass (google.com: domain of rick.rollington@parliament.uk designates 89.238.145.68 as permitted sender) smtp.mail=rick.rollington@parliament.uk
+Received: from mail82.messagelabs.com ([195.245.231.67]:4996)
+ by majestic.ukcod.org.uk with esmtp (Exim 4.72)
+ (envelope-from <rick.rollington@parliament.uk>)
+ id 1R12CI-000465-Gx
+ for team@whatdotheyknow.com; Tue, 06 Sep 2011 21:24:42 +0100
+X-Env-Sender: rick.rollington@parliament.uk
+X-Msg-Ref: server-4.tower-82.messagelabs.com!1315340670!59450288!1
+X-Originating-IP: [194.60.38.7]
+X-StarScan-Version: 6.3.6; banners=-,-,-
+X-VirusChecked: Checked
+Received: (qmail 4246 invoked from network); 6 Sep 2011 20:24:31 -0000
+Received: from hpux13x.parliament.uk (HELO hpux13x.parliament.uk) (194.60.38.7)
+ by server-4.tower-82.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 6 Sep 2011 20:24:31 -0000
+Received: from MMEH001.parliament.uk (mmeh001.parliament.uk [10.100.70.11])
+ by hpux13x.parliament.uk with ESMTP id p86KOKNw039771
+ for <team@whatdotheyknow.com>; Tue, 6 Sep 2011 21:24:20 +0100 (BST)
+Received: from MMEM001.parliament.uk ([169.254.1.45]) by MMEH001.parliament.uk
+ ([10.100.70.11]) with mapi; Tue, 6 Sep 2011 21:24:20 +0100
+From: "ROLLINGTON, Rick" <rick.rollington@parliament.uk>
+To: WhatDoTheyKnow <team@whatdotheyknow.com>
+Date: Tue, 6 Sep 2011 21:24:20 +0100
+Subject: Out of Office
+Thread-Topic: Out of Office
+Thread-Index: Acxs0vWVKlHifbrXTBmxr7r0Rh9bhwAAAAGd
+Message-ID: <93A0DC80C8953B4B88DB2726AE921E264E8DE93980@MMEM001.parliament.uk>
+Accept-Language: en-US, en-GB
+Content-Language: en-US
+X-MS-Has-Attach:
+X-MS-TNEF-Correlator:
+acceptlanguage: en-US, en-GB
+Content-Type: text/plain; charset="us-ascii"
+Content-Transfer-Encoding: quoted-printable
+MIME-Version: 1.0
+List-Id: Admin Team for What Do They Know <team@whatdotheyknow.com>
+
+Thank you for your email.
+
+I will be out of the office between xnd August and yth September.
+
+For urgent enquiries please email Paul the Pony at, paul.the.pony@parliame=
+nt.uk
+
+
+________________________________
+UK Parliament Disclaimer:
+This e-mail is confidential to the intended recipient. If you have received=
+ it in error, please notify the sender and delete it from your system. Any =
+unauthorised use, disclosure, or copying is not permitted. This e-mail has =
+been checked for viruses, but no liability is accepted for any damage cause=
+d by any virus transmitted by this e-mail. \ No newline at end of file
diff --git a/spec/fixtures/files/track-response-multipart-report.email b/spec/fixtures/files/track-response-multipart-report.email
new file mode 100644
index 000000000..4f8e6d86b
--- /dev/null
+++ b/spec/fixtures/files/track-response-multipart-report.email
@@ -0,0 +1,113 @@
+Delivered-To: mysociety.robin@gmail.com
+Received: by 10.216.187.197 with SMTP id y47cs96752wem;
+ Tue, 6 Sep 2011 13:37:26 -0700 (PDT)
+Received: by 10.216.212.37 with SMTP id x37mr3361871weo.35.1315341445852;
+ Tue, 06 Sep 2011 13:37:25 -0700 (PDT)
+Return-Path: <>
+Received: from wildfire.ukcod.org.uk (wildfire.ukcod.org.uk [89.238.145.74])
+ by mx.google.com with ESMTPS id h49si1800318wed.40.2011.09.06.13.37.25
+ (version=TLSv1/SSLv3 cipher=OTHER);
+ Tue, 06 Sep 2011 13:37:25 -0700 (PDT)
+Received-SPF: pass (google.com: best guess record for domain of wildfire.ukcod.org.uk designates 89.238.145.74 as permitted sender) client-ip=89.238.145.74;
+Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of wildfire.ukcod.org.uk designates 89.238.145.74 as permitted sender) smtp.mail=
+Received: from cluster-a.mailcontrol.com ([85.115.52.190]:43258)
+ by wildfire.ukcod.org.uk with esmtp (Exim 4.69)
+ id 1R12OV-0003KQ-9c
+ for team@whatdotheyknow.com; Tue, 06 Sep 2011 21:37:19 +0100
+Received: from mail.example.com ([62.6.240.178])
+ by rly22a.srv.mailcontrol.com (MailControl) with ESMTP id p86KbIZV025877
+ (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO)
+ for <team@whatdotheyknow.com>; Tue, 6 Sep 2011 21:37:18 +0100
+Received: from MX05.example.com (10.100.14.57) by GCEX534.PHSGROUP.local
+ (10.100.21.78) with Microsoft SMTP Server id 14.1.270.1; Tue, 6 Sep 2011
+ 21:38:52 +0100
+From: <postmaster@xyz.local>
+To: <team@whatdotheyknow.com>
+Date: Tue, 6 Sep 2011 21:37:13 +0100
+MIME-Version: 1.0
+Content-Type: multipart/report; report-type=delivery-status;
+ boundary="9B095B5ADSN=_01CC68D9CD29F1E300015B60MX05.example.com"
+X-DSNContext: 7ce717b1 - 1148 - 00000002 - 00000000
+Message-ID: <DEU8FnRwh00000d1b@MX05.example.com>
+Subject: Delivery Status Notification (Failure)
+X-Scanned-By: MailControl A-12-01-02 (www.mailcontrol.com) on 10.65.0.132
+List-Id: Admin Team for What Do They Know <team@whatdotheyknow.com>
+
+--9B095B5ADSN=_01CC68D9CD29F1E300015B60MX05.example.com
+Content-Type: text/plain; charset="unicode-1-1-utf-7"
+
+This is an automatically generated Delivery Status Notification.
+
+Delivery to the following recipients failed.
+
+ FailedUser@example.com
+
+
+
+
+--9B095B5ADSN=_01CC68D9CD29F1E300015B60MX05.example.com
+Content-Type: message/delivery-status
+
+Reporting-MTA: dns;MX05.example.com
+Received-From-MTA: dns;MX04.example.com
+Arrival-Date: Tue, 6 Sep 2011 21:37:13 +0100
+
+Final-Recipient: rfc822;FailedUser@example.com
+Action: failed
+Status: 5.2.2
+X-Display-Name: Failed User
+
+
+--9B095B5ADSN=_01CC68D9CD29F1E300015B60MX05.example.com
+Content-Type: message/rfc822
+
+Received: from MX04.example.com ([10.100.14.56]) by MX05.example.com with
+ Microsoft SMTPSVC(5.0.2195.6713); Tue, 6 Sep 2011 21:37:13 +0100
+Received: from DCEX553.example.com ([10.211.10.27]) by MX04.example.com with
+ Microsoft SMTPSVC(5.0.2195.6713); Tue, 6 Sep 2011 21:37:13 +0100
+Received: from cluster-a.mailcontrol.com (85.115.52.190) by mail.example.com
+ (10.211.10.27) with Microsoft SMTP Server id 14.1.270.1; Tue, 6 Sep 2011
+ 20:36:49 +0100
+Received: from wildfire.ukcod.org.uk (wildfire.ukcod.org.uk [89.238.145.74])
+ by rly01a.srv.mailcontrol.com (MailControl) with ESMTP id p86KbAZN016792
+ (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for
+ <faileduser@example.com>; Tue, 6 Sep 2011 21:37:11 +0100
+Received: from foi by wildfire.ukcod.org.uk with local (Exim 4.69)
+ (envelope-from <team@whatdotheyknow.com>) id 1R12OL-0003K9-UE for
+ faileduser@example.com; Tue, 06 Sep 2011 21:37:10 +0100
+Date: Tue, 6 Sep 2011 21:37:09 +0100
+From: WhatDoTheyKnow <team@whatdotheyknow.com>
+To: Failed <faileduser@example.com>
+Subject: Your WhatDoTheyKnow email alert
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Precedence: bulk
+Auto-Submitted: auto-generated
+Message-ID: <E1R12OL-0003K9-UE@wildfire.ukcod.org.uk>
+X-Mailcontrol-Inbound: 7DN0MnCsYCrl5jj2!rZ4BuxxWQ2q0l7t3Lrex4V7ScCE2eoC2RNzHw==
+X-Spam-Score: -0.857
+X-Scanned-By: MailControl A-12-01-02 (www.mailcontrol.com) on 10.65.0.111
+Return-Path: team@whatdotheyknow.com
+X-OriginalArrivalTime: 06 Sep 2011 20:37:13.0070 (UTC) FILETIME=[C20250E0:01CC6CD4]
+
+Requests or responses matching 'bottled water cooler'
+=====================================================
+
+-- HS2 meetings - Agendas and Minutes --
+Warwickshire County Council sent a response to Richard Jones (21 July 2011)
+ "Dear Mr Jones FREEDOM OF INFORMATION ACT 2000 - INFORMATION
+ REQUEST Your request for information has now been considered. The
+ information you have..."
+http://www.whatdotheyknow.com/request/hs2_meetings_agendas_and_minutes_2#incoming-195748
+
+
+Alter your subscription
+=======================
+
+Please click on the link below to cancel or alter these emails.
+http://www.whatdotheyknow.com/c/f76ffwifzlo5sk4egr3
+
+-- the WhatDoTheyKnow team
+
+
+--9B095B5ADSN=_01CC68D9CD29F1E300015B60MX05.example.com-- \ No newline at end of file
diff --git a/spec/fixtures/users.yml b/spec/fixtures/users.yml
index 2485c95a0..16ffec034 100644
--- a/spec/fixtures/users.yml
+++ b/spec/fixtures/users.yml
@@ -10,6 +10,7 @@ bob_smith_user:
email_confirmed: true
admin_level: 'none'
ban_text: ''
+ locale: 'en'
about_me: 'I like making requests about fancy dogs and naughty chickens and stuff.'
silly_name_user:
id: "2"
@@ -20,9 +21,10 @@ silly_name_user:
hashed_password: 6b7cd45a5f35fd83febc0452a799530398bfb6e8 # jonespassword
updated_at: 2007-11-01 10:39:15.491593
created_at: 2007-11-01 10:39:15.491593
- email_confirmed: false
+ email_confirmed: true
admin_level: 'none'
ban_text: ''
+ locale: 'en'
about_me: ''
admin_user:
id: "3"
@@ -36,4 +38,18 @@ admin_user:
email_confirmed: false
admin_level: 'super'
ban_text: ''
+ locale: ''
+ about_me: ''
+unconfirmed_user:
+ id: "4"
+ name: "Unconfirmed"
+ url_name: unconfirmed
+ email: unconfirmed@localhost
+ salt: "-6116981980.392287733335677"
+ hashed_password: 6b7cd45a5f35fd83febc0452a799530398bfb6e8 # jonespassword
+ updated_at: 2007-11-01 10:39:15.491593
+ created_at: 2007-11-01 10:39:15.491593
+ email_confirmed: false
+ admin_level: 'none'
+ ban_text: ''
about_me: ''