code: def delete_matching_path(self):
          
          logger.info(
              "Deleting all mails with file path matching the {} regexp..."
              "".format(self.conf.regexp.pattern))
          # Select candidates for deletion.
          candidates = [
              mail for mail in self.pool
              if re.search(self.conf.regexp, mail.path)]
          if len(candidates) == self.size:
              logger.warning(
                  "Skip deletion: all {} mails matches the rexexp.".format(
                      self.size))
              return
          logger.info(
              "{} candidates found for deletion.".format(len(candidates)))
          for mail in candidates:
              self.delete(mail)
docs: Delete all duplicates whose file path match the regexp.