This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Pyprocmail is a python parser and AST definitions for procmail’s procmailrc files.

The grammar of procmailrc files is build after quickref.html.

Installation

Install with pip:

sudo pip install pyprocmail

or from source code:

sudo make install

Basic usages

In [1]: import pyprocmail

In [2]: prc = pyprocmail.parse("examples/procmailrc1")

In [3]: prc
Out[3]:
[<pyprocmail.procmail.Comment at 0x7fdaf8dc1fd0>,
 <pyprocmail.procmail.Comment at 0x7fdaf8dc8850>,
 <pyprocmail.procmail.Comment at 0x7fdaf8d9d790>,
 <pyprocmail.procmail.Comment at 0x7fdaed0bb4d0>,
 <pyprocmail.procmail.Comment at 0x7fdaed0bbf90>,
 <pyprocmail.procmail.Comment at 0x7fdaed0bbd90>,
 <pyprocmail.procmail.Comment at 0x7fdaed0b10d0>,
 <pyprocmail.procmail.Comment at 0x7fdaed0b1bd0>,
 <pyprocmail.procmail.Assignment at 0x7fdaed0c52d0>,
 ...
 <pyprocmail.procmail.Comment at 0x7fdaed0c8ad0>,
 <pyprocmail.procmail.Recipe at 0x7fdaed0c8bd0>,
 <pyprocmail.procmail.Comment at 0x7fdaed0c8c10>,
 <pyprocmail.procmail.Recipe at 0x7fdaed0c8cd0>]

In [4]: prc[8].render()
Out[4]: u'PATH=/bin:/usr/bin:/usr/local/bin:/opt/local/bin/:$HOME/bin:$HOME:'

In [5]: prc[-1].is_recipe()
Out[5]: True

In [6]: prc[-1].action.is_save()
Out[6]: True

In [7]: prc[-1].action.path
Out[7]: u'/dev/null'

In [8]: prc[-1].action.path = "INBOX"

In [9]: print prc[-1].render()

:0
INBOX
Release History

Release History

0.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyprocmail-0.1.1.tar.gz (11.9 kB) Copy SHA256 Checksum SHA256 Source Dec 27, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting