TIL that if you have a Gmail address (e.g. email@example.com), then you also have a firstname.lastname@example.org address. Give it a try. Send something to your googlemail.com address, and it will be delivered to you gmail.com inbox.
This tip is from here.
My Android phone got very slow. It started about a week ago. When I visit Gmail, for instance, I have to wait minutes until my new messages appear. If they appear at all… Often, messages are not updated. I click on “refresh”, I wait 2 minutes, but I still get the old messages. What da hell?
In this forum thread I found the following tip:
“EDIT: I found the solution… Go into the Market and install AdFree. Update the host file and reboot to clear DNS, everything back to normal. Myn’s is preloaded with the Adfree host file and it became outdated.“
AdFree requires root privileges. Doing the rooting process and installing AdFree, my phone got much faster :) I need a few more days/weeks to test it but it looks promising.
“Gmail supports an undocumented ‘size’ search operator that will let you quickly find all the big emails in the mailbox whose size exceeds a particular threshold. The search syntax is:
size:[size in bytes]
To give a real example, a Gmail search query like ‘size:5242880′ will list all big emails whose size is 5 MB or greater while ‘size:10485760′ list messages that are bigger than 10 MB.“
Amit Agarwal wrote a great post on how to analyze why your email was delivered late.
- get the original email message (“show original”)
- copy the whole header and insert it in this application: MessageHeader Google Apps Toolbox
- it will analyze and show you where the delay occurred
I wanted to send an email notification from command line. I launched a program on my desktop machine at my workplace that would require some days to finish. I want to know when it’s finished and I want to get the result too.
The email will be sent via gmail, it’s the easiest solution. Here, Sid explains nicely how to configure ssmtp on a desktop. Here I repeat the steps:
sudo apt-get install ssmtp“.
Edit the file
/etc/ssmtp/ssmtp.conf and add the following content:
email@example.com mailhub=smtp.gmail.com:465 rewriteDomain=gmail.com AuthUser=username AuthPass=password FromLineOverride=YES UseTLS=YES
For this purpose, I created a dedicated Gmail account.
Test if it works: “
ssmtp firstname.lastname@example.org < filename.txt“.
You can also send emails with the command “
mail -s "Subject of the mail" email@example.com < result.txt
In the intro I mentioned that I want to get the result of a slow program. Here is how I did it: the program writes the result in a file called “
result.txt“. When it’s finished, a shell script is called that sends the content of
result.txt to me:
time ./pe_211.d && ./send-mail.sh
send-mail.sh looks like this:
#!/usr/bin/bash mail -s "PE 211" firstname.lastname@example.org < result.txt
- How to send email from the Linux command line (it didn’t work for me out of the box, I had to edit first
ssmtp.conf, as described above)
- smtp-cli — command line SMTP client (a powerful SMTP command line client with a support for advanced features, written in Perl)
- How to send mail from the command line?
You create a Gmail account for your Mom and a year later she signals that it’s almost full. You told her to delete those “funny” Powerpoint presentations she received but she didn’t listen. How to help her out?
On my current machine I have lots of free space so I decided to save her mails here. I made a new account for her but I didn’t want to log out from mine while fetching her mails. Here is what I did:
- I made a new account for her (System Settings -> User Accounts, Add). Set her password.
sudo xhost local:mom(where ‘
mom‘ is her username)
su - mom
xhostyou’d get an error:
Error: cannot open display: :0)
- set up her account in thunderbird and download her emails via IMAP
- sort emails by size and delete the biggest ones
Read this post too (Thunderbird + GMail).
Mom managed to reduce her space occupation to 37%. What is this if not a full success? ;)