From d13dd5bdfde4377e59641e61fd107a194c98cf2d Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Wed, 8 Jul 2015 12:24:46 +0100 Subject: [PATCH] MDL-50790 messageinbound: fixture for gmail --- lib/tests/fixtures/messageinbound/gmail.test | 148 +++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 lib/tests/fixtures/messageinbound/gmail.test diff --git a/lib/tests/fixtures/messageinbound/gmail.test b/lib/tests/fixtures/messageinbound/gmail.test new file mode 100644 index 00000000000..a3356a8a28f --- /dev/null +++ b/lib/tests/fixtures/messageinbound/gmail.test @@ -0,0 +1,148 @@ +----CLIENT---- +Gmail +----EXPECTEDPLAIN---- +This is a test response +----EXPECTEDHTML---- +This is a test response +----FULLSOURCE---- +Delivered-To: nxtmorg+aaaaaaaaaaiaaaaaaaaaagaaaaaaaaahbfpyofgjbkpkwpeh@gmail.com +Received: by 10.202.174.212 with SMTP id x203csp2773063oie; + Wed, 8 Jul 2015 03:45:49 -0700 (PDT) +X-Received: by 10.194.2.161 with SMTP id 1mr17755340wjv.143.1436352348859; + Wed, 08 Jul 2015 03:45:48 -0700 (PDT) +Return-Path: +Received: from mail-wg0-x22d.google.com (mail-wg0-x22d.google.com. [2a00:1450:400c:c00::22d]) + by mx.google.com with ESMTPS id hf10si1873428wib.2.2015.07.08.03.45.48 + for + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Wed, 08 Jul 2015 03:45:48 -0700 (PDT) +Received-SPF: pass (google.com: domain of dan@moodle.com designates 2a00:1450:400c:c00::22d as permitted sender) client-ip=2a00:1450:400c:c00::22d; +Authentication-Results: mx.google.com; + spf=pass (google.com: domain of dan@moodle.com designates 2a00:1450:400c:c00::22d as permitted sender) smtp.mail=dan@moodle.com; + dkim=pass header.i=@moodle.com; + dmarc=pass (p=QUARANTINE dis=NONE) header.from=moodle.com +Received: by mail-wg0-x22d.google.com with SMTP id x7so186242655wgj.2 + for ; Wed, 08 Jul 2015 03:45:48 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=moodle.com; s=google; + h=mime-version:references:in-reply-to:from:date:message-id:subject:to + :content-type; + bh=jBsUlzIsNVo/9X0XRyhQfQKdI8jqA6v/XM5yi08CpW4=; + b=oyncjzbEuLnDDSZ4v7AbfMV8rlNClygbSabhxlhdgiUsZEORCGL83ZmjMencwF/MLm + a20Eh1Tho/5gGU3ZsacTgV8phNAp0yBl59mzZUVF4wabIQBMbQQlyBJsqn7RbIRky+DA + FpneKKLreS29B0BMr+95VGSJ/XRohQZSjw7nY= +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:mime-version:references:in-reply-to:from:date + :message-id:subject:to:content-type; + bh=jBsUlzIsNVo/9X0XRyhQfQKdI8jqA6v/XM5yi08CpW4=; + b=GXbTXInSb7VhTCe7uIdixAgUNh0tusJkfgc606jk8ZD5xy89IjLcCDaKBY4wPT/xgH + KqELVFnwUsAJRBv0ZiflgzvUQ7SC2znVbkfQK8idswgc7p3iaWxXLT/m3HwVrnn0Aord + uRlEW1eBraBdOD/as24aCbzBGFPjFDkynfK0dIyCVmXN05p8QE09bYqkOVSh3lDxeZfX + AIDjlfC8DmvKZQN68Con86SyzQ6epzs2A3yrQ3oMYxG5yAHFqoXbmQPZLyjWMqx0uJ4L + lRnq7wSSLsSA8a9q8RBO8JltmZHa1AShqMkHghh/RISISXyriFezN71F7lt303fDJLvw + 5Z9g== +X-Gm-Message-State: ALoCoQk4VlKEKkaqy6MLYzq2ZN82v3a64TLQZJo0b26DUbmmS8UDpT8tstQh2kodndsV2GgB/bpT +X-Received: by 10.180.102.74 with SMTP id fm10mr112402988wib.25.1436352348167; + Wed, 08 Jul 2015 03:45:48 -0700 (PDT) +MIME-Version: 1.0 +References: <665442d32a4d85d3ac239d88a146ffdf9becf154c78bf8394bf3bfdbb4c312f6@dan.moodle.local> + +In-Reply-To: +From: Dan Poltawski +Date: Wed, 08 Jul 2015 10:45:38 +0000 +Message-ID: +Subject: Re: Using Moodle Test: Re: A test +To: nxtmorg+AAAAAAAAAAIAAAAAAAAAAgAAAAAAAAAhBfpyofgjbKpKWPeH@gmail.com +Content-Type: multipart/alternative; boundary=f46d0444812b7c332b051a5ad7d1 + +--f46d0444812b7c332b051a5ad7d1 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: quoted-printable + +This is a test response + +On Wed, Jul 8, 2015 at 11:45 AM Admin User wrote: + +> Using Moodle Test = + =C2=BB +> Forums =C2=BB = +Discussion +> forum =C2=BB A t= +est +> +> [image: Picture of Admin User] +> +> Re: A test +> by Admin User +> - Wednesday, 8 July 2015, 11:45 am +> +> +> test 123 +> Show parent +> = +| +> Reply +> See this post in context +> +> ------------------------------ +> Unsubscribe from this forum +> Unsubscrib= +e +> from this discussion +> Uns= +ubscribe +> from all forums +> Change your +> forum digest preferences +> +> +> You can reply to this via email. +> + +--f46d0444812b7c332b051a5ad7d1 +Content-Type: text/html; charset=UTF-8 +Content-Transfer-Encoding: quoted-printable + +
This is a test response

On Wed, Jul 8, 2015 at 11:45 AM Admin User <nxtmorg@gmail.com> wrote:
+
+ + + +

You can reply to this via email.

+ + + +--f46d0444812b7c332b051a5ad7d1--
3D"Picture
Re: A test
<= +div>by Admin User - Wednesday, 8 July 2015, 11:45 = +am
=C2=A0

test 123

Show parent | Reply