Skip to content

Instantly share code, notes, and snippets.

@manolomartinez
Last active January 25, 2022 10:58
Show Gist options
  • Save manolomartinez/7082024 to your computer and use it in GitHub Desktop.
Save manolomartinez/7082024 to your computer and use it in GitHub Desktop.
Use ranger to save attachments in mutt.
# use ranger to save attachment
macro attach S "<pipe-message>/path/to/muttsaveattach.sh"<enter>
#!/bin/sh
urxvt -e ranger --choosefile=/tmp/muttattach
cat > $"`cat /tmp/muttattach`"
@Amooti73
Copy link

This script wouldn't work for me until I edited muttsaveattach.sh by removing $ from line 3. After this edit it works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment