从MS outlook导入规则到雷鸟的方法


0

我最近安装了Firefox thunderbird,我想将我在Outlook中创建的所有规则导入到thunderbird中。有没有办法导入这些规则?

我在工具菜单中尝试了导入选项。当我选择,过滤器我只能从Eudora导入。它没有列出Outlook。此外,当我尝试导入所有内容时,没有列出任何内容。

那么无论如何都要将Outlook的所有规则导入到雷鸟中。

Answers:



1

'Outlook 2007中的这样的宏将创建一些与Thunderbird消息过滤器导入/导出附加组件兼容的规则。用您的电子邮件地址和服务器域替换用户名和域。

Option Explicit
Sub CreateRule()
Dim colRules As Outlook.Rules
Dim oRule As Outlook.Rule
Dim j As Integer
Dim email(5) As String
Dim server(5) As String

'Get Rules from Session.DefaultStore object
Set colRules = Application.Session.DefaultStore.GetRules()
email(1) = "username1%40domain1.com"
email(2) = "username2%40gmail.com"
email(3) = "username3%40gmail.com"
email(4) = "username4%40domain2.com-"
email(5) = "username4%40gmail.com"
server(1) = "mail.domain1.com"
server(2) = "imap.googlemail.com"
server(3) = "imap.googlemail.com"
server(4) = "imap.domain2.com"
server(5) = "imap.googlemail.com"
For j = 1 To 5
    Open "c:\temp\" + email(j) + ".txt" For Output As #1
    Print #1, "RootFolderUri=mailbox://" + email(j) + "@" + server(j)
    Print #1, "mailnews.customHeaders="
    Print #1, "version=""9"""
    Print #1, "logging=""no"""
    Dim i As Integer
    For i = 1 To colRules.Count
        Set oRule = colRules.item(i)
        ' break here, right click, add watch to see the structure of oRule
        If Len(oRule.Name) > 0 And oRule.Enabled And oRule.conditions.from.Enabled And oRule.conditions.from.recipients.Count > 0 And oRule.actions.MoveToFolder.Enabled Then
            Print #1, "name=""From is: " + oRule.Name + """"
            Print #1, "enabled=""yes"""
            Print #1, "type=""16""" ' type 16 for manually run only, type 17 for manually run and run on checking mail
            Print #1, "action=""Move to folder"""
            Print #1, "actionValue=""mailbox://nobody@Local%20Folders/Outlook%20Import/Personal%20Folders/Inbox/" + oRule.actions.MoveToFolder.folder + """"
            Print #1, "condition=""AND (from,is," + oRule.conditions.from.recipients.item(1).Address + ")"""
        End If
    Next i
    Close 1
Next j
End Sub

0

Mozillazine论坛中的Outlook Express(解决方法)帖子中有一个导入消息规则,但这涉及注册表导出和一些看起来很麻烦的文件编辑 - 我只是手动完成。但如果您有很多规则,可能值得一试。也许您也可以尝试安装Eudora,从Outlook导入,然后将Eudora规则导入Thunderbird。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.