summaryrefslogtreecommitdiff
path: root/pcr/icedove-hardening/icedove.install
blob: af5f896b5b7aa8953c20426113744f3bc554657a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
notice() {
  cat <<EOM
  == IMPORTANT NOTICE ==

  This package contains several patches that were introduced
  to strengthen and protect the end user from security threats.

  For users who wish to opt-out of security, you may override options in
  about:config using a user.js file in your ~/.icedove's profile folder.

  Some user.js examples:
  user_pref("mailnews.display.prefer_plaintext", false); # Enables possible HTML leaks
  user_pref("purple.logging.log_chats", true);  # Enables chat logging

  Further reading:
  * https://lists.parabola.nu/pipermail/dev/2016-October/004522.html
  * http://kb.mozillazine.org/About:config
  * http://kb.mozillazine.org/User.js_file

EOM
}

post_install() {
    update-desktop-database -q
    gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
    notice
}

post_upgrade() {
    post_install
}

post_remove() {
    update-desktop-database -q
    gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}