return lines, nil
}

var _ = Describe("V1Process", func() {
	var (
		mailClient             *mocks.MailClient
		v1Process              postal.V1Process
		logger                 lager.Logger
		buffer                 *bytes.Buffer
		delivery               postal.Delivery
		queue                  *mocks.Queue
		unsubscribesRepo       *mocks.UnsubscribesRepo
		globalUnsubscribesRepo *mocks.GlobalUnsubscribesRepo
		kindsRepo              *mocks.KindsRepo
		database               *mocks.Database
		strategyDeterminer     *mocks.StrategyDeterminer
		conn                   *mocks.Connection
		userLoader             *mocks.UserLoader
		userGUID               string
		fakeUserEmail          string
		templateLoader         *mocks.TemplatesLoader
		receiptsRepo           *mocks.ReceiptsRepo
		tokenLoader            *mocks.TokenLoader
		messageID              string
		messageStatusUpdater   *mocks.MessageStatusUpdater
		deliveryFailureHandler *mocks.DeliveryFailureHandler
	)

	BeforeEach(func() {
		buffer = bytes.NewBuffer([]byte{})
	"time"

	"github.com/cloudfoundry-incubator/notifications/cf"
	"github.com/cloudfoundry-incubator/notifications/postal"
	"github.com/cloudfoundry-incubator/notifications/testing/mocks"

	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
)

var _ = Describe("MessageContext", func() {
	var templates postal.Templates
	var email, sender, domain string
	var options postal.Options
	var html postal.HTML
	var delivery postal.Delivery
	var cloak *mocks.Cloak
	var reqReceived time.Time

	BeforeEach(func() {
		email = "*****@*****.**"
		sender = "*****@*****.**"
		domain = "http://www.example.com"

		templates = postal.Templates{
			Text:    "the plainText email < template",
			HTML:    "the html <h1> email < template</h1>",
			Subject: "the subject < template",
		}

		html = postal.HTML{