I am coding some scripts for sending via irda to my PDA with another irda that has a triggering on the remote control. OK. What I would need is as follows.
With MUTT, I configured it so that I can read my emails with the IMAP and gmail. It is cool. It is working with the last
mutt: invalid option -- '-'
Mutt 1.5.20 (2009-06-14)
which is annoying with "--" but ok, it works.
I would like that a script export the last 10 emails to 10 x TXT files with in it:
How to manage such thing?
Using Gmail with mutt, the minimal way (IMAP update)
with 42 comments
As Gmail has IMAP access, it is fairly trivial to get it working with mutt. First, if you’re on Ubuntu/Debian, run sudo apt-get install openssl mutt to get mutt if you don’t already have it. Then, just put the following lines into your ~/.muttrc:
set imap_user = "email@example.com"
set imap_pass = "password"
set smtp_url = "smtp://firstname.lastname@example.org:587/"
set smtp_pass = "password"
set from = "email@example.com"
set realname = "Your Real Name"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set move = no
Make sure your ~/.muttrc isn’t world-readable; it contains your password. (Alternatively, you can leave them out and mutt will prompt you for the password each time.) Also, if you copy-paste from the above, make sure that you have only “normal” quotes, not “smart quotes” which WordPress might have inserted here into this post.
[Other things I have:
set sort = 'threads'
set sort_aux = 'last-date-received'
hdr_order Date From To Cc
I did not include above to justify the "minimal" ]
Things work perfectly as you would expect them.
One thing to note is that the full headers will still contain the hostname of the computer you send messages from. I have not figured a way of hiding this, and perhaps it shouldn’t be possible.
If for some reason you want to use POP, read on. And tell me why you would want to use POP. The rest of the post is an old version, which i had written before Gmail supported IMAP.