Browse Source

added skeleton, fileinput

Sam Flint 10 years ago
parent
commit
90cc514db0
1 changed files with 11 additions and 7 deletions
  1. 11 7
      email2orgsched.org

+ 11 - 7
email2orgsched.org

@@ -25,7 +25,7 @@
 ** Imports
 #+Name: Imports
 #+BEGIN_SRC python
-  import os, sys, re
+  import os, sys, re, fileinput
   from email.parser import Parser as parsemail
 #+END_SRC
 #+CAPTION: use-name-as-caption
@@ -33,6 +33,7 @@ We use each library for a purpose:
  - os :: this is used to access environment variables
  - sys :: is used to access arguments, input
  - re :: used for matching and extraction
+ - fileinput :: used to read message from standard input
  - Parser as parsemail from email.parser :: This is use to parse email messages from standard input
 ** Variables
 #+Name: MiscVars
@@ -60,22 +61,25 @@ We use each library for a purpose:
   <<ParseSubject>>
 #+END_SRC
 #+CAPTION: use-name-as-caption
-*** Output
+*** TODO Output
 #+Name: Output
 #+BEGIN_SRC python
-
+  def output(datadict):
+     ...
 #+END_SRC
 #+CAPTION: use-name-as-caption
-*** Determine Type
+*** TODO Determine Type
 #+Name: DetermineType
 #+BEGIN_SRC python
-
+  def determineType(datadict):
+     ...
 #+END_SRC
 #+CAPTION: use-name-as-caption
-*** Parse subject
+*** TODO Parse subject
 #+Name: ParseSubject
 #+BEGIN_SRC python
-
+  def parseSubject(datadict):
+     ...
 #+END_SRC
 #+CAPTION: use-name-as-caption
 ** Main body