From f9679d48e3b8f7d76abb64a456c9062b9c020a99 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 17 Apr 2012 22:33:11 +0100 Subject: Added pseudo-code for inbox processing --- inboxes.mdwn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'inboxes.mdwn') diff --git a/inboxes.mdwn b/inboxes.mdwn index dede9c4..15941a5 100644 --- a/inboxes.mdwn +++ b/inboxes.mdwn @@ -95,6 +95,23 @@ from the inbox. This means you need to have a place to put it, even if it is only the trash. We will cover filing systems and other related tools later. + for inbox in inboxes: + while len(inbox) > 0: + item = inbox.pop() + if item.needs_action: + if item.can_be_delegated: + item.delegate() + waiting_for.append(item) + elif item.is_quick: + item.do() + elif len(item.actions) > 1: + projects.append(item) + next_actions.extend(item.actions) + else: + next_actions.append(item) + elif item.may_be_needed_later: + filing_system.put(item) + Bug trackers: not really inboxes -------------------------------- -- cgit v1.2.1