|
|
A script to automatically link your Mail.app mailboxes
I wrote a script (actually, a pair of scripts) to make all of my Mail.app 'archived mail' mailboxes available in pine. Note that it does *not* automatically link your POP inboxes like the above hint does, so they complement each other nicely.
First create one script, named pine_import (or whatever): #!/bin/sh if [ ! -e ~/mail ]; then mkdir ~/mail fi find ~/Library/Mail/Mailboxes -name mbox -exec ./pine_link {} ; That script calls a 'helper script' named pine_link, which is below: #!/bin/sh source_mbox_path="$1" temp=`dirname "$source_mbox_path"` source_mbox_name=`basename "$temp"` destination_mbox_path=`echo "${HOME}/mail/${source_mbox_name}" | sed 's/.mbox//'` ln -s "$source_mbox_path" "$destination_mbox_path" Put them both in ~/bin, make them executable, and run pine_import to make your Mail archives readily accessible from pine! I use this in conjunction with the Java SSH Terminal (which you can download from me) to access my Mail folders from anywhere - handy to look up some old piece of mail.
A script to automatically link your Mail.app mailboxes
Nice script! One bug in pine_import:
A script to automatically link your Mail.app mailboxes
Dang! |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|