#177465 - 02/04/0702:00 PMRe: Delete all PMs with 'Welcome' Subject
[Re: 24hourcampfire]
Gizmo
Registered: 06/04/06
Posts: 12007
Loc: Portland, OR; USA
Well, theres a reason they're "back"; they never where gone...
Keep in mind that there are 2 parties in a PM, not just one. So when one person deletes, it's still there for the other user, until they delete the message as well.
There where two differant ways to go about pm importing: A. Don't import them, gone forever. B. Import all pm's and assign them to the users who had posted in them.
Seeing as most users use pm's, we all harassed rick till he went with B :x...
And you could purge pm's by using the datestamp and a unix epoch date...
#184512 - 05/20/0704:13 AMRe: Delete all PMs with 'Welcome' Subject
[Re: cclapper]
Gizmo
Registered: 06/04/06
Posts: 12007
Loc: Portland, OR; USA
the only real "fix" would be to not import PM's... Theres not much of a grey area, as in there isn't really a way to check if they exist for both or one user with the import scripts.
I'm not sure and have not looked, but don't ALL messages regardless of type or area contain a unique id ? If not perhaps it would be a good idea to implement a unique ID for all messages that way in the future it could be used for multiple purposes of tracking or other uses.
Well then perhaps I'm off base but if he's trying to keep out duplicates can't some type of query be written to ignore duplicates based on the unique id ?
#184557 - 05/21/0708:31 PMRe: Delete all PMs with 'Welcome' Subject
[Re: ntdoc]
Gizmo
Registered: 06/04/06
Posts: 12007
Loc: Portland, OR; USA
just becuse it's the same content in the message doesn't mean it's the same message; a new message is created when a user signs up, it's not the same message at all, so each message would have it's own id
Thank you for the script Gizmo. I am one of the large site owners that does not have a clue about MySQL that welcomes anything that can make my look like if I did :-)