devinci99
10-17-2005, 12:47 AM
(asking Jafo for confirmation)
well it's not even done... but I'm trying...
so far I got am looking over:
subroutine Get_Message() under functions.cgi
I think this is what updates the mail status when you read the mail:
my $stp = $db->prepare("UPDATE " . $settings{"dbsuff"} . "mail_index SET status = ? WHERE mail_id = '$_[0]' and mail_to = '$user'") or &oops("$! DBI: $DBI::errstr ");
$stp->bind_param( 1, "read" ) or &oops("$! DBI: $DBI::errstr");
but not sure.
If this is it, how would you reverse it? To set the mail back to unread?
My guesses:
1. $stp->bind_param( 1, "unread" ) or &oops("$! DBI: $DBI::errstr");
2. $stp->bind_param( 1, "new" ) or &oops("$! DBI: $DBI::errstr");
if i can pin point this i think we got a hack for "mark read/unread" subroutine.
looking over the Inbox() subroutine from messenger.cgi:
elsif ($temp_array[6] ne "read") { ... }
else { ... }
I'm beginning to think it wouldnt matter... as long as I chage the status to anything other than "read" may be able to get the hack to work ?
well it's not even done... but I'm trying...
so far I got am looking over:
subroutine Get_Message() under functions.cgi
I think this is what updates the mail status when you read the mail:
my $stp = $db->prepare("UPDATE " . $settings{"dbsuff"} . "mail_index SET status = ? WHERE mail_id = '$_[0]' and mail_to = '$user'") or &oops("$! DBI: $DBI::errstr ");
$stp->bind_param( 1, "read" ) or &oops("$! DBI: $DBI::errstr");
but not sure.
If this is it, how would you reverse it? To set the mail back to unread?
My guesses:
1. $stp->bind_param( 1, "unread" ) or &oops("$! DBI: $DBI::errstr");
2. $stp->bind_param( 1, "new" ) or &oops("$! DBI: $DBI::errstr");
if i can pin point this i think we got a hack for "mark read/unread" subroutine.
looking over the Inbox() subroutine from messenger.cgi:
elsif ($temp_array[6] ne "read") { ... }
else { ... }
I'm beginning to think it wouldnt matter... as long as I chage the status to anything other than "read" may be able to get the hack to work ?