Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37491072
en ru br
ALT Linux repos
5.0: 4.64L-alt5.1
4.1: 4.64L-alt5
4.0: 4.64L-alt4.1
3.0: 4.58L-alt4
+backports:4.64L-alt0.M30.4

Group :: Networking/Mail
RPM: pine

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/bash

# Usage:
#
# pine2Mutt [ [source|""] [target] ]
#
# The script taken from Pine FAQ page (University of Washington)

if [[ -z $1 ]]
then
pineBook=$HOME/.addressbook
fi

if [[ -z $2 ]]
then
muttAliases=$HOME/.mutt.aliases
fi

echo About to convert
echo "from\tPine addressbook file\t(1st argument): $pineBook"
echo "to\tMutt aliases file\t(2nd argument): $muttAliases" "..."

perl -ane '$F[$#F] = "<$F[$#F]>"; print "alias @F\n";' \
$pineBook > $muttAliases

echo Convertion completed.
echo
echo "Don't forget: to make mutt read them in on startup you must add this line to mutt's setup file:

source $HOME/.mutt.aliases
"
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin