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

Request: add getReferences method to Message class #83

Closed
robtesch opened this issue Apr 8, 2018 · 2 comments
Closed

Request: add getReferences method to Message class #83

robtesch opened this issue Apr 8, 2018 · 2 comments

Comments

@robtesch
Copy link

robtesch commented Apr 8, 2018

Firstly thank you for the amazing package, it's added some great features in the past couple of months that are particularly useful for my use case. I would like to request an addition of a getReferences method to the Message class. I use the references as well as the inReplyTo for threading purposes. Currently everything I need is there except this, so I have to manually parse the headers again and get the references from there.

Many thanks in advance.

@Webklex
Copy link
Owner

Webklex commented Apr 14, 2018

Hi @robtesch ,
please update to v. 1.0.5.9

@Webklex Webklex closed this as completed Apr 14, 2018
@robtesch
Copy link
Author

robtesch commented Apr 11, 2019

This used to work after update v. 1.0.5.9, however for a while now i have been getting the following error:

getReferences() not supported

I switched to simply getting the references (and all the other properties of a message) by simply accessing them directly as follows:

$references = $message->references;
$messageId = $message->message_id;
//etc etc.

EDIT: after switching to this method, things seem to working properly again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants