Closed (fixed)
Project:
Listhandler
Version:
master
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
2 Jul 2008 at 19:49 UTC
Updated:
28 Feb 2010 at 15:20 UTC
Jump to comment: Most recent
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?
Comments
Comment #1
philipnet commentedDid 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.
Comment #2
pcs305 commentedThank 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?
Comment #3
philipnet commentedHi 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.
Comment #4
philipnet commentedComment #5
chrissearle commentedSubscribe
Comment #6
pcs305 commentedDo 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
Comment #7
Bèrto ëd Sèra commented+1 It's really annoying at the moment and I'd expect it to be quite an easy change.
Comment #8
philipnet commentedI'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.
Comment #9
shark commentedI've closed #56936: Look sender up on e-mail address rather than name since it is a duplicate but want to include the nice description from that report of the problem here:
Comment #10
shark commentedWith the Mailalias module installed, things work as expected (see comment 9, above).
Specifically,
1. I have a user with name "Firstname Surname", and some email address firstname-surname@tld.com.
2. I post to the mailing list using name "Firstname" and another address firstname@tld.com.
3. Result is a new user ("Firstname", email: firstname@tld.com), and new forum post authored by "Firstname". After deleting this user, I enable Mailalias and in the account settings for user "Firstname Surname" I set a mailalias to be firstname@tld.com. Repeat step 2.
4. Result is no new user; new forum post is now authored by user "Firstname Surname" as desired.
In step 3 above, instead of adding a mailalias in the user's account you can also just change the primary email account (e.g. to firstname@tld.com) and when new list messages come in the user will be matched against the email, so even if the mailing list sender is "Z" it will still record the author as Drupal user "John Smith" if sender "Z" and user "John Smith" have the same email.
As long as people don't mind the Mailalias dependency, I think this issue can be closed.
Comment #11
philipnet commentedThanks,
I've added the following to the README file: