This morning on my way to work I’m inexplicably happy despite a day of work ahead of me. The fact that it is snowing (though only a paltry amount) could be a factor as that cheers me no end. Also I trimmed my beard last night which always makes me feel ten years younger. But I think it’s mainly because Jo was singing Friday I’m In Love earlier and it’s earwormed me and I’ve been singing it to myself all the way to work. Happy Friday everyone :-).
No film has ever made me cry so much as Grave of the Fireflies. From about 5 minutes into it until about an hour after it I was just bawling my eyes out. Even just reading that article has made my eyes well up again.
I really want to watch all the Ghibli films again now but maybe not Grave of the Fireflies, that would be too much…
I love mutt. It is a very flexible and powerful email client but it can be quite hard getting the initial setup right. When I switched it from using pop3 to imap/smtp I had a few problems getting it to work.
First I was getting the following error whenever I tried to send a message:
It turns out I needed to add my email address (e.g. firstname.lastname@example.org) before the server name:
The next problem was after I left mutt for a while and came back to it I was getting the following error:
tls_socket_write (Error in the push function.)
This was caused by the connection to the server timing out. By default mutt polls the server once every 10 minutes. You can fix this by changing the timeout property in muttrc. I changed mine to 60 seconds and now all seems fine:
Another problem is the password. Two passwords are required: imap_pass for retrieving the mails and smtp_pass to send a message. If you leave these blank then mutt will prompt you for them but this means you have to enter the password twice (once when you open mutt and again when you send your first message) and also any changes to your mailbox won’t be synced back to the server unless you’ve already sent a message.
I could store the passwords in the file but don’t like leaving then in plain text in a file on my hard drive. I could encrypt them (as described here http://www.vigasdeep.com/mutt-encrypting-password-with-gnupg/) but then I would need to type a passphrase in to decrypt the password which kind of defeats the object or I could encrypt them with a key with no passphrase but that is not really much more secure than storing in plain text (though I guess that’s what other mail clients must do).
What I did was write a command in the muttrc to read in the password at startup and store in a variable which is then used by both imap_pass and smtp_pass.
set my_pass=`stty -echo; read -p 'Password: ' tmppwd; echo $tmppwd; tmppwd=; stty echo`
The variable is called “my_pass” because mutt requires user defined variables to be prefixed with “my_“. The “stty -echo” is to stop the user input being displayed while they type the password and “stty echo” is to turn it back on again.
Finally, I was used to using G to refresh the inbox. Though with it now refreshing every 60 seconds it is not really necessary, but I’m impatient and I’d still like to sometimes be able to check for new emails instantly instead of waiting for a whole minute for them to show. I did it by binding the imap-fetch-mail command to G in my muttrc as follows:
The other day I accidentally cyber-stalked Marianthi when bandcamp sent me an email saying that she’d just bought some records by Oh Peas! (I’m a really big fan of bandcamp but I’m not keen on it being social-networkized – I just want it to be a place to buy records).
I really liked the name so I bought the Year of the Horse EP and it’s great! I keep listening to the title track. The rest of the EP is probably good too but when I get to the end of the first track I just want to listen to it again. It’s been making me grin all the way to and from work everyday this week. There’s an album too which I haven’t got yet but will do soon.
On my lunch break today I took a photo of some pretty pink flowers in the River Don but they were too far away for the camera on my phone to show them. It turned out to be quite a nice picture of Lady’s Bridge anyway.