Hacker Public Radio

HPR3848: Editing Thunderbird email filters using vim.


Listen Later

Prerequisites:
Backups of ALL your data (especially your
Thunderbird directory).
Confirm your backups are working as expected.
Vim text editor installed with at least a basic/novice level
knowledge of vim.
Thunderbird email client installed with at least a basic/novice
level knowledge of the Thunderbird email client.
Web browser (preferably Firefox).
Thunderbird Directories.
I’m on a GNU/Linux system (Pop_OS!) and I have Thunderbird installed
via the apt system package manager (.deb).
System package manager install.
$HOME/.thunderbird/
Snap package manager install.
$HOME/snap/.thunderbird/
Flatpak package manager install.
$HOME/.var/.thunderbird/
Windows 10 install.
C:Usersyour-accountAppDataRoamingThunderbird
Your Thunderbird email filters are located in this subdirectory
(msgFilterRules.dat).
$HOME/.thunderbird/*.default-release/ImapMail/imap.email-accounts.com/msgFilterRules.dat
Vim Directories.
I’ve created subdirectories within $HOME/.config/ as a
place to store my vim sessions. You may not have these directories on
your system, but you can create them using the mkdir
command.
$HOME/.config/vim/sessions/session-files-here.vim
Vim session file.
I’ve created session files for purposes of editing my Thunderbird
email filters. This session only stores the shortcuts needed to make
flawless edits to my email filters. I will share them with you.
nnoremap <leader>1 2dw$x0:s/ OR /rOR /g<CR>
nnoremap <leader>2 Icondition="<Esc>A"<Esc>0:s/ "$/"/<CR>
nnoremap <leader>n1 gg0VG:s/$/ /<CR>gg0VG:s/ *$/ /<CR>gg0
nnoremap <leader>s1 gg02f,<C-v>G$ugg02f,<C-v>G$:sort u<CR>gg0
Web sources.
Article: Vim
- the ubiquitous text editor
Supporting Article: Vim Documentation:
The vim book (pdf file).
Article: Thunderbird is a free email application
that’s easy to set up and customize...
Supporting Article: Thunderbird Support site.
Supporting Article: Keyboard shortcuts. Perform common
Thunderbird tasks quickly.
Supporting Article: Protect your
Thunderbird passwords with a Primary Password.
Supporting Article: Organize
Your Messages by U
...more
View all episodesView all episodes
Download on the App Store

Hacker Public RadioBy Hacker Public Radio

  • 4.2
  • 4.2
  • 4.2
  • 4.2
  • 4.2

4.2

34 ratings


More shows like Hacker Public Radio

View all
The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

289 Listeners

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec by Jerry Bell and Andrew Kalat

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec

373 Listeners

LINUX Unplugged by Jupiter Broadcasting

LINUX Unplugged

268 Listeners

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast) by Johannes B. Ullrich

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast)

653 Listeners

Curious Cases by BBC Radio 4

Curious Cases

829 Listeners

The Strong Towns Podcast by Strong Towns

The Strong Towns Podcast

422 Listeners

Late Night Linux by The Late Night Linux Family

Late Night Linux

164 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,044 Listeners

Cybersecurity Today by Jim Love

Cybersecurity Today

181 Listeners

CISO Series Podcast by David Spark, Mike Johnson, and Andy Ellis

CISO Series Podcast

189 Listeners

TechCrunch Daily Crunch by TechCrunch

TechCrunch Daily Crunch

42 Listeners

Strict Scrutiny by Crooked Media

Strict Scrutiny

5,799 Listeners

2.5 Admins by The Late Night Linux Family

2.5 Admins

98 Listeners

Cyber Security Headlines by CISO Series

Cyber Security Headlines

139 Listeners

What the Hack? by DeleteMe

What the Hack?

221 Listeners