Notes: December 2005 Archives

Notebook Battery

| | Comments (0)

ASUS S1300N 買了約兩年半, 想買電池卻已經停產, 連副廠的電池也買不到 :(
只能用 換芯維修 的方式.
爾後 NB 買一年後就要買第二顆電池備用, 以免停產.
2005-12-31 Update: 電池換芯回來了, 效果還挺不錯, 跟新的一樣.

Add X-Country to mail header

| | Comments (0)

I wrote a bash script to add X-Country tag to mail header.
e.g.: X-Country: TW
X-Country tag may be used for basic spam filtering.

Install:
Download xcountry.tgz
tar zxf xcountry.tgz -C /
ip-to-country data in /usr/local/xcountry, xcountry in /usr/local/bin

Usage:
Add following to procmailrc

:0fw
| /usr/local/bin/xcountry

Further more, if you want to delete mail from some countries, add following
# This example delete any mail from China and Korea.
:0
* X-Country: (CN|KR)
/dev/null

and you can use IP as parameter to get country code.
eg.
# xcountry 168.95.1.1
TW
# xcountry 200.200.200.200
BR

ref. Spamhaus TOP 10 Spam Origin Countries

Pages

June 2008

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

About this Archive

This page is a archive of entries in the Notes category from December 2005.

Notes: November 2005 is the previous archive.

Notes: January 2006 is the next archive.

Find recent content on the main index or look in the archives to find all content.