notification-callback-procs.tcl

Library for Notification's callback implementations

Location:
packages/notifications/tcl/notification-callback-procs.tcl
Created:
July 19, 2005
Author:
Enrique Catalan
CVS Identification:
$Id: notification-callback-procs.tcl,v 1.7.2.3 2023/07/10 09:41:43 gustafn Exp $

Procedures in this file

Detailed information

callback::acs_mail_lite::incoming_email::impl::notifications (private)

 callback::acs_mail_lite::incoming_email::impl::notifications \
    -array array [ -package_id package_id ]

Implementation of the interface acs_mail_lite::incoming_email for notifications. Notification listens to replies sent out initially from notifications. According to the notification signature <EmailReplyAddressPrefix>$object_id-$type_id@<EmailDomain> it tries to figure out for which notification type the email was from.

The type corresponds to the service contract implementation. If the object_id exists notification creates an entry in the table notification_email_hold and tries to inform implementations of acs_mail_lite::incoming_email interested. Since the service contract NotificationType is implemented only once for a package the table acs_mail_lite_reply_prefixes is used simply figure out which package corresponds to the found type_id and has a valid package key. If a package key is found the callback implementation is called.

Switches:
-array (required)
An array with all headers, files and bodies. To access the array you need to use upvar.
-package_id (optional)
The package instance that registered the prefix
Returns:
nothing
Error:
Author:
Nima Mazloumi <nima.mazloumi@gmx.de>
Created:
2005-07-15
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 callback callback (public) db_0or1row db_0or1row (public) db_dml db_dml (public) db_transaction db_transaction (public) notification::email::bounce_mail_message notification::email::bounce_mail_message (public) callback::acs_mail_lite::incoming_email::impl::notifications callback::acs_mail_lite::incoming_email::impl::notifications callback::acs_mail_lite::incoming_email::impl::notifications->callback callback::acs_mail_lite::incoming_email::impl::notifications->db_0or1row callback::acs_mail_lite::incoming_email::impl::notifications->db_dml callback::acs_mail_lite::incoming_email::impl::notifications->db_transaction callback::acs_mail_lite::incoming_email::impl::notifications->notification::email::bounce_mail_message

Testcases:
No testcase defined.

callback::merge::MergePackageUser::impl::notifications (private)

 callback::merge::MergePackageUser::impl::notifications \
    -from_user_id from_user_id -to_user_id to_user_id

Merge the notifications of two users.

Switches:
-from_user_id (required)
-to_user_id (required)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 db_dml db_dml (public) db_transaction db_transaction (public) callback::merge::MergePackageUser::impl::notifications callback::merge::MergePackageUser::impl::notifications callback::merge::MergePackageUser::impl::notifications->db_dml callback::merge::MergePackageUser::impl::notifications->db_transaction

Testcases:
No testcase defined.

callback::merge::MergeShowUserInfo::impl::notifications (private)

 callback::merge::MergeShowUserInfo::impl::notifications \
    -user_id user_id

Show the notifications of user_id

Switches:
-user_id (required)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 db_list_of_lists db_list_of_lists (public) callback::merge::MergeShowUserInfo::impl::notifications callback::merge::MergeShowUserInfo::impl::notifications callback::merge::MergeShowUserInfo::impl::notifications->db_list_of_lists

Testcases:
No testcase defined.

callback::notifications::incoming_email::contract (private)

 callback::notifications::incoming_email::contract -array array
Switches:
-array (required)

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.
[ show source ]