excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / spamsieve.rb
blobc00bacbca1495225d793fe8894cd61b888419129
1 cask "spamsieve" do
2   version "3.1"
3   sha256 "5163317c4c0c0a629ca7bc28177fdac8e26fbbd2babc08a4f307919c384a454e"
5   url "https://c-command.com/downloads/SpamSieve-#{version}.dmg"
6   name "SpamSieve"
7   desc "Spam filtering extension for e-mail clients"
8   homepage "https://c-command.com/spamsieve/"
10   livecheck do
11     url "https://c-command.com/versions.plist"
12     strategy :xml do |xml|
13       item = xml.elements["//key[text()='com.c-command.SpamSieve']"]&.next_element
14       next unless item
16       version = item.elements["key[text()='Version']"]&.next_element&.text
17       next if version.blank?
19       version.strip
20     end
21   end
23   auto_updates true
24   depends_on macos: ">= :high_sierra"
26   app "SpamSieve.app"
28   zap trash: [
29     "~/Library/Application Support/SpamSieve",
30     "~/Library/Caches/com.apple.helpd/Generated/SpamSieve Help*",
31     "~/Library/Caches/com.c-command.SpamSieve",
32     "~/Library/HTTPStorages/com.c-command.SpamSieve",
33     "~/Library/LaunchAgents/com.c-command.SpamSieve.LaunchAgent.plist",
34     "~/Library/Logs/SpamSieve",
35     "~/Library/Preferences/com.c-command.SpamSieve.plist",
36     "~/Library/Saved Application State/com.c-command.SpamSieve.savedState",
37   ]
38 end