SparkPost / gosparkpost

SparkPost client library for the Go Programming Language
https://www.sparkpost.com/
Other
62 stars 40 forks source link

oobgen to/from the wrong way around? #134

Closed tuck1s closed 5 years ago

tuck1s commented 6 years ago

Here's an example run

2018/05/15 18:46:28 Got domain [email.thetucks.com] from Return-Path
2018/05/15 18:46:28 Got MX [smtp.sparkpostmail.com.] for [email.thetucks.com]
2018/05/15 18:46:28 Would send OOB from [steve@email.thetucks.com] to [msprvs1=17673tNX0QAs1=bounces-1026@email.thetucks.com] via [smtp.sparkpostmail.com.:25]
2018/05/15 18:46:28

The from/to seems to be oriented with the input file, not the oobgen output, which is

From: msprvs1=17673tNX0QAs1=bounces-1026@email.thetucks.com
Date: Mon, 02 Jan 2006 15:04:05 MST
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
To: steve@email.thetucks.com
Content-Type: multipart/report; report-type=delivery-status;
    boundary="_----1526406388===_61/00-25439-267B0055"

This is a MIME-encapsulated message

--_----1526406388===_61/00-25439-267B0055

The original message was received at Mon, 02 Jan 2006 15:04:05 -0700
from example.com.sink.sparkpostmail.com [52.41.116.105]

: : :

tuck1s commented 5 years ago

I think I was mistaken about this