The web tracking form for the USPS changed. Again. Updated. The USPS has a less volatile API, but as far as I can tell it requires every user to register, which is a deal-breaker for this kind of script. Reference: /n/sources/patch/applied/usps-update-20090708 Date: Wed Jul 8 16:52:06 CES 2009 Signed-off-by: a@9srv.net --- /rc/bin/usps Wed Jul 8 16:48:37 2009 +++ /rc/bin/usps Wed Jul 8 16:48:29 2009 @@ -9,16 +9,12 @@ rfork e -hget -p 'tracknbr='^$1 http://www.framed.usps.com/cgi-bin/cttgate/ontrack.cgi | - tr -d ' ' | - sed 's/<[^>]*>//g' | - sed 's/\"/"/g;s/\<//g;s/\&/\&/g' | - sed 's/\&(copy|nbsp);//' | - grep -v Copyright | - grep -v 'You can track' | - grep -v 'Enter the number' | - grep -v 'Item Number:' | - sed 's/[ ]*$//' | - uniq | - fmt +hget -p 'origTrackNum='^$1 http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do | + htmlfmt > /tmp/usps.$pid +sam -d /tmp/usps.$pid >[2] /dev/null <<'!' +0,/Label/-1d +/^Enter Label/,$d +,p +! +rm /tmp/usps.$pid