Skip to content
Browse files

Minor check in script, requirements in README

  • Loading branch information...
1 parent ceb651e commit 98f37f5de46cddcfc4a27cb73f962bc8e4b7ea0e Martin Sander committed Oct 2, 2009
Showing with 7 additions and 0 deletions.
  1. +4 −0 README
  2. +3 −0 mutt-ical.py
View
4 README
@@ -12,6 +12,10 @@ files to call this script, add lines like:
To reply, just open the ical file from mutt.
+Requirements:
+mutt, python, bash, vobject:
+http://vobject.skyhouseconsulting.com/
+
Inspired by:
http://weirdzone.ru/~veider/accept.py
http://vpim.rubyforge.org/files/samples/README_mutt.html
View
3 mutt-ical.py
@@ -129,6 +129,9 @@ def execute(command, mailtext):
attendees = invitation.vevent.contents['attendee']
set_accept_state(attendees,accept_decline)
ans.vevent.contents['attendee'] = [i for i in attendees if i.value.endswith(email_address)]
+ if len(ans.vevent.contents) < 1:
+ sys.stderr.write("Seems like you have not been invited to this event!\n")
+ sys.exit(1)
icsfile, tempdir = write_to_tempfile(ans)

0 comments on commit 98f37f5

Please sign in to comment.
Something went wrong with that request. Please try again.