Index: openacs-4/packages/general-comments/tcl/general-comments-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/general-comments/tcl/general-comments-procs.tcl,v diff -u -r1.22 -r1.23 --- openacs-4/packages/general-comments/tcl/general-comments-procs.tcl 27 Jun 2015 21:10:12 -0000 1.22 +++ openacs-4/packages/general-comments/tcl/general-comments-procs.tcl 7 Aug 2017 23:48:12 -0000 1.23 @@ -34,11 +34,15 @@ @error } { + + # Generate a unique id for the message + # result from proc comes enveloped in <> + set rfc822_id [string range [acs_mail_lite::generate_message_id] 1 end-1] db_transaction { - db_exec_plsql insert_comment { } - db_dml add_entry { } + db_exec_plsql insert_comment {} + db_dml add_entry {} db_1row get_revision {} db_dml set_content {} -blobs [list $content] @@ -208,17 +212,17 @@ append attachments_html "
  • $title " if { $mime_type eq "image_gif" || $mime_type eq "image/jpeg" } { - append attachments_html "($name)\n" + append attachments_html "($name)\n" } else { - append attachments_html "($name)\n" + append attachments_html "($name)\n" } } db_foreach get_links " select i.item_id, e.label, e.url from cr_items i, cr_extlinks e where i.parent_id = :comment_id and e.extlink_id = i.item_id" { - append attachments_html "
  • $label\n" + append attachments_html "
  • $label\n" } if { $attachments_html ne "" } { append html "
    [_ general-comments.Attachments]
    \n\n" @@ -231,7 +235,7 @@ }] } else { append html [subst { -
  • $title +
  • $title }] if {$print_user_info_p} { append html [subst {