导出邮件从Entourage到Outlook
Article by Dave Addey
我最近有一堆电子邮件从Entourage和到Outlook导出, 为了送他们到别人的格式,他们可以浏览和PC上阅读. You’d think that exporting a selection of emails from one Microsoft email management tool to another would be easy, 对? Sadly not. Thankfully, 有点AppleScript的和相对便宜的效用得到的东西为我工作. This post describes how.
主要问题是缺乏的Entourage之间的通用格式 (.MBOX的文件夹, .EML个人电子邮件) 与展望 (.PST的一切). 曾经有一个很好的AppleScript出口工具,从Entourage出口, 但可悲的是它从来没有被更新,以豹工作. You can export a whole folder as an MBOX file from Entourage, 但这些不能被Outlook中打开,因此没有太大的兼用.
(作为旁白, there are numerous ways to go the other way, 从Outlook导出和导入到Entourage. It’s almost as if lots of people are switching from PC to Mac, 但很少需要在另一个方向去...)
我最终的解决方案有两个部分 - 让邮件出的Entourage, 然后得到它到Outlook.
获取邮件外发的Entourage
对于这部分, 我写了一个AppleScript (主要基于从macosxhints代码) 在Entourage中所有当前选择的电子邮件导出到一个文件夹在我的Mac. Many thanks to macosxhints user golgi_body for posting the original code.
下面是我使用的脚本 (复制到脚本编辑器这种使用它):
tell application "Microsoft Entourage"
-- get a reference to all selected messages from entourage
set selectedMessages to the current messages
if selectedMessages is {} then
return
end if
-- absolute reference to our export folder
set fpath to "DiskName:Users:myusername:Documents:existingfolder:"
repeat with i in selectedMessages
set sentDate to time sent of i
set fname to fpath ¬
& my padNumber(year of sentDate as integer) ¬
& "-" & my padNumber(month of sentDate as integer) ¬
& "-" & my padNumber(day of sentDate as integer) ¬
& "-" & my padNumber(hours of sentDate as integer) ¬
& "-" & my padNumber(minutes of sentDate as integer) ¬
& "-" & my padNumber(seconds of sentDate as integer) ¬
tell application "Finder"
if (exists file (fname & ".eml")) then
set k to 1
repeat while (exists file (fname & "-" & (k as string) & ".eml"))
set k to k + 1
end repeat
set fname to (fname & "-" & (k as string))
end if
end tell
set fname to fname & ".eml"
save i in fname
tell application "Finder" to update file fname
end repeat
end tell
to padNumber(theNumber)
if theNumber is less than 10 then
return "0" & theNumber
else
return theNumber
end if
end padNumber
你需要设置fpath是在Mac上的现有文件夹的路径. 当您在脚本编辑器这个脚本, 所有Entourage中选定的文件将被导出到您的导出文件夹作为.eml文件.
为什么使用AppleScript的所有? Why not just drag the selected emails onto a folder? After all, 这个提示的Entourage他们本身导出的.eml格式. The problem is, 当你这样做, 随行人员使用导出邮件主题作为文件名的电子邮件. This can contain all sorts of weird and wonderful characters, 和Windows不喜欢,在所有. This script avoids the problem altogether by using the date and time the email was sent as the filename. (这也使得,如果你需要它更容易为了你的日期和时间在Finder中.eml文件。)
获取邮件到Outlook
对于这部分, I used a Windows utility called Outlook Import向导. It costs $19.95, 但它是值得更多的是当你考虑的时间就可以节省. You can download it and try it out for free (最大 5 每个演示进口电子邮件), 但被警告 - 在演示模式, 你不能打开“启用EML预处理 (unix, mac)”选项,以使向导识别Mac编码的电子邮件, 所以你的邮件进口将包含大量的“=”符号时您在Outlook中查看它们. The good news is that the purchased app works fine with Mac-encoded emails.
导入过程是很容易的. On your PC with Outlook installed, 通过Outlook导入向导工作, 为确保打开“启用EML预处理 (unix, mac)"选项 (下的“选项”按钮,找到“选择源文件夹”屏幕上) 以确保您的Mac编码的电子邮件确认. The wizard is pretty self-explanatory, and there are 在线完整说明, 所以我不会通过的设置详细其余这里运行. It’ll take a while to do the import, 但最终你会拥有所有Outlook中的电子邮件, 与所有附件和原标题.
我只试过这个过程中自己与Entourage 2008 (在Leopard) 与展望 2002 (在XP), 但我希望它与早期版本的Entourage工作太. The Outlook Import Wizard claims to work on Windows 98/Me/NT 4.0/2000/XP/2003 with Outlook 98/2000/2002/2003/2007, 所以你应该去的好,无论你的设置.