frenchie/icalparse.git
11 years agoMerge branch 'master' into cgi
James French [Mon, 4 Mar 2013 08:46:27 +0000 (16:46 +0800)]
Merge branch 'master' into cgi

11 years agoFacebook Organiser Fix & iCal Workaround
James French [Tue, 14 Jun 2011 10:51:40 +0000 (18:51 +0800)]
Facebook Organiser Fix & iCal Workaround

- iCal/iPhone don't like multiple EXDATES on one line, break them out into
  seperate entries
- Changed where the organiser sits for facebook events that are group organised
- Todo: specify rule lists
- Ignored some files

11 years agoInput sanitisation
James French [Mon, 4 Mar 2013 07:51:58 +0000 (15:51 +0800)]
Input sanitisation

- UID must be numeric
- Key must be alphanumeric & 16 chars long
- Fixed missing vobject import

11 years agoNew CGI Script
James French [Mon, 4 Mar 2013 07:30:52 +0000 (15:30 +0800)]
New CGI Script

- Script is for parse of facebook calendars only due to input sanitisation
- May or may not contain dragons

11 years agoignoring a couple more files
James French [Mon, 4 Mar 2013 07:16:12 +0000 (15:16 +0800)]
ignoring a couple more files

13 years agoLeft in some erroneous Print Statements
James French [Wed, 15 Jun 2011 15:53:58 +0000 (23:53 +0800)]
Left in some erroneous Print Statements

13 years agoOutlook improvements
James French [Wed, 15 Jun 2011 15:50:41 +0000 (23:50 +0800)]
Outlook improvements

13 years agoParser rules update.
James French [Tue, 14 Jun 2011 16:07:27 +0000 (00:07 +0800)]
Parser rules update.

- Extended Content Rules made a little less zealous
- Facebook organiser included in the description (Google Calendar hides it)
- Multiple EXDATE entries broken out from single lines to multiple.

13 years agore-added license (whoops). Copyright this year 0.8 version-0.8
James French [Mon, 13 Jun 2011 15:39:53 +0000 (23:39 +0800)]
re-added license (whoops). Copyright this year

13 years agoVobject implementation
James French [Mon, 13 Jun 2011 15:28:56 +0000 (23:28 +0800)]
Vobject implementation

13 years agoBeginning of a series of changes to use vobject
James French [Mon, 13 Jun 2011 14:31:22 +0000 (22:31 +0800)]
Beginning of a series of changes to use vobject

It makes more sense to use a maintained library. What was an exercise in
unicode and ical RFCs is easier done by other people

14 years agoMuch more robust about handling Content-Type 0.7.2 version-0.7.2
James French [Thu, 5 Aug 2010 06:36:34 +0000 (14:36 +0800)]
Much more robust about handling Content-Type

Can handle multiple content-type lines which is a _good_ thing.
Will correctly identify the charset parameter (if supplied) and go with that.
Content sniffing is not specified by the RFC so it won't be implemented.

14 years agoHandles MIME encodings from FTP now too
James French [Thu, 5 Aug 2010 05:56:01 +0000 (13:56 +0800)]
Handles MIME encodings from FTP now too

* Provided the remote end specifies what it is.
* Default behaviour is to follow the RFC ie use remote if given or assume UTF-8

14 years agoUnicode support for urllib2/http
James French [Tue, 3 Aug 2010 08:22:05 +0000 (16:22 +0800)]
Unicode support for urllib2/http

14 years agoMuch better unicode support
James French [Tue, 3 Aug 2010 08:03:24 +0000 (16:03 +0800)]
Much better unicode support

14 years agoRemoved erroneous comments
James French [Tue, 3 Aug 2010 05:02:37 +0000 (13:02 +0800)]
Removed erroneous comments

14 years agohttplib2 passes remote encoding (if any) through
James French [Tue, 3 Aug 2010 05:00:16 +0000 (13:00 +0800)]
httplib2 passes remote encoding (if any) through

Minor code refactor to allow for the change.

14 years agoFixed missing length parameter 0.7.1 version-0.7.1
James French [Mon, 2 Aug 2010 16:34:00 +0000 (00:34 +0800)]
Fixed missing length parameter

14 years agoA step closer to real unicode support
James French [Mon, 2 Aug 2010 16:18:48 +0000 (00:18 +0800)]
A step closer to real unicode support

Doesn't glob multi-byte characters at line folds

14 years agoBetter unicode support as per the RFC(s)
James French [Mon, 2 Aug 2010 08:29:31 +0000 (16:29 +0800)]
Better unicode support as per the RFC(s)

Will unfold lines and then treat them as UTF-8.
Before folding lines, they're converted to 8-bit strings and split at 75 octets.

14 years agolost a line break in the license for parserrules.py
James French [Mon, 2 Aug 2010 08:12:30 +0000 (16:12 +0800)]
lost a line break in the license for parserrules.py

14 years agoSome cleanup
James French [Mon, 2 Aug 2010 08:08:15 +0000 (16:08 +0800)]
Some cleanup

Fixes broken comments
Makes the verbose option actually verbose

14 years agoWrite output, ready for primetime 0.7 version-0.7
James French [Mon, 2 Aug 2010 07:03:48 +0000 (15:03 +0800)]
Write output, ready for primetime

14 years agoAdded License message to parserrules
James French [Mon, 2 Aug 2010 06:38:12 +0000 (14:38 +0800)]
Added License message to parserrules

14 years agoMore efficient lineFolder implementation
James French [Mon, 2 Aug 2010 06:35:01 +0000 (14:35 +0800)]
More efficient lineFolder implementation

14 years agoRejoins fields into lines ready to be folded
James French [Mon, 2 Aug 2010 06:30:33 +0000 (14:30 +0800)]
Rejoins fields into lines ready to be folded

14 years agoRules implemented
James French [Mon, 2 Aug 2010 06:24:06 +0000 (14:24 +0800)]
Rules implemented

14 years agoLoads rules from a source file
James French [Mon, 2 Aug 2010 05:54:34 +0000 (13:54 +0800)]
Loads rules from a source file

14 years agoSplits in prep for running the rules
James French [Mon, 2 Aug 2010 05:49:27 +0000 (13:49 +0800)]
Splits in prep for running the rules

14 years agoAdded rules.py
James French [Mon, 2 Aug 2010 05:47:52 +0000 (13:47 +0800)]
Added rules.py

Provides documentation of how the rules work

14 years agoAdded .gitignore
James French [Mon, 2 Aug 2010 05:13:45 +0000 (13:13 +0800)]
Added .gitignore

14 years agoCatching some more exceptions
James French [Mon, 2 Aug 2010 05:12:33 +0000 (13:12 +0800)]
Catching some more exceptions

14 years agoFixed the unfold function
James French [Mon, 2 Aug 2010 05:05:47 +0000 (13:05 +0800)]
Fixed the unfold function

* Correctly identifies folds and removes them
* Checks for a complete ICS file before doing anything

14 years agoChecks for the correct opening stanza
James French [Mon, 2 Aug 2010 04:54:00 +0000 (12:54 +0800)]
Checks for the correct opening stanza

14 years agoURLs open much more robustly now
James French [Mon, 2 Aug 2010 04:25:26 +0000 (12:25 +0800)]
URLs open much more robustly now

14 years agoRemoved depricated regular expression
James French [Sun, 1 Aug 2010 16:06:41 +0000 (00:06 +0800)]
Removed depricated regular expression

14 years agoComment cleaup, added function
James French [Sun, 1 Aug 2010 16:04:49 +0000 (00:04 +0800)]
Comment cleaup, added function

14 years agoMuch simplified unfolding function
James French [Sun, 1 Aug 2010 15:57:32 +0000 (23:57 +0800)]
Much simplified unfolding function

14 years agoBug fix: Properly reads from stdin
James French [Sun, 1 Aug 2010 08:18:57 +0000 (16:18 +0800)]
Bug fix: Properly reads from stdin

14 years agoNow parses urls/files okay
James French [Sun, 1 Aug 2010 07:18:39 +0000 (15:18 +0800)]
Now parses urls/files okay

14 years agoReplaced getopt with optparse (which will need to be replaced again)
James French [Sun, 1 Aug 2010 06:11:22 +0000 (14:11 +0800)]
Replaced getopt with optparse (which will need to be replaced again)

14 years agoInitial Commit, includes folding and unfolding lines
James French [Sun, 1 Aug 2010 05:44:48 +0000 (13:44 +0800)]
Initial Commit, includes folding and unfolding lines

UCC git Repository :: git.ucc.asn.au