Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Another use for Pine' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another use for Pine
Authored by: jalex on Oct 28, '02 02:47:26PM

I like to use when I'm at home, and is configured to download all my mail and delete it from the server. When I'm at work, I want to be able to read my mail, so I just use pine to read's mail file. This is a pretty easy one. In a shell, just do the following:

cd ~/mail (this changes directories to where pine looks for mail folders)
ln -s /Users/<you>/Library/Mail/<your account>/INBOX.mbox/mbox ./my-account-inbox

In the above, <you> is your local user name, and <your account> is the email account you're getting mail from (if you look in that directory, the names are obvious). The final part, (./my-account-inbox) is what you want the mail folder to be called when pine sees it. Since I use AT&T broadband's email, I called mine att-inbox.

Anyway, now if you run pine and go to the folder list, you'll see your my-account-inbox right there. As long as is running while you're out, it'll keep fetching mail and writing it to your mailbox. pine will notice the changes at regular intervals, or you can hit Ctrl-L while in the index screen to get it to check for anything new. Keep in mind that this just causes pine to check the mailbox file - it doesn't make Mail check with your mail provider for mail.

To do that, you could write an AppleScript that can be run from the command line that causes Mail to wake up and check your email. Run osascript with this:

tell application "Mail"
check for new mail
end tell

Any new mail will get pushed into your mailbox file, so it'll be available to pine.

One final note: I've only done this with POP accounts, but I assume that for downloading email via IMAP, Mail still uses the unix mailbox format that pine can read.

[ Reply to This | # ]
Another use for Pine
Authored by: rharder on Oct 29, '02 07:56:12AM

That's even better than my IMAP tip. I looked into the way Mail stores IMAP folders, and no, it doesn't appear to be the traditional unix way. It's some IMAP way (imagine that!). Anyhoo, I may just forward my email to a pop server then... We'll see.


[ Reply to This | # ]