> I never suggested using a tmpfs for temporary files. Under a > decent journalling or UFS file system I don't think any > (small) savings are worth the risk of having a file system > too small, or wasting unnecessary memory.
http://www.arschkrebs.de/postfix/amavisd_tmpfs.shtml > If we are referring to: > http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5444 > these files should eventually get deleted automatically. I'm using SA 3.1.8. Do it suffer of the same problem? > Nevertheless, according to SA documentation the current > calling method (since SA 3.0.0) lacks a call to $mail_obj->finish. > The following patch should fix it: > > > --- amavisd.orig Mon Apr 23 05:25:30 2007 > +++ amavisd Mon May 21 18:22:45 2007 > @@ -17542,5 +17542,5 @@ > sub call_spamassassin($$$) { > my($self,$msginfo,$lines) = @_; > - my($which_section); my($per_msg_status); > + my($which_section); my($mail_obj,$per_msg_status); > my($saved_umask) = umask; my($saved_pid) = $$; > my($spamassassin_obj) = $self->{'spamassassin_obj'}; @@ > -17567,7 +17567,8 @@ > do_log(5,"calling SA parse, SA version %s, %.6f", > $sa_version, $sa_version_num); > - my($mail_obj) = $sa_version_num >= 3 ? > $spamassassin_obj->parse($lines) > + $mail_obj = $sa_version_num >= 3 ? > $spamassassin_obj->parse($lines) > : > Mail::SpamAssassin::NoMailAudit->new(data => $lines, > > add_From_line => 0); > + undef $lines; # release storage, SA made its own copy > section_time($which_section); > > @@ -17607,4 +17608,6 @@ > if (defined $per_msg_status) > { $per_msg_status->finish; undef $per_msg_status } > + if (defined $mail_obj && $sa_version_num >= 3) > + { $mail_obj->finish; undef $mail_obj } > umask($saved_umask); # SA changes umask to 0077 > if ($$ != $saved_pid) { I'm using amavisd-new-2.4.4. Is this patch valid for the amavisd script included in this amavisd-new version? If Yes, How do I have to apply the pacth? Sorry for the trivial questions.. rocsca ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
