weighmail

Labels your Gmail messages according to size
Download

weighmail Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Brian Neal
  • Publisher web site:
  • https://bitbucket.org/bgneal/

weighmail Tags


weighmail Description

weighmail is a software that analyzes your Gmail and applies labels to your messages according to their size. This is useful if you are close to reaching your quota as it allows you to quickly identify large messages. You have complete control over the rules used to create the labels.Installationweighmail can be installed using Pip: pip install weighmailAlternatively you can download a tarball and install with: python setup.py installweighmail depends on the IMAPClient library. This library is automatically installed if you use Pip.Gmail NotesIn case it isn't clear, weighmail works with Gmail. You must have a Gmail account with IMAP support turned on. Please go into your settings and verify IMAP support is turned on before proceeding.If you are using two-step verification on your Gmail account (and you really should be), you need to generate an application specific password for weighmail to use. In this case you will use an application specific password instead of your normal password when running weighmail.Usageweighmail can accept options from a configuration file and/or the command-line. Command-line arguments always take precedence over options found in the configuration file.Command-Line Argumentsweighmail takes a fair number of arguments on the command-line. Most of these can be omitted however, as they all have sensible defaults. In fact, the simplest way to run weighmail is as follows: weighmail --labels big:1MB-5MB huge:5MB-10MB enormous:10MB-This example demonstrates:- A big label will be applied to messages between 1 and 5 Megabytes- A huge label will be applied to messages between 5 and 10 Megabytes- An enormous label will be applied to messages 10 MB and bigger- Since no user or password options were supplied on the command-line, weighmail will interactively prompt for them. Neither will be echoed out for privacy reasons.To see a list of all command-line options: weighmail --helpSome notes on the options follows.- The --config option is used to specify a configuration file that weighmail will read for options. Any options supplied on the command-line will override any options from this file. In particular, if you specify any label rules on the command-line, all label rules in the configuration file will be ignored.- The --folder option can be used to specify which Gmail label to search for messages. This defaults to your All Mail label.- The --user and --password options are used to specify which Gmail account to log into. If these are not supplied, and also omitted from a config file (or if no config file is being used), weighmail will prompt you for these options.- The --labels argument is how you specify the rules for labeling your messages. See the sub-section below for more detail on this syntax.- The --host, --port, and --nossl arguments are for advanced use only, and may in fact not work. The defaults should work for most people, and will connect you to imap.gmail.com port 993 using SSL.The --labels argument syntaxTo specify label rules on the command-line, use the following syntax: weighmail --labels name:min-max ...Where:- name is the name of the label. Note that Gmail labels cannot have spaces in them.- min and max specify the message size range in bytes. Either one, but not both, may be omitted (but the dash must remain). You may use the suffixes KB, MB, or GB to indicate kilobytes, Megabytes, or Gigabytes, respectively.Another example: weighmail --labels normal:-2MB big:2MB-7MB huge:7MB-In all these examples the label ranges do not overlap. This does not have to be the case; overlapping ranges may be defined if desired.Configuration FileIf you specify the --config=filename option on the command-line, weighmail will parse this file for options. Please see the included sample-weighmail.ini file for the syntax and option descriptions.Again, note that command-line arguments take precedence over options found in the configuration file. If you specify any label rules on the command-line, all label rules in the configuration file are ignored.Product's homepage


weighmail Related Software