PDA

View Full Version : Installing ypops (YahooPOPS) - Made easy.



onemyndseye
12-19-2006, 11:29 AM
Ok...for my 2nd contribution I give you an easy setup and install of the excellent program ypops which allows you to check your Yahoo!Mail with any POP3 (Mozilla compatible) email program. Without paying for the premium Yahoo Account...

Youll need the simple installer script that I made:
Copy the following and paste it into a file named ypops.install and save
then chmod +x ypops.install



!/bin/bash
##
###
#### This basic install script was created to copy everything to the correct place and set afew sym links.
#### so that all logging output ends up and in correct places and the HTML debugging output from ypops stays
#### contained.


########### Edit here if you want #########
# Make sure ypops is in its OWN FOLDER!!!

INSTALL_DIR=/usr/bin/ypops/
ETC_DIR=/etc/ypops/

SYSLOG_DIR=/var/log/ypops/

BIN_DIR=/ysr/bin/

####### END Settings ########



echo Installing YahooPOPs! ....

echo .... Creating directories ...
mkdir $INSTALL_DIR
mkdir $ETC_DIR
mkdir $SYSLOG_DIR

echo .... Copying files ....
cp ypops $INSTALL_DIR
cp ypops.ini $ETC_DIR
cp ypops.ini $ETC_DIR\ypopsrc
cp yahoopops.sh $BIN_DIR
echo "" >$SYSLOG_DIR\ypops.log

echo .... Creating links ....
ln -s $ETC_DIR\ypops.ini $INSTALL_DIR\ypops.ini
ln -s $ETC_DIR\ypopsrc $INSTALL_DIR\ypopsrc
ln -s $SYSLOG_DIR\ypops.ini $INSTALL_DIR\ypops.log


# This is for security... wouldnt want your email accesible through debugging output now would you?
echo ... Setting permissions ...
chmod 0600 $INSTALL_DIR


echo ""
echo Done! run yahoopops.sh to start/stop YahooPOPs.
echo ""




Youll also need the loader script. Same as above - paste into a file named yahoopops.sh


#!/bin/bash
##
###
####

######## Settings ###############
YPOPS_HOME=/usr/bin/ypops/
YPOPSINI=/etc/ypops/ypops.ini
####### END Settings ############

LAST_DIR=$PWD
SMPT=` grep -A 0 SmtpPort= $YPOPSINI `
POP3=` grep -A 0 Pop3Port= $YPOPSINI `
PARM=$1

if [ "$PARM" ]; then
if test $PARM = start
then cd $YPOPS_HOME ;
echo Starting YahooPOPs! ..... ;
./ypops &
echo Â*Â* Â*Â* Â*Â* Â*Â*$SMPT ;
echo Â*Â* Â*Â* Â*Â* Â*Â*$POP3 ;
echo "" ;
cd $LAST_DIR ;
echo YahooPOPs was started! ;
echo "" ;
else if test $PARM = stop
then echo Stopping YahooPOPs! .... ;
YPOPSPID=` ps -C ypops -o pid= ` ;
kill $YPOPSPID ;
fi
fi
else echo "Usage: ./yahoopops.sh start -or- ./yahoopops.sh stop"
fi




You can save yourself the trouble of creating to script yourself if youd like by downloading from my thread on the ypops forum:
http://www.ypopsemail.com/index.php?name=PNphpBB2&file=viewtopic&p=10733



Take care,
-Justin
One Mynds Eye