Improved user detection: use email address rather than name
pcs305 - July 2, 2008 - 19:49
| Project: | Listhandler |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | philipnet |
| Status: | needs review |
Jump to:
Description
I've had some troubles with the post formatting and filters. I went and did the following:
1) deleted all listhandler forum posts and comments.
2) removed Mailhandler and Listhandler modules.
3)Re-installe Mailhandler and Listhandler.
4)fetched all listser emails from pop account.
But now I get
"Cannot create account: The name 'UserXX' is already taken"
and
"Comment: unauthorized comment submitted or comment submitted to a closed node Alternate to Universal Client? One more time. "
messages.
How do I get passed this?

#1
Did you Uninstall the Listhandler and Mailhandler modules?
Getting the message
suggests you didn't.
To fix it, I suggest deleting the contents of the Listhandler table and reconfiguring Listhandler.
Did you delete all your users?
Is that an option?
Otherwise you will continue to get the message
You don't need to delete the users (don't worry!), Listhandler will still work if it can't create a user account.
#2
Thank you philipnet.
I have stumbled upon some problems. Duplicate email addresses and illegal characters in usernames.
I have yet to go through and verify every error to one of these problems.
What I would like to know is if it is possible to check against email address if the user exist, and then create the ID if it does not?
#3
Hi pcs305,
Listhandler should log messages like "Cannot create account: <reason>".
By default Drupal does enforce unique e-mail addresses for it's users, however that is something enforced by code rather than the database.
Listhandler currently checks if the username is not taken (case-insensitive) and if the email address is valid. If both cases are true then Listhandler creates the user.
Personally, I think it would be better if Listhandler checked the email address against the user table and either posted it under the first entry it found, or created a new user (*)
*: As long as that configuration option is checked.
However I'm not keen on functional changes to the Drupal 5 version.
Therefore I am moving this report into the Drupal 6 feature request queue so it can be worked on for Drupal 6.
Regards.
P.
P.S. You may want to install the Logintoboggan module: http://drupal.org/project/logintoboggan which allows users to login with their email address rather than user name.
#4
#5
Subscribe
#6
Do we have any idea if this feature will be added and when?
I want to add listserver emails to my forum but need to be able to use emails rather than uid's.
Thank you
#7
+1 It's really annoying at the moment and I'd expect it to be quite an easy change.
#8
I've been reading through the Mailhandler code (and Listhandler as well ;) ).
Can you try installing and enabling the Mailalias module: http://drupal.org/project/mailalias ?
Mailhandler does it's job of finding the sending user before passing the new node to Listhandler. But it will only fire off it's "check the email address" routine if Mailalias is installed.