Browse files

grab the account of the selected message(s), no more hardcoded account

  • Loading branch information...
Pedro Figueiredo
Pedro Figueiredo committed Apr 20, 2009
1 parent c141853 commit 16467c2473541a6296943d1a7d96d3269e262b9d
Showing with 1 addition and 1 deletion.
  1. +1 −1 MailArchive.applescript
@@ -5,7 +5,7 @@ using terms from application "Mail"
set msgAccount to name of account of mailbox of thisMessage
set msgMailbox to name of mailbox of thisMessage
set mboxName to "Archive"
- tell account "personal"
+ tell account msgAccount
set mbox to mailbox named mboxName
get name of mbox

0 comments on commit 16467c2

Please sign in to comment.