|
@ -9,8 +9,9 @@ cd `dirname $0` |
|
|
|
|
|
|
|
|
name=$1 |
|
|
name=$1 |
|
|
domainname=$2 |
|
|
domainname=$2 |
|
|
password=$3 |
|
|
login=$3 |
|
|
number=$4 |
|
|
password=$4 |
|
|
|
|
|
number=$5 |
|
|
|
|
|
|
|
|
# cp -ar claws-mail ~/.claws-mail |
|
|
# cp -ar claws-mail ~/.claws-mail |
|
|
|
|
|
|
|
@ -22,6 +23,7 @@ cat claws-mail/accountrc > /tmp/accountrc |
|
|
sed -i -e "s/\$name/$name/" /tmp/accountrc |
|
|
sed -i -e "s/\$name/$name/" /tmp/accountrc |
|
|
sed -i -e "s/\$domainname/$domainname/" /tmp/accountrc |
|
|
sed -i -e "s/\$domainname/$domainname/" /tmp/accountrc |
|
|
sed -i -e "s/\$number/$number/" /tmp/accountrc |
|
|
sed -i -e "s/\$number/$number/" /tmp/accountrc |
|
|
|
|
|
sed -i -e "s/\$login/$login/" /tmp/accountrc |
|
|
cat /tmp/accountrc >> ~/.claws-mail/accountrc |
|
|
cat /tmp/accountrc >> ~/.claws-mail/accountrc |
|
|
|
|
|
|
|
|
if [ ! -f ~/.claws-mail/folderlist.xml ]; then |
|
|
if [ ! -f ~/.claws-mail/folderlist.xml ]; then |
|
@ -32,6 +34,7 @@ cat claws-mail/folderlist.xml > /tmp/folderlist.xml |
|
|
sed -i -e "s/\$name/$name/" /tmp/folderlist.xml |
|
|
sed -i -e "s/\$name/$name/" /tmp/folderlist.xml |
|
|
sed -i -e "s/\$domainname/$domainname/" /tmp/folderlist.xml |
|
|
sed -i -e "s/\$domainname/$domainname/" /tmp/folderlist.xml |
|
|
sed -i -e "s/\$number/$number/" /tmp/folderlist.xml |
|
|
sed -i -e "s/\$number/$number/" /tmp/folderlist.xml |
|
|
|
|
|
sed -i -e "s/\$login/$login/" /tmp/folderlist.xml |
|
|
sed -i -e "s/<\/folderlist>//" ~/.claws-mail/folderlist.xml |
|
|
sed -i -e "s/<\/folderlist>//" ~/.claws-mail/folderlist.xml |
|
|
cat /tmp/folderlist.xml >> ~/.claws-mail/folderlist.xml |
|
|
cat /tmp/folderlist.xml >> ~/.claws-mail/folderlist.xml |
|
|
echo "</folderlist>" >> ~/.claws-mail/folderlist.xml |
|
|
echo "</folderlist>" >> ~/.claws-mail/folderlist.xml |
|
|