Getmail install




















Getmail is capable of delivering mail in a number of different situations beyond just downloading email from a single mail account. This section provides an overview of several more advanced uses of getmail. If you want to use an external program to filter the email retrieved from getmail, modify the destination configuration options in the getmailrc file to resemble the following:.

In this example, when getmail retrieves mail, it is passed to procmail for additional filtering rather than delivering directly to a Maildir. Procmail, like other mail delivery agents MDAs performs additional filtering after mail has been retrieved and before it is delivered to a users' mail store. You may use getmail with any MDA of your choice.

If you want to retrieve mail from more than one server, create a getmail configuration file for each server from which you need to download email. Then, when you call getmail, issue the command in the following form:. You can specify as many rcfiles as you like on the command line in this format.

In this manner you may specify as many accounts as you need, and organize your configuration files with whatever system makes the most sense in context of your deployment. If you would like your system to check for email regularly, you can run the getmail command regularly with cron.

For a more detailed explanation of cron, you may consider the introduction to cron guide. You may specify any option for the cronjob that you can specify on the command line, including multiple getmailrc files.

After the crontab is properly configured, save the file. Getmail will now retrieve new mail every five minutes as specified in the appropriate getmailrc files. You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.

If you have only an earlier version of Python available, you can install the latest version without disturbing your current version, or use getmail version 5. Installing getmail is very easy; just download the tarball distribution, unpack it, change into the directory it unpacks into, and run this command:. That's all there is to it. If you'd like more details on install options, keep reading.

Once you have downloaded or otherwise obtained getmail, unpack it. On GNU-ish Unix-like systems, this means:. Then, change into the extracted getmail directory and start the build process.

The easiest installation method is to use the included setup. Alternatively, you can build a binary package i. When that completes in a few seconds, become root and then install the software.

Only subscribers may post to the list. The list is available for free getmail support from me and other users, for discussions of bugs, configuration issues, documentation, and other technical issues related to getmail.

Read and save the "welcome" message you receive when you subscribe ; it contains valuable instructions about how to use the list. Complete instructions for using the list are sent to you when you subscribe. The list allows plaintext message bodies and plaintext attachments. Do not attempt to send binary files gzip, etc , HTML, or other types, as they will be stripped from your message. If you only want to be notified of new releases of getmail, an announce-only list has been set up.

The list is very low-volume; you can expect to receive only a small number of messages per month. All announcements are sent to both lists, so there is no need to subscribe to the announcements list if you are on the discussion list.

You cannot post messages directly to the announcements list. If you feel you have an announcement regarding getmail which should be distributed, send it to me and request that I send it to the announcements list.

If you wish to use any of my content, please see my detailed copyright statement for terms and conditions of use. All rights reserved; reproduction in any form requires prior written permission of the author. Table of Contents getmail documentation getmail documentation Features Differences from previous versions A note on Python 3 compatibility What about a native Python 3 version? What about this "getmail6" version? I heard it supports Python 3? Windows support available under the free Cygwin package.

It is designed to closely mimic the interface and user experience of getmail version 3, but the new architecture necessitates some differences you will notice: the getmail rc file configuration file format has changed.

If you are upgrading from version 3, you will need to write a new configuration file based on the contents of your old one. The new file format resembles the old in many ways. Each account you retrieve mail from will require a separate rc file, but getmail can operate with multiple rc files simultaneously if you wish to retrieve mail from multiple accounts.

IMAP support is now included, and other protocols can be added with relative ease. Filters can cause messages to be dropped completely. Additional classes for handling new mail protocols, filter types, or destination mailstores can be added without needing to modify the main script at all. Feel free to contact me if you need a custom retriever, filter, or destination class written, or if you want commercial support for getmail.

A note on Python 3 compatibility getmail currently requires Python version 2. Using Python 2 with getmail does not constitute a security risk. This may be named python2. For example, Debian and Ubuntu ship python2. MacOS should have Python 2. If you cannot find a package for your distribution and you probably should be able to , you can download a single-file executable "AppImage" containing Python 2.

AppImage sudo install -m python2. You can build it from source , but I do not recommend this. What about a native Python 3 version? Requirements getmail version 5 requires Python version 2. Full installation instructions Once you have downloaded or otherwise obtained getmail, unpack it. See the section Installing the getmailcore package in a non-standard location if you use this option.



0コメント

  • 1000 / 1000