Pine for Mac OS X 

I tried Pine for couple of days now. I feel I hooked with pine :). Compiling Pine on Mac OS X takes a little bit effort. This link http://www.madboa.com/geek/pine-macosx/ showed me a shell script to patch Pine on OS X, I spent a little extra effort to patch the filepara patch from http://www.math.washington.edu/~chappa/ ... para.patch by appending :


diff -rc pine4.64/imap/src/osdep/unix/Makefile pine4.64.fillpara/imap/src/osdep/unix/Makefile
*** pine4.64/imap/src/osdep/unix/Makefile Sat Apr 30 13:51:13 2005
--- pine4.64.fillpara/imap/src/osdep/unix/Makefile Thu Aug 3 13:20:31 2006
***************
*** 549,555 ****
$(BUILD) `$(CAT) SPECIALS` OS=$@ \
CRXTYPE=nfs \
SPOOLDIR=/var/spool MAILSPOOL=/var/mail \
! BASECFLAGS="-g -O -Wno-pointer-sign"

ptx: # PTX
$(BUILD) `$(CAT) SPECIALS` OS=$@ \
--- 549,555 ----
$(BUILD) `$(CAT) SPECIALS` OS=$@ \
CRXTYPE=nfs \
SPOOLDIR=/var/spool MAILSPOOL=/var/mail \
! BASECFLAGS="-g -O"

ptx: # PTX
$(BUILD) `$(CAT) SPECIALS` OS=$@ \

Following script will automate the patch, compile, installation on OS X.

#!/bin/bash

# season to taste
VER=pine4.64

# create a build directory
BLDDIR=/var/tmp/${VER}-build
test -d $BLDDIR && /bin/rm -rf $BLDDIR
mkdir $BLDDIR
cd $BLDDIR

# fetch the source
curl \
-O ftp://ftp.cac.washington.edu/pine/${VER}.tar.gz \
-O http://mcli.brc.ubc.ca/pine/${VER}/fillpara.patch.gz


# unzip and patch
tar xzf ${VER}.tar.gz
cd ${VER}
gzip -dc ../fillpara.patch.gz | patch -p1

# do the deed
./build 'EXTRACFLAGS=-DPASSFILE=\".pine.pwd\"' osx

# install pine and pico (optional)
cp bin/pine /usr/bin

Run this script, it will patch, compile and install Pine on your OS X. pretty easy!
[ add comment ] permalink ( 3.1 / 91 )
IP address in canonical decimal 

Ever think of IP address 137.82.2.215 in internal can be written as 2303853271 in base 10. 137 = 0x89 82 = 0x52 2 = 0x2 215 = 0xD7, put them together is 0x895202D7 in base 16, and perl -e 'print hex '\x895202D7', "\n" ' will be 2303853271 in base 10. Apache1.3.* seems still accept http://2303853271 as legitimate request, Apache2 seems don't accept http://2303853271 as legitimate request.
[ add comment ] permalink ( 3 / 102 )
Octal and Octet 

The octal numeral system is the base-8 number system, and uses the digits 0 to 7.

Octal numerals can be made from binary numerals by grouping consecutive digits into groups of three (starting from the right). For example, the binary representation for decimal 74 is 1001010, which groups into 1 001 010 — so the octal representation is 112. see more detailes at http://en.wikipedia.org/wiki/Octal

In computer technology and networking, an octet is a group of 8 bits. see http://en.wikipedia.org/wiki/Octet_%28computing%29
[ add comment ] permalink ( 3 / 90 )
Upgraded Mail::SpamAssassin 3.1.4, Clamav 0.88.3. Installed gnugpg on Mac OS X server 

The email spam filter hasn't been running for a while on the email server. Today, I finally upgraded all the component, and tested working fine
[ add comment ] permalink ( 2.9 / 91 )
Upgrade SpamAssassin 3.1.1 to SpamAssassin 3.1.4 

There is spamassassin rule lint info after upgrading from 3.1.1 to 3.1.4, if running spamassassin -Dinfo --lint on command line, you will see info line like :

[24649] info: rules: meta test COMBO_IMAGEONLY1 has dependency 'MIME_HTML_ONLY_MULTI' with a zero score
[24649] info: rules: meta test MR_MULT_REF has undefined dependency 'nice'
[24649] info: rules: meta test SARE_MULT_RATW_03 has undefined dependency '__SARE_MULT_RATW_03E'

you can see more info from http://issues.apache.org/SpamAssassin/s ... i?id=4347.

#diff -Nuar ./Mail-SpamAssassin-3.1.1/lib/Mail/SpamAssassin/PerMsgStatus.pm ./Mail-SpamAssassin-3.1.4/lib/Mail/SpamAssassin/PerMsgStatus.pm

--- ./Mail-SpamAssassin-3.1.1/lib/Mail/SpamAssassin/PerMsgStatus.pm 2006-03-10 11:29:55.000000000 -0800
+++ ./Mail-SpamAssassin-3.1.4/lib/Mail/SpamAssassin/PerMsgStatus.pm 2006-07-25 15:02:19.000000000 -0700

@@ -2455,6 +2482,13 @@
$meta{$rulename} .= "$self->{'tests_already_hit'}->{'$token'} ";
$setup_rules{$token}=1;

+ if (!exists $self->{conf}->{scores}->{$token}) {
+ info("rules: meta test $rulename has undefined dependency '$token'");
+ }
+ elsif ($self->{conf}->{scores}->{$token} == 0) {
+ info("rules: meta test $rulename has dependency '$token' with a zero score");
+ }
+
# If the token is another meta rule, add it as a dependency
push (@{ $rule_deps{$rulename} }, $token)
if (exists $self->{conf}{meta_tests}->{$priority}->{$token});

Quote from felicity

" the rules would likely have had these issues for a while (I can't
really comment on non-official rules), but with 3.1.4 there's now info output
showing that there's a problem. (before, people would have had to manually
figure out that meta dependencies have issues)
"

No worry then :)
[ add comment ] permalink ( 3 / 112 )

Back Next