]> git.cworth.org Git - notmuch/commitdiff
ruby: add bindings for `notmuch_database_get_all_tags`
authorLudovic LANGE <ll-notmuchmail@lange.nom.fr>
Sun, 6 Mar 2016 11:56:28 +0000 (07:56 -0400)
committerDavid Bremner <david@tethera.net>
Thu, 19 May 2016 11:02:43 +0000 (08:02 -0300)
The Ruby bindings were missing a way to get all the tags of the
database. Now you should be able to access this with the public
instance method `all_tags` of your database object.

Example of use:
    notmuchdb = Notmuch::Database.new path, { :create => false,
     :mode => Notmuch::MODE_READ_ONLY }

    my_tags = notmuchdb.all_tags

    my_tags.each { |tag|
      print tag
    }

    my_tags.destroy!

Amended by db: improve error reporting, add test


No differences found