some progress...

This commit is contained in:
Francois Lesueur
2022-12-23 13:50:27 +01:00
parent 5981655b54
commit 215e77c226
8 changed files with 55 additions and 17 deletions

View File

@ -9,8 +9,9 @@ cd `dirname $0`
name=$1
domainname=$2
password=$3
number=$4
login=$3
password=$4
number=$5
# 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/\$domainname/$domainname/" /tmp/accountrc
sed -i -e "s/\$number/$number/" /tmp/accountrc
sed -i -e "s/\$login/$login/" /tmp/accountrc
cat /tmp/accountrc >> ~/.claws-mail/accountrc
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/\$domainname/$domainname/" /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
cat /tmp/folderlist.xml >> ~/.claws-mail/folderlist.xml
echo "</folderlist>" >> ~/.claws-mail/folderlist.xml