libbuffy-bindings-0.15ubuntu1/0000775000000000000000000000000012244053476013257 5ustar libbuffy-bindings-0.15ubuntu1/README0000664000000000000000000000055012244053156014132 0ustar README for the buffy bindings ============================= This package builds buffy bindings for various languages. Packaging this as a single source is interesting and tricky. Ideally, this packaging should allow to easily add more language bindings as needed. TODO ---- * Ensure that all the packages are compliant with the policy of their language libbuffy-bindings-0.15ubuntu1/tests/0000775000000000000000000000000012244053476014421 5ustar libbuffy-bindings-0.15ubuntu1/tests/mboxgz/0000775000000000000000000000000012244053476015727 5ustar libbuffy-bindings-0.15ubuntu1/tests/mboxgz/test.mbox.gz0000664000000000000000000001001712244053156020206 0ustar Btest.mboxZksȶo,! 8001cLR;BjH&L ~ɩ5Lel~rp&'8#,fYU+_5-f]$MU+ga ^*Ec11s=A~ 80 ۻe Yg9/e{l&!kv;L\n*Jaka~ݺD1A 7<75q#؀&lϝS!}=q,Ӵ'@{ Vlq| ]-8žI# D/4p~mhXa9X-ic KbT۵sտPB_mazn?:siwBşSl$D}pf[D\ČN$ !g0Y&$1v =b-ȭL8svkN$9(m ,NqAíațd ^x SJ5t\c b8tiw|cD ]$ DI&Qfu44ކC $>LGZPS'Q)`@0+ZHՒK"D`ݐi|<6NZ#\oQ# `0A SDQ ֧X2!ZɋRlcQb3= FkAP4]H``%$;qRڼDCX-o#̧iǗoǞ'GJH:iDJZKTFY,#o~D #="YY -" q^H65XF 0 4FH]b :mt,uKaZ )6O [wR^ NxN2e,d~Ddl>)+TBcRd_$APe:¦<,/\2"PcX6Iv4؄pd_4̌? FebaܛYTYu*M@Ne9 #;B6LcҰ?ug*;A+2Y'@$Z$DnSw,?v~|!.!TU:ߜϗk`ߗ4~$m]X^2tΡv8yG9#dfL.Y|1oǵB)"݌'[J<gș\Jtp,@ Vp5U 5Jc3B&xuQ58~&/ǩA=qmHvT>zd/U ;$K۲boO0HPxr/mև{[)f8sxeͶ 2^Ou+<UBGJ՞@n3EAOVY`b&EJ*U=FX| 9EiŘr^z{AGf1ӀID\o(|gib*wzq8wB7̴O0yը PB߇ASHškKPψ=TUiaBG+`c@)-x8BA'ԪY$랰=R3 *o~Vp=Ypܜ֢n8ta5/NقW: c?ZzI]T:p@-9aT<[ohkMih):/ 0ž QȬBVI"lY=TK^ .E,q#r~V/YG _*=NjX;*̜Ͳ"6HL 7T!? m K dy{8nyɲ `XO(~VidYwo_/V;З-*9e~BݑVTjX)6'ʃw*\ZuX D6yc:[~z:UܨZ/+X-u lV,YteA~.`!5bٰ z+SJ?DBܥ25 +mcҡXweY$7~Hrl1mۦjsã{tz٘}w6/׊;\Yݣ% m s*b?],tYemmgo9g%aI-(Z{]=x qB] m*sþ`0v8SG~Wȥ zL5r،SBk t`  eWwf\]>ɮd;Q⨊>AO͊bDG!Ч[#0IrLArs10 t5-ǯI42BgD7os.s;$^ߐrqbqi#2+s&/tcΨ579 lyfx!., "d}1]NA"}kJRު̘y<&?lK anpna;z|Z_~?ֽ|g2˟=هr'Qhr>\?ghvz!<;.5ܦ}:WoAI4libbuffy-bindings-0.15ubuntu1/tests/mboxgz/empty.mbox.gz0000664000000000000000000000003712244053156020366 0ustar Bempty.mboxlibbuffy-bindings-0.15ubuntu1/tests/test.py0000775000000000000000000001646412244053156015763 0ustar #!/usr/bin/python import Buffy import unittest class BuffyTestConfig(unittest.TestCase): def setUp(self): self.config = Buffy.Config("test-config.txt") # Test Config def testConfig(self): self.failUnless(self.config) self.failIf(self.config.view().read()) self.failIf(self.config.view().empty()) self.failUnless(self.config.view().important()) self.assertEqual(self.config.general().interval(), 600) locations = self.config.locations() self.assertEqual(locations.size(), 4) # This one seems not to have been wrapped, and I have no idea why programs = self.config.mailPrograms() self.assertEqual(programs.size(), 3) self.assertEqual(self.config.selectedMailProgram().name(), "mutt") self.config.selectMailProgram("Test") self.assertEqual(self.config.selectedMailProgram().name(), "Test"); folder = Buffy.MailFolder.accessFolder("maildir/empty") self.failUnless(folder.valid()) self.config.mailProgram("test").run(folder); folder = self.config.folder("foo") self.assertEqual(folder.forceview(), True) self.assertEqual(folder.forcehide(), False) folder.setForceHide(True) self.assertEqual(folder.forceview(), False) self.assertEqual(folder.forcehide(), True) folder = self.config.folder("bar") self.assertEqual(folder.forceview(), False) self.assertEqual(folder.forcehide(), True) folder.setForceView(True) self.assertEqual(folder.forceview(), True) self.assertEqual(folder.forcehide(), False) class BuffyTestMaildir(unittest.TestCase): # Check an empty maildir def testEmpty(self): test = Buffy.MailFolder.accessFolder("maildir/empty") self.failUnless(test.valid()) self.assertEqual(test.name(), "empty") self.assertEqual(test.path(), "maildir/empty") self.assertEqual(test.type(), "Maildir") self.assertEqual(test.getMsgTotal(), -1) self.assertEqual(test.getMsgUnread(), -1) self.assertEqual(test.getMsgNew(), -1) self.assertEqual(test.getMsgFlagged(), -1) self.failUnless(test.changed()) test.updateStatistics() self.assertEqual(test.getMsgTotal(), 0) self.assertEqual(test.getMsgUnread(), 0) self.assertEqual(test.getMsgNew(), 0) self.assertEqual(test.getMsgFlagged(), 0) self.failIf(test.changed()) folders = Buffy.MailFolder.enumerateFolders("maildir/empty") self.assertEqual(len(folders), 1) # Check a non empty maildir def testNonEmpty(self): test = Buffy.MailFolder.accessFolder("maildir/test") self.failUnless(test.valid()) self.assertEqual(test.name(), "test") self.assertEqual(test.path(), "maildir/test") self.assertEqual(test.type(), "Maildir") self.assertEqual(test.getMsgTotal(), -1) self.assertEqual(test.getMsgUnread(), -1) self.assertEqual(test.getMsgNew(), -1) self.assertEqual(test.getMsgFlagged(), -1) self.failUnless(test.changed()) test.updateStatistics() self.assertEqual(test.getMsgTotal(), 3) self.assertEqual(test.getMsgUnread(), 0) self.assertEqual(test.getMsgNew(), 0) self.assertEqual(test.getMsgFlagged(), 1) self.failIf(test.changed()) folders = Buffy.MailFolder.enumerateFolders("maildir/test") self.assertEqual(len(folders), 1) # Check a maildir whose root is a broken symlink def test_broken(self): test = Buffy.MailFolder.accessFolder("maildir/broken") self.failIf(test.valid()) folders = Buffy.MailFolder.enumerateFolders("maildir/broken") self.assertEqual(len(folders), 0) # Check a maildir whose cur, new and tmp directories are broken symlinks def testBroken1(self): test = Buffy.MailFolder.accessFolder("maildir/broken1") self.failIf(test.valid()) folders = Buffy.MailFolder.enumerateFolders("maildir/broken1") self.assertEqual(len(folders), 0) # Check a maildir whose root is a symlink pointing to a nonexisting directory def testLoop(self): test = Buffy.MailFolder.accessFolder("maildir/loop") self.failIf(test.valid()) folders = Buffy.MailFolder.enumerateFolders("maildir/loop") self.assertEqual(len(folders), 0) # Check a maildir which has a submaildir that is a symlink pointing up def testLoop1(self): test = Buffy.MailFolder.accessFolder("maildir/loop1") self.failUnless(test.valid()) folders = Buffy.MailFolder.enumerateFolders("maildir/loop1") self.assertEqual(len(folders), 1) # Check maildir enumeration def testEnumeration(self): folders = Buffy.MailFolder.enumerateFolders("maildir") self.assertEqual(len(folders), 4) class BuffyTestMailbox(unittest.TestCase): # Check an empty mailbox def test_empty(self): test = Buffy.MailFolder.accessFolder("mbox/empty.mbox") self.failUnless(test.valid()) self.assertEqual(test.name(), "empty.mbox") self.assertEqual(test.path(), "mbox/empty.mbox") self.assertEqual(test.type(), "Mailbox") self.assertEqual(test.getMsgTotal(), -1) self.assertEqual(test.getMsgUnread(), -1) self.assertEqual(test.getMsgNew(), -1) self.assertEqual(test.getMsgFlagged(), -1) self.failUnless(test.changed()) test.updateStatistics() self.assertEqual(test.getMsgTotal(), 0) self.assertEqual(test.getMsgUnread(), 0) self.assertEqual(test.getMsgNew(), 0) self.assertEqual(test.getMsgFlagged(), 0) self.failIf(test.changed()) folders = Buffy.MailFolder.enumerateFolders("mbox/empty.mbox") self.assertEqual(len(folders), 1) # Check a non empty mailbox def test_nonempty(self): test = Buffy.MailFolder.accessFolder("mbox/test.mbox") self.failUnless(test.valid()) self.assertEqual(test.name(), "test.mbox") self.assertEqual(test.path(), "mbox/test.mbox") self.assertEqual(test.type(), "Mailbox") self.assertEqual(test.getMsgTotal(), -1) self.assertEqual(test.getMsgUnread(), -1) self.assertEqual(test.getMsgNew(), -1) self.assertEqual(test.getMsgFlagged(), -1) self.failUnless(test.changed()) test.updateStatistics() self.assertEqual(test.getMsgTotal(), 3) self.assertEqual(test.getMsgUnread(), 0) self.assertEqual(test.getMsgNew(), 0) self.assertEqual(test.getMsgFlagged(), 1) self.failIf(test.changed()) folders = Buffy.MailFolder.enumerateFolders("mbox/test.mbox") self.assertEqual(len(folders), 1) # Check a mailbox whose root is a broken symlink def test_broken(self): test = Buffy.MailFolder.accessFolder("mbox/broken.mbox") self.failIf(test.valid()) folders = Buffy.MailFolder.enumerateFolders("mbox/broken.mbox") self.assertEqual(len(folders), 0) # Check enumeration of a directory with mailboxes def test_enumeration(self): folders = Buffy.MailFolder.enumerateFolders("mbox") self.assertEqual(len(folders), 2) if __name__ == "__main__": unittest.main() ## Read configuration #conf = Buffy.Config() # ## Decide if a mailbox is to be displayed ## Please note that all configuration methods also come with 'set_*' conterparts #def view(x): # if x.getMsgUnread() > 0: # return True # # if conf.view_important().get() and x.getMsgFlagged() > 0: # return True # # if conf.view_read().get() and x.getMsgTotal() > 0: # return True # # return conf.view_empty().get() or conf.folder(x.path()).get("forceview", "false").get() == "true" # # ## Get the folder objects from the paths in the config file #folders = [] #for path in conf.folder_locations().get(): # folders += Buffy.MailFolder_enumerateFolders(path) # ##while True: # for f in folders: ## print "Scanning " + f.name() # if f.changed(): # f.updateStatistics() # if view(f): # print "%s: %d %d %d %d" % (f.name(), f.getMsgTotal(), f.getMsgUnread(), f.getMsgNew(), f.getMsgFlagged()) # #time.sleep(conf.update_interval().get()) libbuffy-bindings-0.15ubuntu1/tests/maildir/0000775000000000000000000000000012244053476016042 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/new/0000775000000000000000000000000012244053476016633 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/tmp/0000775000000000000000000000000012244053476016642 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/loop1/0000775000000000000000000000000012244053476017074 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/loop1/subcur0000777000000000000000000000000012244053476020375 2.ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/loop1/new/0000775000000000000000000000000012244053476017665 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/loop1/tmp/0000775000000000000000000000000012244053476017674 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/loop1/cur/0000775000000000000000000000000012244053476017665 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/test/0000775000000000000000000000000012244053476017021 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/test/new/0000775000000000000000000000000012244053476017612 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/test/tmp/0000775000000000000000000000000012244053476017621 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/test/cur/0000775000000000000000000000000012244053476017612 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/test/cur/1115653427.21314_5.marvin:2,S0000664000000000000000000000717312244053156023365 0ustar Return-Path: X-Original-To: enrico@enricozini.org Delivered-To: enrico@enricozini.org Received: from localhost (localhost [127.0.0.1]) by eddie.casa (Postfix) with ESMTP id B74ED58AB8 for ; Sun, 27 Feb 2005 19:47:32 +0100 (CET) Received: from eddie.casa ([127.0.0.1]) by localhost (eddie [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24093-01 for ; Sun, 27 Feb 2005 19:47:26 +0100 (CET) Received: from master.debian.org (master.debian.org [146.82.138.7]) by eddie.casa (Postfix) with ESMTP id DA4A758A67 for ; Sun, 27 Feb 2005 19:47:25 +0100 (CET) Received: from haydn.debian.org [192.25.206.28] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1D5TRo-0003N1-00; Sun, 27 Feb 2005 12:47:20 -0600 Received: from localhost ([127.0.0.1]:59804 helo=haydn.debian.org) by haydn.debian.org with esmtp (Exim 4.34) id 1D5TRi-0003tR-RN; Sun, 27 Feb 2005 11:47:19 -0700 Received: from vsmtp14.tin.it ([212.216.176.118]:34879) by haydn.debian.org with esmtp (Exim 4.34) id 1D5TNt-0007Sf-OA for buffy-devel@lists.alioth.debian.org; Sun, 27 Feb 2005 11:46:02 -0700 Received: from tannoiser.sytes.net (80.116.26.176) by vsmtp14.tin.it (7.0.027) id 420DF956006E7E9F for buffy-devel@lists.alioth.debian.org; Sun, 27 Feb 2005 19:36:32 +0100 Received: by tannoiser.sytes.net (Postfix, from userid 1000) id 2DA4B85CA; Sun, 27 Feb 2005 19:36:32 +0100 (CET) From: Maurizio Lemmo - Tannoiser To: buffy-devel@lists.alioth.debian.org Message-ID: <20050227183632.GA5547@tannoiser.sytes.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-Operating-System: Linux 2.4.18 on gate X-Organization: A lot :-) Subject: [Buffy-devel] cosmetic web stuff Sender: buffy-devel-admin@lists.alioth.debian.org Errors-To: buffy-devel-admin@lists.alioth.debian.org X-BeenThere: buffy-devel@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Buffy development List-Unsubscribe: , List-Archive: Date: Sun, 27 Feb 2005 19:36:32 +0100 X-SA-Exim-Connect-IP: 127.0.0.1 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at uncasino.it Content-Length: 905 Lines: 23 Of course, it isn't urgent, but I notice 2 minor issue: * when commit buffy-web stuff, there was a script (suppose), that put file online. I suppose that in recent alioth->svn switch it's wipe out. * the "browse online" (http://svn.debian.org/viewcvs/buffy) link is broken. Again i suppose is a side-effect from the mentioned switch. I don't know exactly were (and if I may, with my default privilege in alioth) put hands to fix this little (but annoying) stuff. -- Maurizio - Tannoiser - Lemmo Founder Member of ERLUG http://erlug.linux.it ------------------------------------------------------------------------------- BOFH excuse #279: The static electricity routing is acting up... _______________________________________________ Buffy-devel mailing list Buffy-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/buffy-devel libbuffy-bindings-0.15ubuntu1/tests/maildir/test/cur/1115653427.21314_3.marvin:2,S0000664000000000000000000001116012244053156023352 0ustar Return-Path: X-Original-To: enrico@enricozini.org Delivered-To: enrico@enricozini.org Received: from localhost (localhost [127.0.0.1]) by eddie.casa (Postfix) with ESMTP id 6ED7B54E8A for ; Sat, 26 Feb 2005 15:27:20 +0100 (CET) Received: from eddie.casa ([127.0.0.1]) by localhost (eddie [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17646-02 for ; Sat, 26 Feb 2005 15:27:14 +0100 (CET) Received: from master.debian.org (master.debian.org [146.82.138.7]) by eddie.casa (Postfix) with ESMTP id 371CD54E77 for ; Sat, 26 Feb 2005 15:27:14 +0100 (CET) Received: from haydn.debian.org [192.25.206.28] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1D52uT-0000ww-00; Sat, 26 Feb 2005 08:27:09 -0600 Received: from localhost ([127.0.0.1]:60062 helo=haydn.debian.org) by haydn.debian.org with esmtp (Exim 4.34) id 1D52uR-0004eW-G3; Sat, 26 Feb 2005 07:27:08 -0700 Received: from mid-2.inet.it ([213.92.5.19]:47815) by haydn.debian.org with esmtp (Exim 4.34) id 1D52s8-0004cG-Vw for buffy-devel@lists.alioth.debian.org; Sat, 26 Feb 2005 07:26:18 -0700 Received: from 81-174-12-206.f5.ngi.it [::ffff:81.174.12.206] by mid-2.inet.it via I-SMTP-5.2.3-520 id ::ffff:81.174.12.206+Dvh31dJnhBN; Sat, 26 Feb 2005 15:24:40 +0100 Received: from localhost (localhost [127.0.0.1]) by eddie.casa (Postfix) with ESMTP id 51FCD54E8B for ; Sat, 26 Feb 2005 15:24:39 +0100 (CET) Received: from eddie.casa ([127.0.0.1]) by localhost (eddie [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16715-04 for ; Sat, 26 Feb 2005 15:24:35 +0100 (CET) Received: from marvin.casa (marvin.casa [192.168.1.2]) by eddie.casa (Postfix) with ESMTP id A395B54E87 for ; Sat, 26 Feb 2005 15:24:35 +0100 (CET) Received: from enrico by marvin.casa with local (Exim 3.36 #1 (Debian)) id 1D52s4-0005UU-00 for ; Sat, 26 Feb 2005 15:24:40 +0100 From: Enrico Zini To: buffy-devel@lists.alioth.debian.org Message-ID: <20050226142440.GA22201@marvin.casa> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at uncasino.it Subject: [Buffy-devel] Ready to release? Sender: buffy-devel-admin@lists.alioth.debian.org Errors-To: buffy-devel-admin@lists.alioth.debian.org X-BeenThere: buffy-devel@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Buffy development List-Unsubscribe: , List-Archive: Date: Sat, 26 Feb 2005 15:24:40 +0100 X-SA-Exim-Connect-IP: 127.0.0.1 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at uncasino.it Content-Length: 1244 Lines: 48 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hello, I tested the new libbuffy-based buffy and added recursive scanning of maildirs. Together with Martin's patch and Martin's menu file, we fix three bugs with very minimal changes, and we move to libbuffy. I'm testing it: - The buffy interface works for me. - /usr/share/doc/python-buffy/examples/basic.py works for me. - basic.py with the extra features uncommented, needs extra checking, but that is not vital to the release. Please have a look at it, test it, see how it goes: I think we have enough for a release. Ciao, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCIIao9LSwzHl+v6sRAnexAJwP+wNBc3Mmw3O+zo/D0UOZ8MprcwCbBYcn kXVq4ZUepSuyjZrwfpwNLZo= =MR2K -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6-- _______________________________________________ Buffy-devel mailing list Buffy-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/buffy-devel libbuffy-bindings-0.15ubuntu1/tests/maildir/test/cur/1115653427.21314_1.marvin:2,FS0000664000000000000000000001120312244053156023454 0ustar Return-Path: X-Original-To: enrico@enricozini.org Delivered-To: enrico@enricozini.org Received: from localhost (localhost [127.0.0.1]) by eddie.casa (Postfix) with ESMTP id 88FF959AD2 for ; Wed, 1 Sep 2004 11:13:01 +0200 (CEST) Received: from eddie.casa ([127.0.0.1]) by localhost (eddie [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31380-01 for ; Wed, 1 Sep 2004 11:12:54 +0200 (CEST) Received: from pob.cs.unibo.it (pob.cs.unibo.it [130.136.10.114]) by eddie.casa (Postfix) with ESMTP id D41F44FCF1 for ; Wed, 1 Sep 2004 11:12:53 +0200 (CEST) Received: by pob.cs.unibo.it (Postfix) id 6F7B32A54C; Wed, 1 Sep 2004 11:12:53 +0200 (CEST) Delivered-To: zinie@cs.unibo.it Received: from lea.cs.unibo.it (backlea.cs.unibo.it [130.136.10.101]) by pob.cs.unibo.it (Postfix) with ESMTP id 46D5D2A54B for ; Wed, 1 Sep 2004 11:12:53 +0200 (CEST) Received: from master.debian.org (master.debian.org [146.82.138.7]) by lea.cs.unibo.it (Postfix) with ESMTP id F3BE58B926 for ; Wed, 1 Sep 2004 11:12:52 +0200 (CEST) Received: from armagnac.ifi.unizh.ch (albatross.madduck.net) [130.60.75.72] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1C2RAh-0003xM-00; Wed, 01 Sep 2004 04:12:52 -0500 Received: from localhost (albatross.madduck.net [127.0.0.1]) by albatross.madduck.net (postfix) with ESMTP id 63AE5B0AC for ; Wed, 1 Sep 2004 11:12:45 +0200 (CEST) Received: from localhost (80-219-173-32.dclient.hispeed.ch [80.219.173.32]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "cirrus.madduck.net", Issuer "madduck.net CA" (verified OK)) by albatross.madduck.net (postfix) with ESMTP id 0DFE8B05B for ; Wed, 1 Sep 2004 11:12:44 +0200 (CEST) Received: by localhost (Postfix, from userid 1000) id 92357212EF9; Wed, 1 Sep 2004 11:12:44 +0200 (CEST) Date: Wed, 1 Sep 2004 11:12:44 +0200 From: martin f krafft To: enrico@debian.org Subject: buffy suggestions Message-ID: <20040901091244.GA32195@cirrus.madduck.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline Organization: Debian GNU/Linux X-OS: Debian GNU/Linux 3.1 kernel 2.6.8-1-k7 i686 X-Motto: Keep the good times rollin' X-Subliminal-Message: debian/rules! User-Agent: Mutt/1.5.6+20040722i X-Virus-Scanned: by albatross.madduck.net X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at uncasino.it Content-Length: 2084 Lines: 64 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Enrico, I've long been playing with ideas to make something similar to buffy, and now you beat me to it. May I suggest the following things for a future version? 1. It would be great if buffy could display mailboxes that have changed as bold and allow the user to clear the bold flag (e.g. middle mouse button), similar to what xbuffy does. 2. It would be great to have a mode starting with an empty list and then adding mailbox lines as they come in. So if I get a message to debian, buffy prepends (or appends, should be configurable) a line for the debian mailbox to the end. If I get a mail for the university, the uni mailbox appears above the debian mailbox. if now another debian mail comes in, debian moves to the top again. This should be configurable. 3. Can the GTK window be skinned to have it take up very little space on the desktop, like xbuffy? I think this would combine great with point 2. =20 4. buffy should honour mutt's mailbox settings, as i reported in the bug. 5. it would be great if maildirs could be scanned recursively for other maildirs, and the results presented in a threaded view if possible. That's all for now. If I can think of other things, I will let you know. Great to see buffy. Thanks! --=20 Please do not CC me when replying to lists; I read them! =20 .''`. martin f. krafft : :' : proud Debian developer, admin, and user `. `'` `- Debian - when you have better things to do than fixing a system =20 Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver! --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBNZKMIgvIgzMMSnURAr9jAJ9Qs6LZO9MYK2KNuH4QAjTrYhFH2QCgyeX7 1BoNjjttI2Vu3g1cthjnMaM= =mQY8 -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK-- libbuffy-bindings-0.15ubuntu1/tests/maildir/broken1/0000775000000000000000000000000012244053476017403 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/broken1/new0000777000000000000000000000000012244053476023102 2does-not-existsustar libbuffy-bindings-0.15ubuntu1/tests/maildir/broken1/tmp0000777000000000000000000000000012244053476023111 2does-not-existsustar libbuffy-bindings-0.15ubuntu1/tests/maildir/broken1/cur0000777000000000000000000000000012244053476023102 2does-not-existsustar libbuffy-bindings-0.15ubuntu1/tests/maildir/empty/0000775000000000000000000000000012244053476017200 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/empty/new/0000775000000000000000000000000012244053476017771 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/empty/tmp/0000775000000000000000000000000012244053476020000 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/empty/cur/0000775000000000000000000000000012244053476017771 5ustar libbuffy-bindings-0.15ubuntu1/tests/maildir/loop0000777000000000000000000000000012244053476017625 2loopustar libbuffy-bindings-0.15ubuntu1/tests/maildir/broken0000777000000000000000000000000012244053476022230 2does-not-existsustar libbuffy-bindings-0.15ubuntu1/tests/maildir/cur/0000775000000000000000000000000012244053476016633 5ustar libbuffy-bindings-0.15ubuntu1/tests/test.pl0000775000000000000000000001162212244053156015735 0ustar #!/usr/bin/perl -w use strict; use warnings; use lib qw(../perl/blib/arch ../perl); use Test::More tests=>90; use Buffy; # # Test Config # my $config = Buffy::Config->new("test-config.txt"); ok(defined $config); ok(!$config->view()->read()); ok(!$config->view()->empty()); ok($config->view()->important()); is($config->general()->interval(), 600); my $locations = $config->locations(); is($locations->size(), 4); my $programs = $config->mailPrograms(); is($programs->size(), 3); is($config->selectedMailProgram()->name(), "mutt"); $config->selectMailProgram("Test"); is($config->selectedMailProgram()->name(), "Test"); my $folder = Buffy::MailFolder::accessFolder("maildir/empty"); ok($folder->valid); $config->mailProgram("test")->run($folder); my $folder = $config->folder("foo"); ok($folder->forceview()); ok(!$folder->forcehide()); $folder->setForceHide(1); ok(!$folder->forceview()); ok($folder->forcehide()); my $folder = $config->folder("bar"); ok(!$folder->forceview()); ok($folder->forcehide()); $folder->setForceView(1); ok($folder->forceview()); ok(!$folder->forcehide()); # # Test Maildir # my $test; my $folders; # Check an empty maildir $test = Buffy::MailFolder::accessFolder("maildir/empty"); ok($test->valid); is($test->name(), "empty"); is($test->path(), "maildir/empty"); is($test->type(), "Maildir"); is($test->getMsgTotal(), -1); is($test->getMsgUnread(), -1); is($test->getMsgNew(), -1); is($test->getMsgFlagged(), -1); ok($test->changed()); $test->updateStatistics(); is($test->getMsgTotal(), 0); is($test->getMsgUnread(), 0); is($test->getMsgNew(), 0); is($test->getMsgFlagged(), 0); ok(!$test->changed()); $folders = Buffy::MailFolder::enumerateFolders("maildir/empty"); is(scalar(@$folders), 1); # Check a non empty maildir $test = Buffy::MailFolder::accessFolder("maildir/test"); ok($test->valid()); is($test->name(), "test"); is($test->path(), "maildir/test"); is($test->type(), "Maildir"); is($test->getMsgTotal(), -1); is($test->getMsgUnread(), -1); is($test->getMsgNew(), -1); is($test->getMsgFlagged(), -1); ok($test->changed()); $test->updateStatistics(); is($test->getMsgTotal(), 3); is($test->getMsgUnread(), 0); is($test->getMsgNew(), 0); is($test->getMsgFlagged(), 1); ok(!$test->changed()); $folders = Buffy::MailFolder::enumerateFolders("maildir/test"); is(scalar(@$folders), 1); # Check a maildir whose root is a broken symlink $test = Buffy::MailFolder::accessFolder("maildir/broken"); ok(!$test->valid()); $folders = Buffy::MailFolder::enumerateFolders("maildir/broken"); is(scalar(@$folders), 0); # Check a maildir whose cur, new and tmp directories are broken symlinks $test = Buffy::MailFolder::accessFolder("maildir/broken1"); ok(!$test->valid()); $folders = Buffy::MailFolder::enumerateFolders("maildir/broken1"); is(scalar(@$folders), 0); # Check a maildir whose root is a symlink pointing to a nonexisting directory $test = Buffy::MailFolder::accessFolder("maildir/loop"); ok(!$test->valid()); $folders = Buffy::MailFolder::enumerateFolders("maildir/loop"); is(scalar(@$folders), 0); # Check a maildir which has a submaildir that is a symlink pointing up $test = Buffy::MailFolder::accessFolder("maildir/loop1"); ok($test->valid()); $folders = Buffy::MailFolder::enumerateFolders("maildir/loop1"); is(scalar(@$folders), 1); # Check maildir enumeration $folders = Buffy::MailFolder::enumerateFolders("maildir"); is(scalar(@$folders), 4); # # Test Mailbox # # Check an empty mailbox $test = Buffy::MailFolder::accessFolder("mbox/empty.mbox"); ok($test->valid); is($test->name(), "empty.mbox"); is($test->path(), "mbox/empty.mbox"); is($test->type(), "Mailbox"); is($test->getMsgTotal(), -1); is($test->getMsgUnread(), -1); is($test->getMsgNew(), -1); is($test->getMsgFlagged(), -1); ok($test->changed()); $test->updateStatistics(); is($test->getMsgTotal(), 0); is($test->getMsgUnread(), 0); is($test->getMsgNew(), 0); is($test->getMsgFlagged(), 0); ok(!$test->changed()); $folders = Buffy::MailFolder::enumerateFolders("mbox/empty.mbox"); is(scalar(@$folders), 1); # Check a non empty mailbox $test = Buffy::MailFolder::accessFolder("mbox/test.mbox"); ok($test->valid()); is($test->name(), "test.mbox"); is($test->path(), "mbox/test.mbox"); is($test->type(), "Mailbox"); is($test->getMsgTotal(), -1); is($test->getMsgUnread(), -1); is($test->getMsgNew(), -1); is($test->getMsgFlagged(), -1); ok($test->changed()); $test->updateStatistics(); is($test->getMsgTotal, 3); is($test->getMsgUnread, 0); is($test->getMsgNew, 0); is($test->getMsgFlagged, 1); ok(!$test->changed()); $folders = Buffy::MailFolder::enumerateFolders("mbox/test.mbox"); is(scalar(@$folders), 1); # Check a mailbox whose root is a broken symlink $test = Buffy::MailFolder::accessFolder("mbox/broken.mbox"); ok(!$test->valid()); $folders = Buffy::MailFolder::enumerateFolders("mbox/broken.mbox"); is(scalar(@$folders), 0); # Check enumeration of a directory with mailboxes $folders = Buffy::MailFolder::enumerateFolders("mbox"); is(scalar(@$folders), 2); libbuffy-bindings-0.15ubuntu1/tests/test-config.txt0000664000000000000000000000163212244053156017401 0ustar 600 true /usr/bin/x-terminal-emulator -e /usr/bin/mutt -f %p /bin/true /usr/bin/sample-mail-editor --folder %p /var/mail/enrico /home/enrico/Maildir /home/enrico/Mail /home/enrico/mail false false true true true libbuffy-bindings-0.15ubuntu1/tests/mbox/0000775000000000000000000000000012244053476015366 5ustar libbuffy-bindings-0.15ubuntu1/tests/mbox/test.mbox0000664000000000000000000003211112244053156017225 0ustar From madduck@cirrus.madduck.net Wed Sep 1 11:13:01 2004 Return-Path: X-Original-To: enrico@enricozini.org Delivered-To: enrico@enricozini.org Received: from localhost (localhost [127.0.0.1]) by eddie.casa (Postfix) with ESMTP id 88FF959AD2 for ; Wed, 1 Sep 2004 11:13:01 +0200 (CEST) Received: from eddie.casa ([127.0.0.1]) by localhost (eddie [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31380-01 for ; Wed, 1 Sep 2004 11:12:54 +0200 (CEST) Received: from pob.cs.unibo.it (pob.cs.unibo.it [130.136.10.114]) by eddie.casa (Postfix) with ESMTP id D41F44FCF1 for ; Wed, 1 Sep 2004 11:12:53 +0200 (CEST) Received: by pob.cs.unibo.it (Postfix) id 6F7B32A54C; Wed, 1 Sep 2004 11:12:53 +0200 (CEST) Delivered-To: zinie@cs.unibo.it Received: from lea.cs.unibo.it (backlea.cs.unibo.it [130.136.10.101]) by pob.cs.unibo.it (Postfix) with ESMTP id 46D5D2A54B for ; Wed, 1 Sep 2004 11:12:53 +0200 (CEST) Received: from master.debian.org (master.debian.org [146.82.138.7]) by lea.cs.unibo.it (Postfix) with ESMTP id F3BE58B926 for ; Wed, 1 Sep 2004 11:12:52 +0200 (CEST) Received: from armagnac.ifi.unizh.ch (albatross.madduck.net) [130.60.75.72] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1C2RAh-0003xM-00; Wed, 01 Sep 2004 04:12:52 -0500 Received: from localhost (albatross.madduck.net [127.0.0.1]) by albatross.madduck.net (postfix) with ESMTP id 63AE5B0AC for ; Wed, 1 Sep 2004 11:12:45 +0200 (CEST) Received: from localhost (80-219-173-32.dclient.hispeed.ch [80.219.173.32]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "cirrus.madduck.net", Issuer "madduck.net CA" (verified OK)) by albatross.madduck.net (postfix) with ESMTP id 0DFE8B05B for ; Wed, 1 Sep 2004 11:12:44 +0200 (CEST) Received: by localhost (Postfix, from userid 1000) id 92357212EF9; Wed, 1 Sep 2004 11:12:44 +0200 (CEST) Date: Wed, 1 Sep 2004 11:12:44 +0200 From: martin f krafft To: enrico@debian.org Subject: buffy suggestions Message-ID: <20040901091244.GA32195@cirrus.madduck.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline Organization: Debian GNU/Linux X-OS: Debian GNU/Linux 3.1 kernel 2.6.8-1-k7 i686 X-Motto: Keep the good times rollin' X-Subliminal-Message: debian/rules! User-Agent: Mutt/1.5.6+20040722i X-Virus-Scanned: by albatross.madduck.net X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at uncasino.it Status: RO X-Status: F Content-Length: 2084 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Enrico, I've long been playing with ideas to make something similar to buffy, and now you beat me to it. May I suggest the following things for a future version? 1. It would be great if buffy could display mailboxes that have changed as bold and allow the user to clear the bold flag (e.g. middle mouse button), similar to what xbuffy does. 2. It would be great to have a mode starting with an empty list and then adding mailbox lines as they come in. So if I get a message to debian, buffy prepends (or appends, should be configurable) a line for the debian mailbox to the end. If I get a mail for the university, the uni mailbox appears above the debian mailbox. if now another debian mail comes in, debian moves to the top again. This should be configurable. 3. Can the GTK window be skinned to have it take up very little space on the desktop, like xbuffy? I think this would combine great with point 2. =20 4. buffy should honour mutt's mailbox settings, as i reported in the bug. 5. it would be great if maildirs could be scanned recursively for other maildirs, and the results presented in a threaded view if possible. That's all for now. If I can think of other things, I will let you know. Great to see buffy. Thanks! --=20 Please do not CC me when replying to lists; I read them! =20 .''`. martin f. krafft : :' : proud Debian developer, admin, and user `. `'` `- Debian - when you have better things to do than fixing a system =20 Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver! --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBNZKMIgvIgzMMSnURAr9jAJ9Qs6LZO9MYK2KNuH4QAjTrYhFH2QCgyeX7 1BoNjjttI2Vu3g1cthjnMaM= =mQY8 -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK-- From buffy-devel-admin@lists.alioth.debian.org Sun Feb 27 19:47:32 2005 Return-Path: X-Original-To: enrico@enricozini.org Delivered-To: enrico@enricozini.org Received: from localhost (localhost [127.0.0.1]) by eddie.casa (Postfix) with ESMTP id B74ED58AB8 for ; Sun, 27 Feb 2005 19:47:32 +0100 (CET) Received: from eddie.casa ([127.0.0.1]) by localhost (eddie [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24093-01 for ; Sun, 27 Feb 2005 19:47:26 +0100 (CET) Received: from master.debian.org (master.debian.org [146.82.138.7]) by eddie.casa (Postfix) with ESMTP id DA4A758A67 for ; Sun, 27 Feb 2005 19:47:25 +0100 (CET) Received: from haydn.debian.org [192.25.206.28] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1D5TRo-0003N1-00; Sun, 27 Feb 2005 12:47:20 -0600 Received: from localhost ([127.0.0.1]:59804 helo=haydn.debian.org) by haydn.debian.org with esmtp (Exim 4.34) id 1D5TRi-0003tR-RN; Sun, 27 Feb 2005 11:47:19 -0700 Received: from vsmtp14.tin.it ([212.216.176.118]:34879) by haydn.debian.org with esmtp (Exim 4.34) id 1D5TNt-0007Sf-OA for buffy-devel@lists.alioth.debian.org; Sun, 27 Feb 2005 11:46:02 -0700 Received: from tannoiser.sytes.net (80.116.26.176) by vsmtp14.tin.it (7.0.027) id 420DF956006E7E9F for buffy-devel@lists.alioth.debian.org; Sun, 27 Feb 2005 19:36:32 +0100 Received: by tannoiser.sytes.net (Postfix, from userid 1000) id 2DA4B85CA; Sun, 27 Feb 2005 19:36:32 +0100 (CET) From: Maurizio Lemmo - Tannoiser To: buffy-devel@lists.alioth.debian.org Message-ID: <20050227183632.GA5547@tannoiser.sytes.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-Operating-System: Linux 2.4.18 on gate X-Organization: A lot :-) Subject: [Buffy-devel] cosmetic web stuff Sender: buffy-devel-admin@lists.alioth.debian.org Errors-To: buffy-devel-admin@lists.alioth.debian.org X-BeenThere: buffy-devel@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Buffy development List-Unsubscribe: , List-Archive: Date: Sun, 27 Feb 2005 19:36:32 +0100 X-SA-Exim-Connect-IP: 127.0.0.1 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at uncasino.it Status: RO Content-Length: 905 Of course, it isn't urgent, but I notice 2 minor issue: * when commit buffy-web stuff, there was a script (suppose), that put file online. I suppose that in recent alioth->svn switch it's wipe out. * the "browse online" (http://svn.debian.org/viewcvs/buffy) link is broken. Again i suppose is a side-effect from the mentioned switch. I don't know exactly were (and if I may, with my default privilege in alioth) put hands to fix this little (but annoying) stuff. -- Maurizio - Tannoiser - Lemmo Founder Member of ERLUG http://erlug.linux.it ------------------------------------------------------------------------------- BOFH excuse #279: The static electricity routing is acting up... _______________________________________________ Buffy-devel mailing list Buffy-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/buffy-devel From buffy-devel-admin@lists.alioth.debian.org Sat Feb 26 15:27:20 2005 Return-Path: X-Original-To: enrico@enricozini.org Delivered-To: enrico@enricozini.org Received: from localhost (localhost [127.0.0.1]) by eddie.casa (Postfix) with ESMTP id 6ED7B54E8A for ; Sat, 26 Feb 2005 15:27:20 +0100 (CET) Received: from eddie.casa ([127.0.0.1]) by localhost (eddie [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17646-02 for ; Sat, 26 Feb 2005 15:27:14 +0100 (CET) Received: from master.debian.org (master.debian.org [146.82.138.7]) by eddie.casa (Postfix) with ESMTP id 371CD54E77 for ; Sat, 26 Feb 2005 15:27:14 +0100 (CET) Received: from haydn.debian.org [192.25.206.28] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1D52uT-0000ww-00; Sat, 26 Feb 2005 08:27:09 -0600 Received: from localhost ([127.0.0.1]:60062 helo=haydn.debian.org) by haydn.debian.org with esmtp (Exim 4.34) id 1D52uR-0004eW-G3; Sat, 26 Feb 2005 07:27:08 -0700 Received: from mid-2.inet.it ([213.92.5.19]:47815) by haydn.debian.org with esmtp (Exim 4.34) id 1D52s8-0004cG-Vw for buffy-devel@lists.alioth.debian.org; Sat, 26 Feb 2005 07:26:18 -0700 Received: from 81-174-12-206.f5.ngi.it [::ffff:81.174.12.206] by mid-2.inet.it via I-SMTP-5.2.3-520 id ::ffff:81.174.12.206+Dvh31dJnhBN; Sat, 26 Feb 2005 15:24:40 +0100 Received: from localhost (localhost [127.0.0.1]) by eddie.casa (Postfix) with ESMTP id 51FCD54E8B for ; Sat, 26 Feb 2005 15:24:39 +0100 (CET) Received: from eddie.casa ([127.0.0.1]) by localhost (eddie [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16715-04 for ; Sat, 26 Feb 2005 15:24:35 +0100 (CET) Received: from marvin.casa (marvin.casa [192.168.1.2]) by eddie.casa (Postfix) with ESMTP id A395B54E87 for ; Sat, 26 Feb 2005 15:24:35 +0100 (CET) Received: from enrico by marvin.casa with local (Exim 3.36 #1 (Debian)) id 1D52s4-0005UU-00 for ; Sat, 26 Feb 2005 15:24:40 +0100 From: Enrico Zini To: buffy-devel@lists.alioth.debian.org Message-ID: <20050226142440.GA22201@marvin.casa> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at uncasino.it Subject: [Buffy-devel] Ready to release? Sender: buffy-devel-admin@lists.alioth.debian.org Errors-To: buffy-devel-admin@lists.alioth.debian.org X-BeenThere: buffy-devel@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Buffy development List-Unsubscribe: , List-Archive: Date: Sat, 26 Feb 2005 15:24:40 +0100 X-SA-Exim-Connect-IP: 127.0.0.1 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at uncasino.it Status: RO Content-Length: 1244 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hello, I tested the new libbuffy-based buffy and added recursive scanning of maildirs. Together with Martin's patch and Martin's menu file, we fix three bugs with very minimal changes, and we move to libbuffy. I'm testing it: - The buffy interface works for me. - /usr/share/doc/python-buffy/examples/basic.py works for me. - basic.py with the extra features uncommented, needs extra checking, but that is not vital to the release. Please have a look at it, test it, see how it goes: I think we have enough for a release. Ciao, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCIIao9LSwzHl+v6sRAnexAJwP+wNBc3Mmw3O+zo/D0UOZ8MprcwCbBYcn kXVq4ZUepSuyjZrwfpwNLZo= =MR2K -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6-- _______________________________________________ Buffy-devel mailing list Buffy-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/buffy-devel libbuffy-bindings-0.15ubuntu1/tests/mbox/broken.mbox0000777000000000000000000000000012244053476022335 2does-not-existustar libbuffy-bindings-0.15ubuntu1/tests/mbox/empty.mbox0000664000000000000000000000000012244053156017374 0ustar libbuffy-bindings-0.15ubuntu1/perl/0000775000000000000000000000000012244053476014221 5ustar libbuffy-bindings-0.15ubuntu1/perl/MANIFEST0000664000000000000000000000002512244053156015342 0ustar Makefile.PL MANIFEST libbuffy-bindings-0.15ubuntu1/perl/Makefile.PL0000664000000000000000000000076112244053156016172 0ustar use ExtUtils::MakeMaker; WriteMakefile( 'NAME' => 'Buffy', # Name of package 'VERSION' => '0.15', 'LIBS' => [`pkg-config --libs "libbuffy >= 1.4"`], # Name of custom libraries 'OBJECT' => 'buffy_wrap.o', # Object files 'PM' => { 'Buffy.pm' => '$(INST_LIBDIR)/Buffy.pm' }, 'clean' => { FILES => 'buffy_wrap.cc Buffy.pm' } ); sub MY::postamble { return <<'MAKE_FRAG'; Buffy.pm: buffy_wrap.cc buffy_wrap.cc: ../buffy.i swig -perl -c++ -I/usr/include -o $@ $< MAKE_FRAG } libbuffy-bindings-0.15ubuntu1/doc/0000775000000000000000000000000012244053476014024 5ustar libbuffy-bindings-0.15ubuntu1/doc/basic.py0000664000000000000000000000163612244053156015460 0ustar import Buffy, time # Read configuration conf = Buffy.Config() # Decide if a mailbox is to be displayed # Please note that all configuration methods also come with 'set_*' conterparts def view(x): if x.getMsgUnread() > 0: return True if conf.view_important().get() and x.getMsgFlagged() > 0: return True if conf.view_read().get() and x.getMsgTotal() > 0: return True return conf.view_empty().get() or conf.folder(x.path()).get("forceview", "false").get() == "true" # Get the folder objects from the paths in the config file folders = [] for path in conf.folder_locations().get(): folders += Buffy.MailFolder_enumerateFolders(path); #while True: for f in folders: # print "Scanning " + f.name() if f.changed(): f.updateStatistics() if view(f): print "%s: %d %d %d %d" % (f.name(), f.getMsgTotal(), f.getMsgUnread(), f.getMsgNew(), f.getMsgFlagged()) #time.sleep(conf.update_interval().get()) libbuffy-bindings-0.15ubuntu1/python/0000775000000000000000000000000012244053476014600 5ustar libbuffy-bindings-0.15ubuntu1/python/buffy.i0000777000000000000000000000000012244053476017560 2../buffy.iustar libbuffy-bindings-0.15ubuntu1/python/setup.py0000775000000000000000000000371612244053156016317 0ustar #!/usr/bin/env python """ setup.py file for the libbuffy python bindings """ from distutils.core import setup, Extension import distutils.command.build import subprocess # Code taken from http://code.activestate.com/recipes/502261-python-distutils-pkg-config/ # and then kind of fixed so that at least it is not offensive. # It is however offensive that distutils doesn't do something as common as # pkg-config by default. But then again, distutils is, as a whole, offensive. def pkgconfig(*packages, **kw): flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'} # Invoke pkg-config proc = subprocess.Popen(("pkg-config", "--libs", "--cflags") + packages, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = proc.communicate() if proc.returncode != 0: raise RuntimeError("pkg-config returned error %d: %s" % (proc.returncode, err.strip())) # Enrich args with pkg-config output for token in out.split(): arg = flag_map.get(token[:2], "extra_link_args") kw.setdefault(arg, []).append(token[2:]) return kw buffy_module = Extension('_Buffy', ['buffy.i'], **pkgconfig('libbuffy >= 1.4', swig_opts=['-c++', '-I/usr/include']) ) # distutils pretends it supports swig, but it obviously does it wrong (it is # after all, as mentioned above, offensive). In this case, it looks for the # swig-generated .py file before it runs swig to generate it. Doh! # # We therefore kick it by running build_ext first, so that Buffy.py is # generated before build_py wants it. # # (sort is guaranteed stable since python 2.4, so we can depend on it) distutils.command.build.build.sub_commands.sort(key=lambda x:x[0] != "build_ext") setup(name = 'Buffy', version = '0.15', author = "Enrico Zini ", description = "libbuffy bindings for Python", ext_modules = [buffy_module], py_modules = ["Buffy"], ) libbuffy-bindings-0.15ubuntu1/debian/0000775000000000000000000000000012244053500014465 5ustar libbuffy-bindings-0.15ubuntu1/debian/rules0000775000000000000000000000161412244053211015546 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2 override_dh_auto_configure: dh_auto_configure -Dperl dh_auto_configure -Dpython override_dh_auto_build: dh_auto_build -Dperl dh_auto_build -Dpython override_dh_auto_install: dh_auto_install -Dperl dh_auto_install -Dpython override_dh_auto_clean: dh_auto_clean -Dperl dh_auto_clean -Dpython dh_auto_clean rm -f python/buffy_wrap.cpp python/Buffy.py # Thanks Stefano Rivera for the python test example override_dh_auto_test: ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) cd tests && ./test.pl set -e; cd tests; \ for ver in $(shell pyversions -vr); do \ PYTHONPATH=$$(ls -d $$(readlink -f ../python/build/lib.*-$$ver)) \ python$$ver test.py; \ done endif # Personal convenience rules vercheck: debian/vercheck > /dev/null debsrc: vercheck git-buildpackage -S -us -uc libbuffy-bindings-0.15ubuntu1/debian/changelog0000664000000000000000000000747312244053260016355 0ustar libbuffy-bindings (0.15ubuntu1) trusty; urgency=low * Convert to dh_python2. -- Logan Rosen Sat, 23 Nov 2013 02:18:00 -0500 libbuffy-bindings (0.15) unstable; urgency=low * Cleaned up dependencies. Closes: #727609. -- Enrico Zini Fri, 25 Oct 2013 17:19:11 +0200 libbuffy-bindings (0.14) unstable; urgency=low * Depend on libbbuffy 1.8. Closes: #711374. -- Enrico Zini Sun, 11 Aug 2013 11:39:39 +0200 libbuffy-bindings (0.13) unstable; urgency=low * Acknowledge NMU. * Depends on libbuffy 1.6 so we can deal with empty config files * Depend on swig >= 2.0 since the package swig2.0 does not contain the "swig" executable. See: #633821. Closes: #614532 * Build depend on new libbuffy. Closes: #637187 -- Enrico Zini Tue, 09 Aug 2011 16:00:40 +0200 libbuffy-bindings (0.12+nmu1) unstable; urgency=medium * Non-maintainer upload. * Build-depend on swig2.0 instead of swig; thanks to Chris Butler for the analysis (closes: #624767). * Apply Niko Tyni's 0001-Stop-writing-C-code-into-Buffy.pm.patch again (closes: #567241 again). * Set urgency to medium (RC bug fix, blocks perl 5.12 and python-defaults transition). -- gregor herrmann Mon, 09 May 2011 22:39:45 +0200 libbuffy-bindings (0.12) unstable; urgency=low * Cleaned up packaging, switched to dh. * Switched to dh's default python build system. Closes: #616860 * Dropped ruby support since nobody uses it. * Updated standards-version, no changes required * Switch format to 3.0 (Native) -- Enrico Zini Sun, 27 Mar 2011 16:05:29 +0100 libbuffy-bindings (0.11) unstable; urgency=low * Applied patch by Stefano Rivera. Closes: #586937 -- Enrico Zini Mon, 02 Aug 2010 10:29:07 +0100 libbuffy-bindings (0.10) unstable; urgency=low * Ported to libbuffy 1.4 -- Enrico Zini Fri, 05 Mar 2010 16:20:19 +0000 libbuffy-bindings (0.9) unstable; urgency=low * Rebuild to see if Buffy.pm doesn't get garbage appended at the end. -- Enrico Zini Thu, 24 Jul 2008 08:03:14 +0100 libbuffy-bindings (0.8) unstable; urgency=low * Fix perl MakeMaker, thanks to Gregor Herrmann. -- Enrico Zini Wed, 23 Jul 2008 17:37:08 +0100 libbuffy-bindings (0.7) unstable; urgency=low * Rudely make sure that Buffy.pm is in the package. Closes: #488054. * Repackaged with debhelper, since we this package builds in a way that is too uncommon for cdbs to be useful. -- Enrico Zini Wed, 23 Jul 2008 16:02:37 +0100 libbuffy-bindings (0.6) unstable; urgency=low * Use an alternative way to make python tests find their module. Closes: #488142, #490350 * Support DEB_BUILD_OPTIONS=notest -- Enrico Zini Sun, 20 Jul 2008 11:18:52 +0100 libbuffy-bindings (0.5) unstable; urgency=low * Rebuilt properly. Closes: #488054, #488142 * Added missing perl/MANIFEST. Closes: #489110 -- Enrico Zini Mon, 07 Jul 2008 11:42:28 +0200 libbuffy-bindings (0.4) unstable; urgency=low * MailProgram.run() method works * Add myself (martin f. krafft) to uploaders. -- martin f. krafft Tue, 24 Jun 2008 23:20:40 +0100 libbuffy-bindings (0.3) unstable; urgency=low * Added a statement in the copyright file about the permission to distribute the test mail folders -- Enrico Zini Thu, 03 Apr 2008 09:36:09 +0800 libbuffy-bindings (0.2) unstable; urgency=low * Depend on new libbuffy-dev * Ship the missing files in the Python module -- Enrico Zini Sun, 23 Mar 2008 21:44:35 +0800 libbuffy-bindings (0.1) unstable; urgency=low * Initial release. -- Enrico Zini Thu, 16 Mar 2006 17:53:59 +0100 libbuffy-bindings-0.15ubuntu1/debian/compat0000664000000000000000000000000212244053156015672 0ustar 7 libbuffy-bindings-0.15ubuntu1/debian/python-buffy.install0000664000000000000000000000003312244053156020512 0ustar debian/tmp/usr/lib/python* libbuffy-bindings-0.15ubuntu1/debian/copyright0000664000000000000000000000103012244053156016421 0ustar This package was debianized by Enrico Zini on Tue Nov 2 14:20:12 BRST 2004. Upstream Author: Enrico Zini Copyright (C) 2004 Enrico Zini License: This software is distributed under the GNU Lesser General Public License, which can be found at /usr/share/common-licenses/LGPL-2.1. The mail samples used for the tests are from the buffy-devel mailing list, which is publicly archived and whose involved participants agreed to include their messages in the package. libbuffy-bindings-0.15ubuntu1/debian/source/0000775000000000000000000000000012244053476016001 5ustar libbuffy-bindings-0.15ubuntu1/debian/source/format0000664000000000000000000000001512244053156017203 0ustar 3.0 (native) libbuffy-bindings-0.15ubuntu1/debian/libbuffy-perl.install0000664000000000000000000000003112244053156020620 0ustar debian/tmp/usr/lib/perl* libbuffy-bindings-0.15ubuntu1/debian/vercheck0000775000000000000000000000110112244053156016205 0ustar #!/bin/sh VERSION_PERL=$(grep "'VERSION'" perl/Makefile.PL | cut -d"'" -f4) VERSION_PYTHON=$(grep "version = " python/setup.py | cut -d"'" -f2) VERSION_DEB=`head -n 1 debian/changelog | sed -re 's/.+\(([^-)]+).+/\1/'` VERSION="$VERSION_DEB" if [ "$VERSION_PERL" != "$VERSION_DEB" ] then echo "Version mismatch between perl ($VERSION_PERL) and debian/changelog ($VERSION_DEB)" >&2 exit 1 fi if [ "$VERSION_PYTHON" != "$VERSION_DEB" ] then echo "Version mismatch between python ($VERSION_PYTHON) and debian/changelog ($VERSION_DEB)" >&2 exit 1 fi echo "$VERSION" exit 0 libbuffy-bindings-0.15ubuntu1/debian/control0000664000000000000000000000371312244053261016100 0ustar Source: libbuffy-bindings Section: misc Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Enrico Zini Uploaders: martin f krafft Build-Depends: debhelper (>= 7.0.50~), libbuffy-dev (>= 1.9), libbuffy-dev (<< 2.0), libwibble-dev (>= 1.0), libwibble-dev (<< 2.0), libglib2.0-dev, zlib1g-dev, swig (>= 2.0), perl (>= 5.6.0-16), python-all-dev (>= 2.6.6-3~), dh-python, pkg-config Standards-Version: 3.9.4.0 Vcs-Git: git://git.debian.org/git/buffy/bindings.git Vcs-Browser: http://git.debian.org/?p=buffy/bindings.git Package: libbuffy-perl Section: perl Architecture: any Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends} Description: Perl wrapper for the libbuffy library Buffy wants to be the ultimate mail folder summary system. . This library provides efficient mailfolder checking routines, packaged in a library with a simple API and with wrappers for many languages, so that everyone can create mail folder summary systems in the language they prefer without having to care about the actual mailbox checking. . Libbuffy currently supports detection and summarizing of folders in Maildir and Mailbox format. . This package provides a Perl wrapper for libbuffy. Package: python-buffy Section: python Architecture: any Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} Description: Python wrapper for the libbuffy library Buffy wants to be the ultimate mail folder summary system. . This library provides efficient mailfolder checking routines, packaged in a library with a simple API and with wrappers for many languages, so that everyone can create mail folder summary systems in the language they prefer without having to care about the actual mailbox checking. . Libbuffy currently supports detection and summarizing of folders in Maildir and Mailbox format. . This package provides a Python wrapper for libbuffy. libbuffy-bindings-0.15ubuntu1/buffy.i0000664000000000000000000000153312244053156014541 0ustar // pair.i - SWIG interface %module Buffy %include std_string.i %include std_vector.i //%feature("director"); %exception { try { $action } catch (...) { SWIG_fail; } } %{ #include #include %} %ignore buffy::SmartPointer; %ignore buffy::SmartPointerItem; // Parse the original header file %include %include %include // Instantiate the base class needed for MailFolder, but dont wrap it %template() buffy::SmartPointer; %template(MailFolderVector) std::vector; %template(StringVector) std::vector; %ignore MailFolderImpl; %include // TODO: // Rename the static method to be called as MailFolder.enumerateFolders // (or even as Buffy.enumerateFolders?)