Index: openacs-4/packages/acs-mail-lite/acs-mail-lite.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-mail-lite/acs-mail-lite.info,v diff -u -N -r1.16 -r1.17 --- openacs-4/packages/acs-mail-lite/acs-mail-lite.info 29 Nov 2005 11:28:25 -0000 1.16 +++ openacs-4/packages/acs-mail-lite/acs-mail-lite.info 3 May 2006 10:41:13 -0000 1.17 @@ -7,15 +7,15 @@ f t - + Eric Lorenzo Timo Hentschel Simplified reliable email transmission with bounce management. 2005-10-19 This package provides a simple ns_sendmail-like interface for sending messages, but queues messages in the database to ensure reliable sending and make sending a message 'transactional'. Prefered over acs-messaging or acs-mail. 0 - + @@ -35,6 +35,7 @@ + Index: openacs-4/packages/acs-mail-lite/lib/email.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-mail-lite/lib/Attic/email.tcl,v diff -u -N -r1.22 -r1.23 --- openacs-4/packages/acs-mail-lite/lib/email.tcl 10 Apr 2006 11:26:57 -0000 1.22 +++ openacs-4/packages/acs-mail-lite/lib/email.tcl 3 May 2006 10:41:13 -0000 1.23 @@ -128,6 +128,21 @@ } } +# Get the list of files from the file storage folder +set file_folder_id [parameter::get_from_package_key -package_key "acs-mail-lite" -parameter "FolderID"] +if {![string eq "" $file_folder_id]} { + # get the list of files in an option + set file_options [db_list_of_lists files "select name, item_id from cr_items where parent_id = :file_folder_id and content_type = 'file_storage_object'"] + if {![string eq "" $file_options]} { + append form_elements { + {files_extend:text(checkbox),optional + {label "[_ acs-mail-lite.Additional_files]"} + {options $file_options} + } + } + } +} + foreach var $export_vars { upvar $var var_value @@ -236,6 +251,13 @@ } } + # Append the additional files + if {[exists_and_not_null files_extend]} { + foreach file_id $files_extend { + lappend file_ids $file_id + } + } + # Send the mail to all parties. foreach party_id $to { if { $contacts_p } {