On 10/7/22 15:30, Tony Lindström via MIMEDefang wrote:
I have this filter that used to work with 2.86, but now it fails:Oct 7 15:30:28 l-ns4 mimedefang-multiplexor[17447]: 297CTpBA019673: Worker 0 stderr: Undefined subroutine &Mail::MIMEDefang::Actions::takeStabAtFile Oct 7 15:30:28 l-ns4 mimedefang-multiplexor[17447]: 297CTpBA019673: Worker 0 stderr: name called at /usr/share/perl5/vendor_perl/Mail/MIMEDefang/Act Oct 7 15:30:28 l-ns4 mimedefang-multiplexor[17447]: 297CTpBA019673: Worker 0 stderr: ions.pm <http://ions.pm> line 1065. Here is the filter: sub filter ($$$$) { my($entity, $fname, $ext, $type ) = @_; if (defined($fname)) { $size = (stat($entity->bodyhandle->path))[7]; if ($size > 10240000) { return action_replace_with_url($entity, "/var/spool/MIMEDefang_Captured_Files", "https://www.xxxx.fi/Captured_Files <https://www.xxxx.fi/Captured_Files>", ($fname? "The attachment \"$fname\"" : "Attachment"). " was larger than 10 MB.\n" . "It was removed by the xxxx mail gateway, but may be accessed at this URL:\n\n" . "_URL_", $fname # extra data to save ); Not sure how to fix this? Just fixed in https://github.com/The-McGrail-Foundation/MIMEDefang/commit/9814f316a1f3797525d88e861e9a1943b451c90e
You can apply the fix to Actions.pm locally. I plan to release a 3.2 bugfix version soon. Giovanni
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. MIMEDefang mailing list [email protected] https://lists.mimedefang.org/mailman/listinfo/mimedefang_lists.mimedefang.org
