Mozekoze

Mozekoze

Wow, a blog..How original

Mozekoze RSS Feed
 
 
 
 

Archive for June, 2009

Delete old spam from spam-folder in virtual mailbox (Dovecot)

Here’s a little script I wrote to delete old emails in your spam-folder. It assumes that files are located in subfolders of /var/vmail/ called Maildir/.Spam/new and Maildir/.Spam/cur
#!/bin/bash
find /var/vmail -type d | sed ’s/ /\\ /g’ | grep “Maildir/.Spam/” |
while read line
do
find ${line}new/ -mtime +365 2>/dev/null -exec rm {} \;
find ${line}cur/ -mtime +365 2>/dev/null -exec rm [...]

Send a fake spam-email to test Spamassassin

I just found this handy little thing called GTUBE – a string you put in an email to make it marked as spam, to test spamassassin (possibly other spam-solutions as well). Here are the details:
http://spamassassin.apache.org/gtube/

Using wine to install .msi files under Linux

Trying “wine filename.msi” won’t work. Instead you need to write
wine msiexec /i xyz.msi
Also, check http://wiki.jswindle.com/index.php/Wine_MSI for various info about .msi files and wine.