Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emails return bad data #77

Open
zoecarver opened this issue Jan 23, 2018 · 0 comments
Open

Emails return bad data #77

zoecarver opened this issue Jan 23, 2018 · 0 comments

Comments

@zoecarver
Copy link

zoecarver commented Jan 23, 2018

I am reading my emails like this:

func fetch ( forNumber: Int )
{
    pConnector?.fetchLast ( "INBOX", last: UInt(forNumber), flags: [ .headers ], onMessage:
    { email in
        print("Got Message: \(email)");
    }, onComplete:
    { error in
        if let error = error
        {
            print("Error! \(error) ")
        }
    } )
}

However, I get this as a response:

FetchResult(uid: 15430, header: nil, flags: MessageFlag., body: nil, rfc822Size: 0, internalDate: nil, gmailThreadId: nil, gmailMessageId: nil, gmailLabels: nil)

I am new to swift, and am just learning about how this library works so I am probably doing something wrong; Just not quite sure what. I would love to know why this is happening - Thanks

Edit


As you can see, after enabling the logger it does spit out some data. This leads me to believe that there is something wrong with the api/lib.

* 569 FETCH (UID 15430 ENVELOPE ("Mon, 22 Jan 2018 16:33:45 +0000 (GMT)" "The status for your app, Quick Things (1330243459), is now Ready for Sale." (("iTunes Store" NIL "no_reply" "email.apple.com")) (("iTunes Store" NIL "no_reply" "email.apple.com")) (("iTunes Store" NIL "no_reply" "email.apple.com")) ((NIL NIL "z.zoelec2" "gmail.com")) NIL NIL NIL "<[email protected]>") BODY[HEADER.FIELDS (References)] {2}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant