Mariano,
The table that holds the email address can contain more than one list, that the same email address may be subscribed to:
CREATE TABLE dada_subscribers ( email_id int4 not null primary key auto_increment, email text(320), list varchar(16), list_type varchar(64), list_status char(1) );
Therefore it is very possible that at first glance you could have duplicates, but check the 'list' field too, as this is the key that differentiates between one list and another
SELECT DISTINCT(email
) FROM dada_subscribers WHERE list
='LISTNAME'
The above query should give you a list of unique addresses from your subscriber table Subsitute LISTNAME for your own
Not tested or even ran the query myself though, as no access to a test dada host at present
H
On 11/09/2007, Mariano Absatz el.baby@PROTECTED wrote: >
Hi,
I have a very large list (about 5k addresses) and every now I then I find an address that is duplicated that is, there are two entries for it in the database
The only way to solve this is to erase the address and re-add it (since you can't erase only one)
This is possible because the address field is not "unique" in the database (and then, if it were, it could also happen because of different capitalization)
I think this shouldn't happen, but maybe the problem happened some time ago with a different version of dada (I did several upgrades and a couple of migrations in the middle, and I don't intend to find the culprit)
What I'd really like to know is if there's an option to list the duplicated addresses easily (or if I have to review my poor sql knowledge and do it by myself)
Does anyone have a script to check for duplicated addresses? (I'm ok with plain sql if that's the case)
TIA
-- Mariano Absatz - El Baby el (dot) baby (AT) gmail (dot) com el (punto) baby (ARROBA:@) gmail (punto) com
--
Post: dadadev@PROTECTED
Unsubscribe: http://mojo skazat com/cgi-bin/dada/mail cgi/u/dadadev/
List Information: http://mojo skazat com/cgi-bin/dada/mail cgi/list/dadadev
Archive: http://mojo skazat com/cgi-bin/dada/mail cgi/archive/dadadev
Mailing List Powered by Dada Mail http://mojo skazat com/cgi-bin/dada/mail cgi/what_is_dada_mail/
Start a new thread, email: dadadev@dadamailproject.com
This is the developer discussion mailing list for Dada Mail.
If you are just looking for support Dada Mail, consult the message boards at:
https://forum.dadamailproject.com
Documentation for Dada Mail:
Specifically, see the Error FAQ:
https://dadamailproject.com/d/FAQ-errors.pod.html
To post to this list, send a message to:
mailto:dadadev@dadamailproject.com
All subscribers of this list may post to the list itself.
Topics that are welcome:
Dada Mail is on Github:
https://github.com/justingit/dada-mail/
If you would like to fork, branch, send over PRs, open up issues, etc.
This Privacy Policy is for this mailing list, and this mailing list only.
Email addresses collection through this mailing list are used explicitly to work within this email discussion list.
We only collect email addresses through our Closed-Loop Opt-In system.
We don't use your email address for any other purpose.
We won't be sharing your email address with any other entity.
Unsubscription can be done at any time. Please contact us at: justin@dadamailproject.com for any help regarding your subscription, including removal from the mailing list.
All mailing list messages sent from us will include a subscription removal link, which will allow you to remove yourself from this mailing list automatically, and permanently.
All consent to use your email address for any other purpose stated at the time of the mailing list subscription will also be revoked upon mailing list removal.