diff --git a/alot/db.py b/alot/db.py
index <HASH>..<HASH> 100644
--- a/alot/db.py
+++ b/alot/db.py
@@ -300,6 +300,17 @@ class Thread(object):
         """returns id of this thread"""
         return self._id
 
+    def has_tag(self, tag):
+        """
+        Checks whether this thread is tagged with the given tag.
+
+        :param tag: tag to check
+        :type tag: string
+        :returns: True if this thread is tagged with the given tag, False otherwise.
+        :rtype: bool
+        """
+        return (tag in self._tags)
+
     def get_tags(self):
         """
         returns tagsstrings attached to this thread
Add helper to check mail thread for tag

This commit adds a method to Thread that allows to check whether the thread is
tagged with a given tag.