Aleksandar Lazic wrote:

I have solved this issus with this steps:

1.) add in plugins/connection_time in hook_pre_connection

     $self->qp->connection->notes('sessionid',gettimeofday());

Your sessionids won't be unique across multiple MAIL FROM->DATA transactions during the same connection. In other words, if the SMTP client makes a connection, and sends multiple separate emails during the same connection, it will have the same sessionid.

Are you sure you want that? If not, you want to do it at hook_mail time with a transaction note.

gettimeofday isn't guaranteed to be unique either. It may return microsecond resolution, but, it isn't really.

Reply via email to