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


Click here to return to the '10.5: Keep 'Apple Mail To Do' off IMAP accounts in Mail' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Keep 'Apple Mail To Do' off IMAP accounts in Mail
Authored by: mainmode1 on Jan 29, '09 07:54:27PM
For the brave:

1. Quit Apple Mail.

2. Remove the "Apple Mail To Do" label in Gmail.

3. Save/execute the following shell script:

#!/bin/bash
#http://developer.apple.com/documentation/Darwin/Reference/ManPages/man8/PlistBuddy.8.html
#dest=/opt/local/bin
dest=/usr/bin
sudo cp -v /Library/Receipts/iTunesX.pkg/Contents/Resources/PlistBuddy $dest
cp -v ~/Library/Preferences/com.apple.mail.plist ~/Desktop/com.apple.mail.plist.backup
defaults write com.apple.mail NewNoteToDoAccount -string LocalAccountId
for ((i=0; i <= 30 ; i++))
do
  chk=`PlistBuddy -c "print :MailAccounts:$i:ToDosMailboxName" ~/Library/Preferences/com.apple.mail.plist | grep -i "does not exist"`
  if [ "$chk" == "" ]
  then
    PlistBuddy -c "set :MailAccounts:$i:ToDosMailboxName ''" ~/Library/Preferences/com.apple.mail.plist
  fi
done
defaults read com.apple.mail MailAccounts

The script will print the MailAccounts dicts so that you can confirm the change to ToDosMailboxName values.

A backup of the Mail preferences plist file is saved to the desktop.

Collapse/ignore the folder under Reminders in Mail. Better yet, don't use To Do notes at all and Reminders will disappear entirely.

[ Reply to This | # ]