Download & Extend

store user ID corresponding to email address in the database

Project:Mail Logger
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

This module is able to extract a current Drupal user if one corresponds to either the From: or To: email address of a mail, using mail_logger_email_user().

However, this is only used for firing the trigger and rules actions.

If the uids were stored in the database, as two extra columns in the table, then this would be available permanently to Views, and allow filtering, sorting, and so on.

Comments

#1

hi,
I think this feature is interesting.
A new column "uid" at mail logger table would open this possibility.
If it's a system email (no user) the uid value should go to "-1", if anonymous "0", and if it's a registered user's email, record his uid.

I can start it, but i don't know where to do this.
The first think should be alter the table, but where, at this module, is the function that stores at the database?
And mainly...how to detect if its a system email or anonymous? Is there a way to check it?

thanks

nobody click here