I've been getting a cannot open /var/spool/qmailscan/quarantine-attachments
- Permission denied.....
...message when I test.
It only takes a quick re-link to roll out the previous version & roll in the
new version, test, find issue still present, then roll back..
Though this can take approx 5 minutes sometimes.
So I'm trying to pipe a message to the new scanner perl script.
Not sure how to do it. How do I do it?
I managed to re-inject to qmail with the ruby script below, though now I
don't have any raw emails to re-inject even when I have the right script.
So I need a test message.
I suspect I could use a message copied from my Maildir.
On slightly related issue....
A previous issue to do with upgrading perl so I can upgrade the perlscanner
to 1.5 had me with a slowly filling partition....thousands of files in the
working/new dir... rm *, ls -l don't work on my mc (due to the need for
buffer resizing, recomp...etc), so I tried fdupes to weed out the multiple
(qmail) attempts at delivery.
fdupes did not work for me. Might be a small diff in each file.
Anyways, I culled all the crap mess's with a ruby script.
Then culled by hand leftover dupes,.
Then ran a ruby script to re-inject the messages to qmail directly.
---For culling...
#!/usr/local/bin/ruby
Dir.foreach("./") do |entry|
next if [".",".."].include? entry
inentry = entry
infile = open(inentry, "r")
IO.foreach(inentry) do |line|
case line
when /some content line/
system("rm -fv " + entry)
else ;
end
end
infile.close
end
exit
----For Re-inject to qmail----
#!/usr/local/bin/ruby
Dir.foreach("./") do |entry|
next if [".",".."].include? entry
system("cat " + entry + " | /var/qmail/bin/qmail-inject -h -N")
system("rm -fv " + entry)
end
exit
So what is my question?!
Regards, Markt
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general