[Mimedefang] Problems with 3.1
giovanni at paclan.it
giovanni at paclan.it
Fri Oct 7 10:11:39 EDT 2022
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20221007/dc891d79/attachment.sig>
More information about the MIMEDefang
mailing list