![]() |
|
|
|||||||
| For more information about the ads and why they're here, please see the FAQ |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi All,
I have added 2 lines of code for manage the Email Notification when required... go to program/steps/mail/show.inc search: Code:
// mark message as read if (!$MESSAGE['headers']->seen) $IMAP->set_flag($_GET['_uid'], 'SEEN'); change to: Code:
// mark message as read
if (!$MESSAGE['headers']->seen)
{
$IMAP->set_flag($_GET['_uid'], 'SEEN');
//notifica di lettura
if ($MESSAGE['structure']->headers['disposition-notification-to'] != '')
{
mail($MESSAGE['structure']->headers['disposition-notification-to'], "Letto: ".$MESSAGE['structure']->headers['subject'], "Conferma messaggio inviato a\n".$MESSAGE['structure']->headers['to']." alle ".$MESSAGE['structure']->headers['date']."\n\nIl messaggio è stato visualizzato nel computer del destinatario alle ".date('r',time()), "From: ".$MESSAGE['structure']->headers['to']);
show_message($CONFIG['product_name']." ha inviato la <i>Notifica di Lettura</i> al Mittente.");
}
}
![]() Enjoy! Fabio |
|
#2
|
|||
|
|||
|
Ciao?
That is a cool hack. Thank you! Can you please translate the italiano in english, because my italiano isn't very well? greetz, Nico |
|
#3
|
|||
|
|||
|
yes... but check my bad english!
![]() Code:
// mark message as read
if (!$MESSAGE['headers']->seen)
{
$IMAP->set_flag($_GET['_uid'], 'SEEN');
//notifica di lettura
if ($MESSAGE['structure']->headers['disposition-notification-to'] != '')
{
mail($MESSAGE['structure']->headers['disposition-notification-to'], "Read: ".$MESSAGE['structure']->headers['subject'], "Message confirmation sent to\n".$MESSAGE['structure']->headers['to']." at ".$MESSAGE['structure']->headers['date']."\n\nThe message has been shown on the addressee's computer at ".date('r',time()), "From: ".$MESSAGE['structure']->headers['to']);
show_message($CONFIG['product_name']." sent the <i>Read Notification</i> to the Addressee.");
}
}
Fabio [admin]Updated English ![]() FYI: Not a whole lot wrong. Just changed "Show" to "Shown"[/admin] |
|
#4
|
|||
|
|||
|
Poanza. I think this is great, but we need to add some functionality I think to make it even better. [list][*]We should add a global variable to set / unset / warn (popup asking per e-mail)[*]I had a look at the code and I could not find the disposition-notification-to header in the headers of the e-mail -> used print_r($MESSAGE['structure'])
Does anyone know how to correctly capture the disposition-notification-to header? (maybe I did something wrong, but could not access this var) |
|
#5
|
|||
|
|||
|
Updated version for RC2 (changes are only on the second and the fourth lines) with french language
Code:
// mark message as read
if (!$MESSAGE['headers']->seen && $_action != 'preview')
{
$IMAP->set_flag($MESSAGE['UID'], 'SEEN');
// Accusé de réception
if ($MESSAGE['structure']->headers['disposition-notification-to'] != '')
{
mail($MESSAGE['structure']->headers['disposition-notification-to'], "Lu: ".$MESSAGE['structure']->headers['subject'], "Accusé de réception
envoyé à\n".$MESSAGE['structure']->headers['to']." à ".$MESSAGE['structure']->headers['date']."\n\nLe message a été re&ced
il;u par le destinataire à ".date('r',time()), "From: ".$MESSAGE['structure']->headers['to']);
show_message($CONFIG['product_name']." a envoyé l'<i>accusé de réception</i> à l'expéditeur.");
}
}
|
|
#6
|
|||
|
|||
|
So, what kind of notification does this mod do? is it a like a pop-up "you've got mail" ?
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
| For more information about the ads and why they're here, please see the FAQ |