Index: openacs-4/packages/acs-mail-lite/tcl/acs-mail-lite-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-mail-lite/tcl/acs-mail-lite-init.tcl,v diff -u -r1.16 -r1.17 --- openacs-4/packages/acs-mail-lite/tcl/acs-mail-lite-init.tcl 17 Feb 2018 17:08:31 -0000 1.16 +++ openacs-4/packages/acs-mail-lite/tcl/acs-mail-lite-init.tcl 14 Jun 2018 20:56:07 -0000 1.17 @@ -30,7 +30,7 @@ # -# inbound +# inbound # # acs_mail_lite::load_mails -queue_dir $queue_dir @@ -72,7 +72,7 @@ -# acs_mail_lite::check_bounces +# acs_mail_lite::check_bounces ad_schedule_proc -thread t -schedule_proc ns_schedule_daily [list 0 25] acs_mail_lite::check_bounces Index: openacs-4/packages/acs-mail-lite/tcl/bounce-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-mail-lite/tcl/Attic/bounce-procs.tcl,v diff -u -r1.20 -r1.21 --- openacs-4/packages/acs-mail-lite/tcl/bounce-procs.tcl 12 Jun 2018 08:29:33 -0000 1.20 +++ openacs-4/packages/acs-mail-lite/tcl/bounce-procs.tcl 14 Jun 2018 20:56:07 -0000 1.21 @@ -88,7 +88,7 @@ } { This takes a reply address, checks it for consistency, and returns a list of user_id, package_id and bounce_signature found - + @option bounce_address bounce address to be checked @return tcl-list of user_id package_id bounce_signature @see acs_mail_lite::inbound_email_context @@ -140,7 +140,7 @@ } else { # Set to an email address that is required to exist # to avoid email loops and other issues - # per RFC 5321 section 4.5.1 + # per RFC 5321 section 4.5.1 # https://tools.ietf.org/html/rfc5321#section-4.5.1 # The somewhat unique capitalization may be useful # for identifyng source in diagnostic context. Index: openacs-4/packages/acs-mail-lite/tcl/bounce-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-mail-lite/tcl/Attic/bounce-procs.xql,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-mail-lite/tcl/bounce-procs.xql 30 May 2018 12:16:30 -0000 1.4 +++ openacs-4/packages/acs-mail-lite/tcl/bounce-procs.xql 14 Jun 2018 20:56:07 -0000 1.5 @@ -13,7 +13,7 @@ - + @@ -47,7 +47,7 @@ - + Index: openacs-4/packages/acs-mail-lite/tcl/email-inbound-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-mail-lite/tcl/email-inbound-procs.tcl,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-mail-lite/tcl/email-inbound-procs.tcl 11 Jun 2018 09:14:55 -0000 1.10 +++ openacs-4/packages/acs-mail-lite/tcl/email-inbound-procs.tcl 14 Jun 2018 20:56:07 -0000 1.11 @@ -1,7 +1,7 @@ ad_library { Provides API for importing email under a variety of deployment conditions. - + @creation-date 19 Jul 2017 @cvs-id $Id$ @@ -37,7 +37,7 @@ -reject_on_hit -reject_on_miss } { - Returns a name value list of parameters + Returns a name value list of parameters used by ACS Mail Lite scheduled procs. If a parameter is passed with value, the value is assigned to parameter. @@ -62,7 +62,7 @@ @param hpri_party_ids List of party_ids to process at fast/high priority. @param lpri_party_ids List of party_ids to process at low priority. - + @param hpri_subject_glob When email subject matches, flag as fast priority. @param lpri_subject_glob When email subject matches, flag as low priority. @@ -95,7 +95,7 @@ lpri_object_ids \ reject_on_hit \ reject_on_miss ] - + foreach sp $sp_list { if { [info exists $sp] } { set new(${sp}) [set $sp] @@ -221,7 +221,7 @@ } } } - + if { $validated_p } { foreach sp_n $new_pv_list { set ${sp_n} $new($sp_n) @@ -234,7 +234,7 @@ } } db_dml acs_mail_lite_ui_i { - insert into acs_mail_lite_ui + insert into acs_mail_lite_ui (sredpcs_override, reprocess_old_p, max_concurrent, @@ -251,7 +251,7 @@ lpri_object_ids, reject_on_hit, reject_on_miss) - values + values (:sredpcs_override, :reprocess_old_p, :max_concurrent, @@ -275,7 +275,7 @@ nsv_set acs_mail_lite si_configured_p 1 } } - + } set s_list [list ] foreach s $sp_list { @@ -339,7 +339,7 @@ # set array's index same as variable set h_arr(${hn}) [set ${vname} ] } - } + } } set priority_fine "" @@ -362,7 +362,7 @@ received_cs '${received_cs}' is not a natural number." } - # *_cs means clock time from epoch in seconds, + # *_cs means clock time from epoch in seconds, # same as returned from tcl clock seconds array set params_arr [acs_mail_lite::sched_parameters] @@ -394,7 +394,7 @@ set priority 3 } - + if { $object_id ne "" } { if { $object_id in $params_arr(hpri_object_ids) } { set priority 1 @@ -403,7 +403,7 @@ set priority 3 } } - + # quick math for arbitrary super max of maxes set su_max $params_arr(mpri_max) append su_max "00" @@ -412,7 +412,7 @@ foreach section $ns_section_list { lappend size_list [ns_config -int -min 0 $section maxinput] } - set size_max [f::lmax $size_list] + set size_max [f::lmax $size_list] # add granularity switch -exact $priority { 1 { @@ -442,7 +442,7 @@ set mp [expr { $pri_min + $d_max } ] ns_log Dev "inbound_prioritize: range '${range}' d_max '${d_max}' mp '${mp}'" - # number of variables in fine granularity calcs: + # number of variables in fine granularity calcs: # char_size, date time stamp set varnum 2 # Get most recent scan start time for reference to batch present time @@ -466,7 +466,7 @@ set pri_s [expr { ( $size_chars / ( $size_max + 0. ) ) } ] } - set priority_fine [expr { int( ( $pri_t + $pri_s ) * $d_max ) + $mp } ] + set priority_fine [expr { int( ( $pri_t + $pri_s ) * $d_max ) + $mp } ] ns_log Dev "inbound_prioritize: pri_t '${pri_t}' pri_s '${pri_s}'" ns_log Dev "inbound_prioritize: pre(max/min) priority_fine '${priority_fine}'" set priority_fine [f::min $priority_fine $pri_max] @@ -495,7 +495,7 @@ to reduce redundant processing downstream. See code comments for details.

Actional types: \ - 'auto_gen' 'auto_reply', 'bounce', 'in_reply_to' or + 'auto_gen' 'auto_reply', 'bounce', 'in_reply_to' or empty string indicating 'other' type.