Coder Social home page Coder Social logo

muttjump's Introduction

muttjump

Jump to the original message from a virtual maildir in the Mutt email client.

Written by Johannes Weißl, released into the public domain.

This script makes mail indexers (like mairix, mu, nmzmail, or notmuch) together with Mutt more useful.

These search engines usually create a virtual maildir containing symbolic links to the original mails, which can be browsed using Mutt. It would be optimal if Mutt somehow knew that the two maildir entries identify the same mail, but this is not that easy (mail folder abstraction from different formats, no tight integration of mail indexers, etc.).

So if one wants to rename (for setting/clearing flags), delete or edit the mails, it is only possible using the original mail. This simple script helps to jump to this message, using e.g. this macro in ~/.muttrc:

macro generic ,j "<enter-command>push <pipe-message>muttjump<enter><enter>" "jump to original message"

Don't forget to quit the new Mutt instance (started by muttjump) after the modifications. To make jumping faster (no keypress required), unset $wait_key in your ~/.muttrc.

The way described above will open a new instance of Mutt. Another option is to invoke this script as muttjump-same. In that case, a file ~/.muttjump will be created. This file will contain instructions for Mutt, which will, after sourcing, lead to the jump to the desired message (and deletion of ~/.muttjump). For that purpose, following macro might be used:

macro generic ,j "<enter-command>push <pipe-message>muttjump-same<enter><enter><enter-command>source ~/.muttjump<enter>" "jump to original message"

Note: The latter usage of the script can be activated by creating a symlink called muttjump-same with this script as a target.

muttjump's People

Contributors

abrenk avatar mmatejka avatar phloxic avatar weisslj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.