Skip to content
Maildir-based bookmarking
Perl
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
mbm
mbm-web.pl

README.md

mbookmarks

Maildir-based bookmarking.

Until now I was not able to find a flexible bookmarking solution that is working on the commandline and synchronisable with git. I therefore wrote this script to create a maildir and save my bookmarks as mails. The saved bookmarks can then be accessed by any email client supporting maildir. Examples are mutt/neomutt or Thunderbird.

Requirements

mbm is a Perl script. It uses

  • Mail::Box
  • HTML::FormatText
  • LwP
  • URI
  • Sys::Hostname
  • Getopt::Long
  • Pod::Usage

Usage

Add a bookmark

mbm add https://github.com/jwbargsten/mbookmarks
mbm a https://github.com/jwbargsten/mbookmarks
mbm a --note 'cool repo' --tag perl --tag apps https://github.com/jwbargsten/mbookmarks

Run mutt

mbm mutt
mbm m

Execute git commands in the mbm repo (~/.mbookmarks)

mbm git ...
mbm g ...

mutt-specific stuff

Use mbm open as pager to open the URLs in xdg-open

~/.muttrc:

set editor="vim -f"
set my_name="Name"
set realname = $my_name

macro index,pager X "<pipe-entry>mbm open<enter>"
macro index,pager \cb <pipe-entry>'urlview'<enter> 'Follow links with urlview'

ignore * 
unignore x-bookmark-url x-bookmark-tags from to date subject
You can’t perform that action at this time.