~ubuntu-branches/ubuntu/raring/mailcrypt/raring-proposed

« back to all changes in this revision

Viewing changes to tests/remailer/maildir.py

  • Committer: Bazaar Package Importer
  • Author(s): Barak A. Pearlmutter
  • Date: 2010-04-14 12:57:48 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100414125748-11o34zfzy6153krw
Tags: 3.5.9-3
* Merge upstream changes
* Make build work without emacs (closes: 577380)
* Perform updates deferred until upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        self.files = []
26
26
        self.pollinterval = 10  # only used if we don't have DNotify
27
27
        self.running = 0
28
 
        
 
28
 
29
29
    def start(self):
30
30
        """You must run start to receive any messages."""
31
31
        if self.running:
48
48
        print "callback"
49
49
        self.poll()
50
50
        raise NotImplemented
51
 
        
 
51
 
52
52
    def stop(self):
53
53
        if have_dnotify:
54
54
            self.dnotify.remove()
83
83
    import signal
84
84
    while 1:
85
85
        signal.pause()
86
 
    
 
86
 
87
87
if __name__ == '__main__':
88
88
    test1()
89
 
    
 
89