Posts

Showing posts with the label thunderbird

Hacked Google Calender addon for Thunderbird

I was trying to get the add-on 'Provider for Google Calendar' to work reading steps from , but was not able to do so since the option for Google Calender setup as shown in was not coming up. So finally after around 2 hrs of fight looking for help at FAQ, IRC, I finally got the hit and hacked the config file of the extension a bit and was able to do it all. 1. Checked the presence of the 'install.rdf' in the /home/sawrub/.thunderbird/xxxxxxxx.default/extensions/ directory that contained the data corresponding to the calender sync like a snip from it read liek "The Original Code is Google Calendar Provider code" grep -i google \{xx12xx12x1x-5fdc-40c2-873c-223b8a6925cc\}/install.rdf 2. Once the file was there, read through for the dependencies and there the problem was.I was ok with all other things mentioned in the config file except this. <em:requires>       <Description>         <!-- Lightning...

Script to take backup of Mails

The script was written to take the backup of the mails on weekly bases using cron. The script use to kill Thunderbird in my case and then start taking the backup so that no new mail comes in while the backup is in progress, a kind of cold backup. #Script to take backup of Mails #!/bin/bash PID=`pidof thunderbird-bin` LOC="/home/sawrub/.thunderbird/8vqt6zno.default/Mail/" DAY=`date +%F` REPORT="/tmp/Mail_REPORT" echo -e "`date`: Starting Mail Backup" > ${REPORT} echo -e "`date`: Going to Kill Thunderbird, PID : ${PID}" >> ${REPORT} kill -9 $PID >> /dev/null echo -e "`date`: Thunderbird Killed Successfuly" >> ${REPORT} cd $LOC FILE="Mail_${DAY}.tar.bz2" echo -e "`date`: Backup Starts at `date +%R`" >> ${REPORT} echo -e "`date`: The backup will be saved as ${FILE}" >> ${REPORT} tar -cjpf /data/mails_backup/${FILE} * su - sawrub -c thunderbird echo -e "`d...