See the Mutt manual for this and more, which is also installed when you get the program. I have tested these settings and they work fine look around for more settings to customise your Mutt experience, as macros can be used with the program to give it extra functionality. muttrc, just type mutt in the terminal and enter your password when prompted. Set message_cachedir=~/.mutt/cache/bodies 96-97.) set from = realname = "Your Name" (Note: these settings are based on the Linux Format article on Mutt, LXF134, August 2010, pp. Then enter the following settings in there for the password I have left it "" so that you are prompted, as it's not a good idea to put your password in a plain text file like. mutt folder, but just in your home folder. muttrc to store your settings, although this does not go in the. mutt and within that create another one called cache It takes a little while to set up, but here's basically the quickest way to do it: The following instructions refer to setting it up for gmail using the imap and smtp protocols (make sure imap is enabled in your gmail account settings ). I have found that Mutt is highly configurable and fairly straightforward once you get used to it. You could use the program Mutt, which is available in the repositories. (The question was about generally accessing email via the terminal, before the question poser specified getmail, but attachments are easily saved in Mutt also: see my note below) It will decode and save the attachments in individual files: $ munpack mail.txt txt file for each email (yes, the one that contains all the gibberish from the attachments). I haven't used it setup may be easier than with fetchmail.Īs for your need to save attachments included in emails, what you need is to install mpack. The MTA would presumably then append the emails to /var/mail/$USER, and you can then read this file to do your processing.Īnother tool that may work is offlineimap. So you'd need to have a locally-configured MTA for this setup to work. One thing with fetchmail is that it slurps emails from the remote server and then pipes them through your local MTA. You can install it easily in Ubuntu, then google for specific configurations to use with gmail. How that client makes them available on the disk can vary.īy far the most widely-used command-line IMAP client has to be fetchmail. Gmail provides an IMAP service through which you can use any client that supports that protocol to fetch your e-mails.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |