Thursday, December 23, 2010
Saturday, September 4, 2010
Howto Export Emails from Thunderbird into html files, print all these files into readable text in a single file
Hi,
Thought I'd share this with everyone. I wanted to filter my emails from a particular sender, export it and put it together in a text file for reading chronologically.
Here's what I had:
The first part was fairly simple, just filter based on sender. In the search results, select all and click on Tools-ImportExportTools-Export All Messages In Folder - HTML Format
Select the target folder (I created a new one called EmailArchive). Once the activity is completed, you get a folder full of exported html files with names that have the date and subject as filename (you can customize this in preferences too).
Now I created a small shell script to achieve the next (but most difficult) part (for me). The script has the following lines: -
#!/bin/bash
FNAME=Mail_Transactions.txt
for i in *.html
do
echo "Start of Mail ---" $i >> $FNAME
echo "------" >> $FNAME
w3m -dump "$i" >> $FNAME
echo "End of Mail ------" >> $FNAME
echo "------" >> $FNAME
done
When you run this script (in a terminal , cd to the directory that contains the html files), it will create a file called Mail_Transactions.txt that will contain the output of all the mails separated by the two blocks "Start of Mail" and "End of Mail".
Hope this helps!
Thought I'd share this with everyone. I wanted to filter my emails from a particular sender, export it and put it together in a text file for reading chronologically.
Here's what I had:
- Ubuntu Lucid (10.4) as OS
- Mozilla Thunderbird 3.1.2 as email client
- w3m as a text-only browser
ImportExportTools as a Thunderbird add-on
The first part was fairly simple, just filter based on sender. In the search results, select all and click on Tools-ImportExportTools-Export All Messages In Folder - HTML Format
Select the target folder (I created a new one called EmailArchive). Once the activity is completed, you get a folder full of exported html files with names that have the date and subject as filename (you can customize this in preferences too).
Now I created a small shell script to achieve the next (but most difficult) part (for me). The script has the following lines: -
#!/bin/bash
FNAME=Mail_Transactions.txt
for i in *.html
do
echo "Start of Mail ---" $i >> $FNAME
echo "------" >> $FNAME
w3m -dump "$i" >> $FNAME
echo "End of Mail ------" >> $FNAME
echo "------" >> $FNAME
done
When you run this script (in a terminal , cd to the directory that contains the html files), it will create a file called Mail_Transactions.txt that will contain the output of all the mails separated by the two blocks "Start of Mail" and "End of Mail".
Hope this helps!
Friday, July 30, 2010
Tethering your Blackberry Tour with Ubuntu 10.04
I got a new Blackberry 9630 Tour handset from Reliance. Since this phone is a 3G phone and supports EVDO, I wanted to see if I could use this as a modem in place of a separate USB modem from Reliance. Tethering under Windows is well supported by the Blackberry Desktop Software but under Ubuntu, we dont have this luxury!
So I embarked upon a journey to tether the Tour to my laptop running Ubuntu 10.04. I had two options; USB cable or Bluetooth. I couldnt make the cable work using barry-utils though it helped me take backups etc. I then discovered that someone had found a way to make tethering work using bluetooth. I followed the instructions in this link--> http://ubuntuforums.org/showthread.php?t=1476009 . It involves installing an application called blueman. Once installed, the app lets you pair the Tour and also add enable dialup networking. Having done this, I created a new connection under Mobile Broadband in Network Manager and filled up the username + password (the reliance phone number itself). After saving, I could see the Connection available on Network Manager. On clicking, it immediately connected and I was ready to surf!
So I embarked upon a journey to tether the Tour to my laptop running Ubuntu 10.04. I had two options; USB cable or Bluetooth. I couldnt make the cable work using barry-utils though it helped me take backups etc. I then discovered that someone had found a way to make tethering work using bluetooth. I followed the instructions in this link--> http://ubuntuforums.org/showthread.php?t=1476009 . It involves installing an application called blueman. Once installed, the app lets you pair the Tour and also add enable dialup networking. Having done this, I created a new connection under Mobile Broadband in Network Manager and filled up the username + password (the reliance phone number itself). After saving, I could see the Connection available on Network Manager. On clicking, it immediately connected and I was ready to surf!
Tuesday, March 16, 2010
BSNL 3G in Chennai on a Samsung SGH-i780
I got myself a BSNL 3G sim in Chennai. This was a prepaid card for Rs 180/- and had Rs 20/- worth of talktime on it.
Getting it to work was an adventure worth blogging!
I have a Samsung SGH-i780 Windows Mobile Phone with 3G. When I called up the customer care of BSNL, the lady at the other end asked me what phone I had. When I gave her the model number, she said shes never heard of it and wouldnt know if my phone would work!
I then turned to my good ole friend Mr Google. Surprisingly, the community around this is very large. There were people running the 3G service on their iPhones (jailbroken), and other such phones.
I got the information I needed in a matter of minutes. The steps are:-
a) Change the band in the phone's settings to WCDMA. This can be found under "Settings" --> "Phone" --> "More" --> "Band Selection"
Once I did this, I got a warning that wcdma works only in 3G coverage areas!
The moment I did this, I got a large 3G icon on the top status bar of the phone.
b) The next step was to set up the data service. For this I navigated to
"Settings" --> "Connections" ---> "Connections" ---> "Manage Existing Connections" --> "My WAP Networks"
c) Create New Connection by clicking on New in the "Modems" tab.
d) Enter a Name for the connection: "BSNL 3G"
e) Select a Modem: Cellular Line (GPRS)
f) Click Next
g) Access Point Name: "gprssouth.cellone.in"
h) Click Next
i) Leave all the fields in this screen blank (User Name, Password, Domain)
j) Click on Finish.
Open up Pocket Internet Explorer and type in any url say www.google.com
You can see the 3G data connection getting setup. once this happened, I got a small 3G icon sitting atop my signal indicator icon.
Voila... Im connected on 3G!!!
I tried the speed test at speedtest.dslreports.com/m and it showed an amazing 1mbps!
Youtube plays without buffering.
Way to go BSNL; if only they got their act together. I cannot seem to find out where and how to recharge the SIM. The call center lady asks me to go to ezreharge.in but they dont have BSNL as an option!!
But I am so glad that 3G has finally come into the country and it works well too!
Getting it to work was an adventure worth blogging!
I have a Samsung SGH-i780 Windows Mobile Phone with 3G. When I called up the customer care of BSNL, the lady at the other end asked me what phone I had. When I gave her the model number, she said shes never heard of it and wouldnt know if my phone would work!
I then turned to my good ole friend Mr Google. Surprisingly, the community around this is very large. There were people running the 3G service on their iPhones (jailbroken), and other such phones.
I got the information I needed in a matter of minutes. The steps are:-
a) Change the band in the phone's settings to WCDMA. This can be found under "Settings" --> "Phone" --> "More" --> "Band Selection"
Once I did this, I got a warning that wcdma works only in 3G coverage areas!
The moment I did this, I got a large 3G icon on the top status bar of the phone.
b) The next step was to set up the data service. For this I navigated to
"Settings" --> "Connections" ---> "Connections" ---> "Manage Existing Connections" --> "My WAP Networks"
c) Create New Connection by clicking on New in the "Modems" tab.
d) Enter a Name for the connection: "BSNL 3G"
e) Select a Modem: Cellular Line (GPRS)
f) Click Next
g) Access Point Name: "gprssouth.cellone.in"
h) Click Next
i) Leave all the fields in this screen blank (User Name, Password, Domain)
j) Click on Finish.
Open up Pocket Internet Explorer and type in any url say www.google.com
You can see the 3G data connection getting setup. once this happened, I got a small 3G icon sitting atop my signal indicator icon.
Voila... Im connected on 3G!!!
I tried the speed test at speedtest.dslreports.com/m and it showed an amazing 1mbps!
Youtube plays without buffering.
Way to go BSNL; if only they got their act together. I cannot seem to find out where and how to recharge the SIM. The call center lady asks me to go to ezreharge.in but they dont have BSNL as an option!!
But I am so glad that 3G has finally come into the country and it works well too!
Monday, February 15, 2010
Article in Hindu Businessline
This article appeared in Hindu Businessline of 11 Feb 10
http://www.thehindubusinessline.com/2010/02/11/stories/2010021150880900.htm
http://www.thehindubusinessline.com/2010/02/11/stories/2010021150880900.htm
Saturday, January 30, 2010
Subscribe to:
Posts (Atom)