Thunderbird консоль ошибок

Не работает Mozilla Thunderbird: что делать если Mozilla Thunderbird не принимет письма или появилась ошибка отправления сообщения.

Содержание

  1. Mozilla Thunderbird не отправляет сообщения
  2. Не приходят сообщения в Mozilla Thunderbird
  3. Не работают ссылки в сообщениях

Пользователи Mozilla Thunderbird иногда сталкиваются с неполадками, устранение которых не всегда имеет очевидные пути решения. Ошибки Mozilla Thunderbird возникают по ряду факторов, не всегда обусловленных действиями пользователя. В этой инструкции рассмотрим наиболее известные из них.

В случае, если возникает ошибка отправления сообщения Mozilla Thunderbird, в первую очередь следует проверить настройки SMTP для исходящей корреспонденции. Выберите учетную запись, которая не работает, кликните на ней правой кнопкой мыши и выберите пункты «Параметры» — «Сервер исходящей почты». Убедитесь, что параметры сервера, указанные в нижней части панели, совпадают с настройками провайдера, предоставляющего услугу.

Узнать актуальные настройки сервера можно на сайте https://support.mozilla.org/ru/ в соответствующем разделе.

Если там информации нет, ее можно найти на официальном сайте почтового провайдера – как правило, в разделе поддержки пользователей.

Убедитесь, что используется корректный SMTP-сервер. Кликните по кнопке главного меню, затем выберите «Настройки» — «Параметры учетной записи».

Важно помнить, что службы одного провайдера не отправляют корреспонденцию другого – например, SMTP-сервер Яндекса не работает с почтой Gmail и наоборот.

Проверьте настройки файервола, сетевого экрана или антивирусного ПО – они могут запретить Mozilla Thunderbird доступ в интернет. Отключите на короткое время всю защиту и попробуйте отправить тестовое письмо.

Уточните, вдруг Mozilla Thunderbird не работает из-за блокировок на стороне вашего интернет-провайдера. Известно, что многие провайдеры в целях безопасности блокируют 25-й порт, поэтому приходится использовать другие. Информацию о блокировках можно уточнить в техподдержке провайдера.

Если перечисленные методы не помогают, попробуйте удалить пароль SMTP и поменять его на другой. Не забудьте установить такой же пароль в настройках почтового ящика.

Не приходят сообщения в Mozilla Thunderbird

Когда возникают ошибки Mozilla Thunderbird с получением корреспонденции, следует выполнить все вышеперечисленное. Как правило, в большинстве случаев эти методы работают. Однако если проблему решить не удалось, рекомендуется предпринять следующие шаги:

  • Проверить наличие и работоспособность интернет-соединения – проблема может быть на стороне провайдера;
  • Если веб-интерфейс провайдера электронной почты работает корректно, неполадки связаны с неправильными настройками Mozilla Thunderbird;
  • Убедитесь, что пароль учетной записи провайдера почты не изменен вами или посторонними;
  • Если Mozilla Thunderbird недавно обновлялась, доступ может быть запрещен антивирусом или брандмауером.

Если вы получаете не всю корреспонденцию, а по пути где-то теряются важные письма, проверьте настройки антиспам-фильтров вашего почтового провайдера. Возможно, почтовые службы попросту не пропускают такие сообщения из-за содержащихся в них ссылок или вложений определенного формата. Кроме того, проверьте настройку антиспама в самом Mozilla Thunderbird, особенно если вы создавали собственные дополнительные фильтры или блокировали некоторых респондентов.

Не работают ссылки в сообщениях

В отличие от некоторых аналогичных программ, Mozilla Thunderbird вставляет при создании сообщений кликабельных ссылок, по которым можно перейти. При вставке ссылки она будет оформлена соответственно (то есть выделена цветом и подчеркнута), но при клике по ней ничего не произойдет. При наборе ссылки в теле письма она появляется в виде обычного неформатированного текста. Такое решение принято разработчиками Mozilla Thunderbird специально из-за особенностей редактирования ссылок. Активируются они только после отправки сообщения или сохранения его в черновиках.

При клике на полученную ссылку она должна автоматически открываться в браузере. Если этого не происходит, проверьте, установлен ли на вашей ОС браузер по молчанию. Как найти эту информацию на примере Windows 7.

Перейти по пути «Пуск» — «Панель управления» — «Программы по умолчанию».

Нажать кнопку «Задание программ по умолчанию».

Проверить в списке, какой из браузеров используется по умолчанию (и используется ли вообще).

Если этот метод не помогает, следует проверить, не являются ли причиной такой ошибки Mozilla Thunderbird установленные плагины. Для этого необходимо запустить почтовый клиент в безопасном режиме (перезапустите и удерживайте Shift при старте приложения). В появившемся окне установите флажок «Отключить все дополнения».

Если в безопасном режиме ссылки открываются, а в обычном нет, корректно не работает Mozilla Thunderbird из-за одного из дополнений. Осталось определить, из-за какого именно. Для этого можно отключать их по очереди в панели управления дополнениями, проверяя работоспособность ссылок.

Thunderbird 24.2.0 has a -mail command-line parameter, with which a specific mail can be opened from the command line:

$ thunderbird --help
-mail <URL>        Open the message specified by this URL.

I know that one can use this function to open a specific email by an imap:// URI, but I would like to be able to open a specific mail by its unique Message-ID, no matter which folder contains it. Is this possible, and if so, what does the URI look like?

The thunderlink add-on ( https://addons.mozilla.org/en-us/thunderbird/addon/thunderlink/ ) can create message-id based links to emails and then open these with the -thunderlink parameter, but I would still like to know if this can be done with just the -mail parameter.

asked Jan 15, 2014 at 8:10

Charl Botha's user avatar

2

Update 2021-03-18: The bug mentioned below has been fixed with Thunderbird version 78.8.1. No adjustments are necessary to open mails from the command line using thunderbird.exe -mail <URL>.


Opening messages with the -mail command line parameter is still possible with a current Thunderbird version (tested on Windows 10 with version 78.6.0, 32-bit).

However, this requires a small change of the module MailNewsCommandLineHandler.jsm, because otherwise a getter-only error occurs when calling the -mail command. The error can be traced via the Thunderbird error console (see below).

Adjusting the module:

  1. Copy the file c:Program Files (x86)Mozilla Thunderbirdomni.ja into a temporary directory, rename the file to omni.zip and unpack it.

  2. Open MailNewsCommandLineHandler.jsm, insert

    set _messenger(value) {
        return value;
    }, 
    

    after line 22 and save the file.

  3. Repack all files using the following parameters: zip.exe -0DXqr omni.ja *. Rename the original file to omni.ja.bak and copy the repacked file to c:Program Files (x86)Mozilla Thunderbird.

  4. Messages can then be opened using the following command lines:

    thunderbird.exe -mail "mailbox-message://<folderLocation>#<messageKey>" (for local folders)
    thunderbird.exe -mail "imap-message://<folderLocation>#<messageKey>" (for IMAP folders)
    

Finding the right URL:

  • Error console: Open TB, select a message and open the error console (Ctrl + Shift + J). Enter the line

    var hdr = gFolderDisplay.selectedMessage; alert(hdr.folder.getUriForMsg(hdr));
    

    and press enter. This will open a window with the URL for the selected message.

  • SQLite database: If you plan to build your own search tool (e.g. by writing a Python plugin for the Wox desktop launcher), it is perhaps best to create the URLs dynamically.

    The Thunderbird database can be found under %APPDATA%ThunderbirdProfiles<profile>global-messages-db.sqlite. The tables messagesText_content, messages and folderLocations contain all information needed to assemble the URL strings.

    A simple Python script that can be used to generate the URLs might look something like this:

    import sqlite3
    import re
    import sys
    import os
    import json
    
    # Replace db_path with your profile location
    # (Help > Troubleshooting Information > Open Folder)
    db_path = r"%APPDATA%ThunderbirdProfilesxxxxxxxx.default"
    
    con = sqlite3.connect(os.path.join(db_path, "global-messages-db.sqlite"))
    cursor = con.cursor()
    
    query = """
        SELECT messagesText_content.*, 
               strftime('%Y-%m-%d, %H:%M', 
                        DATETIME(messages.date/1000000, 
                        "unixepoch", "localtime")),
               messages.folderID,
               messages.messageKey
        FROM messagesText_content
        JOIN messages ON messages.id=messagesText_content.docid
        WHERE messagesText_content.c3author NOT LIKE "%daemon%"
        OR messagesText_content.c3author NOT LIKE "%DAEMON%"
        ORDER BY messages.date DESC
        """
    
    def get_messages():
        messages = []
        cursor.execute(query)
        for i in cursor:
            messages.append({
                "text": i[1] if i[1] else "",
                "subject": i[2], 
                "attachments": f'attach:{i[3]}' if i[3] else "",
                "sender": i[4], 
                "receiver": i[5], 
                "date": i[6], 
                "folder_id": i[7],
                "message_key": i[8]
                })
        return messages
    
    def get_folders():
        cursor.execute("SELECT * FROM folderLocations")
        return {i[0]: i[1:] for i in cursor.fetchall()}
    
    def collect_urls(terms):
        r1 = "(mailbox|imap)(?=://)"
        r2 = "\1-message"
        messages = get_messages()
        folders = get_folders()
        results = {}
        for msg in messages:
            msg_str = str(msg.values()).lower()
            if all(i.lower() in msg_str for i in terms):
                folder = folders.get(msg["folder_id"])[0]
                url = re.sub(r1, r2, folder)
                url = f'{url}#{msg["message_key"]}'
                msg["text"] = msg["text"][:50]
                results.update({url: msg})
        return json.dumps(
            results, 
            indent=4,
            ensure_ascii=False
            )
    
    if __name__ == "__main__":
        if len(sys.argv) > 1:
            print(collect_urls(sys.argv[1:]))
    

    Just use it like so:

     <C:>python collect_urls.py search terms test message
    
     {
         "imap-message://a%40b.cd@imap.provider.com/INBOX#28649": {
             "text": "Test message contains search terms",
             "subject": "Test message",
             "attachments": "",
             "sender": "John Doe <e@f.gh>",
             "receiver": "i@j.kl",
             "date": "2022-10-02, 14:20",
             "folder_id": 607,
             "message_key": 28649
         }
     }
    

answered Jan 2, 2021 at 23:40

Tobias Eiläufer's user avatar

4

… for anyone still searching for a solution…
The following command worked for me (thunderbird 102.6.1):

thunderbird mid:<the message ID>

To make this nice and easy:

  1. make sure the «thunderbird» command is in PATH (e.g. you can execute it in a terminal)
  2. install copy message ID AddOn
  3. in the preferences add the following prefix: thunderbird mid:
    (make sure that there are no spaces before and after!)
  4. open an email and click the Copy Message ID button
  5. run the copied command in a terminal to open the mail

answered Jan 10 at 16:11

raphael's user avatar

Thunderbird 24.2.0 has a -mail command-line parameter, with which a specific mail can be opened from the command line:

$ thunderbird --help
-mail <URL>        Open the message specified by this URL.

I know that one can use this function to open a specific email by an imap:// URI, but I would like to be able to open a specific mail by its unique Message-ID, no matter which folder contains it. Is this possible, and if so, what does the URI look like?

The thunderlink add-on ( https://addons.mozilla.org/en-us/thunderbird/addon/thunderlink/ ) can create message-id based links to emails and then open these with the -thunderlink parameter, but I would still like to know if this can be done with just the -mail parameter.

asked Jan 15, 2014 at 8:10

Charl Botha's user avatar

2

Update 2021-03-18: The bug mentioned below has been fixed with Thunderbird version 78.8.1. No adjustments are necessary to open mails from the command line using thunderbird.exe -mail <URL>.


Opening messages with the -mail command line parameter is still possible with a current Thunderbird version (tested on Windows 10 with version 78.6.0, 32-bit).

However, this requires a small change of the module MailNewsCommandLineHandler.jsm, because otherwise a getter-only error occurs when calling the -mail command. The error can be traced via the Thunderbird error console (see below).

Adjusting the module:

  1. Copy the file c:Program Files (x86)Mozilla Thunderbirdomni.ja into a temporary directory, rename the file to omni.zip and unpack it.

  2. Open MailNewsCommandLineHandler.jsm, insert

    set _messenger(value) {
        return value;
    }, 
    

    after line 22 and save the file.

  3. Repack all files using the following parameters: zip.exe -0DXqr omni.ja *. Rename the original file to omni.ja.bak and copy the repacked file to c:Program Files (x86)Mozilla Thunderbird.

  4. Messages can then be opened using the following command lines:

    thunderbird.exe -mail "mailbox-message://<folderLocation>#<messageKey>" (for local folders)
    thunderbird.exe -mail "imap-message://<folderLocation>#<messageKey>" (for IMAP folders)
    

Finding the right URL:

  • Error console: Open TB, select a message and open the error console (Ctrl + Shift + J). Enter the line

    var hdr = gFolderDisplay.selectedMessage; alert(hdr.folder.getUriForMsg(hdr));
    

    and press enter. This will open a window with the URL for the selected message.

  • SQLite database: If you plan to build your own search tool (e.g. by writing a Python plugin for the Wox desktop launcher), it is perhaps best to create the URLs dynamically.

    The Thunderbird database can be found under %APPDATA%ThunderbirdProfiles<profile>global-messages-db.sqlite. The tables messagesText_content, messages and folderLocations contain all information needed to assemble the URL strings.

    A simple Python script that can be used to generate the URLs might look something like this:

    import sqlite3
    import re
    import sys
    import os
    import json
    
    # Replace db_path with your profile location
    # (Help > Troubleshooting Information > Open Folder)
    db_path = r"%APPDATA%ThunderbirdProfilesxxxxxxxx.default"
    
    con = sqlite3.connect(os.path.join(db_path, "global-messages-db.sqlite"))
    cursor = con.cursor()
    
    query = """
        SELECT messagesText_content.*, 
               strftime('%Y-%m-%d, %H:%M', 
                        DATETIME(messages.date/1000000, 
                        "unixepoch", "localtime")),
               messages.folderID,
               messages.messageKey
        FROM messagesText_content
        JOIN messages ON messages.id=messagesText_content.docid
        WHERE messagesText_content.c3author NOT LIKE "%daemon%"
        OR messagesText_content.c3author NOT LIKE "%DAEMON%"
        ORDER BY messages.date DESC
        """
    
    def get_messages():
        messages = []
        cursor.execute(query)
        for i in cursor:
            messages.append({
                "text": i[1] if i[1] else "",
                "subject": i[2], 
                "attachments": f'attach:{i[3]}' if i[3] else "",
                "sender": i[4], 
                "receiver": i[5], 
                "date": i[6], 
                "folder_id": i[7],
                "message_key": i[8]
                })
        return messages
    
    def get_folders():
        cursor.execute("SELECT * FROM folderLocations")
        return {i[0]: i[1:] for i in cursor.fetchall()}
    
    def collect_urls(terms):
        r1 = "(mailbox|imap)(?=://)"
        r2 = "\1-message"
        messages = get_messages()
        folders = get_folders()
        results = {}
        for msg in messages:
            msg_str = str(msg.values()).lower()
            if all(i.lower() in msg_str for i in terms):
                folder = folders.get(msg["folder_id"])[0]
                url = re.sub(r1, r2, folder)
                url = f'{url}#{msg["message_key"]}'
                msg["text"] = msg["text"][:50]
                results.update({url: msg})
        return json.dumps(
            results, 
            indent=4,
            ensure_ascii=False
            )
    
    if __name__ == "__main__":
        if len(sys.argv) > 1:
            print(collect_urls(sys.argv[1:]))
    

    Just use it like so:

     <C:>python collect_urls.py search terms test message
    
     {
         "imap-message://a%40b.cd@imap.provider.com/INBOX#28649": {
             "text": "Test message contains search terms",
             "subject": "Test message",
             "attachments": "",
             "sender": "John Doe <e@f.gh>",
             "receiver": "i@j.kl",
             "date": "2022-10-02, 14:20",
             "folder_id": 607,
             "message_key": 28649
         }
     }
    

answered Jan 2, 2021 at 23:40

Tobias Eiläufer's user avatar

4

… for anyone still searching for a solution…
The following command worked for me (thunderbird 102.6.1):

thunderbird mid:<the message ID>

To make this nice and easy:

  1. make sure the «thunderbird» command is in PATH (e.g. you can execute it in a terminal)
  2. install copy message ID AddOn
  3. in the preferences add the following prefix: thunderbird mid:
    (make sure that there are no spaces before and after!)
  4. open an email and click the Copy Message ID button
  5. run the copied command in a terminal to open the mail

answered Jan 10 at 16:11

raphael's user avatar

Вопрос:

Я работаю над расширением Thunderbird и, к сожалению, не могу разобраться в том, что все еще актуально, а что нет. Там много материала в Интернете, но большинство из них больше не применимо к недавнему Thunderbird.

  • Как минимум, мне нужен способ просмотра сообщений журнала с расширением, поэтому я вижу, что работает, а что нет. В идеале, мне нужна полная консоль отладки. Существует ссылка на Stackoverflow на Thunderbird Developer Tools, но, похоже, нет способа загрузить их.

  • Я также хотел бы иметь возможность запускать Javascript, который может ссылаться на мое расширение через консоль. Когда я пробую это через консоль Thunderbird, я получаю сообщения об ошибках. Я получаю это даже при использовании других расширений для людей, поэтому я должен предположить, что расширения не входят в область консоли

Как я могу получить видимость и взаимодействие с новым расширением Thunderbird?

Лучший ответ:

Содержание

  1. протоколирование сообщений
  2. Инструменты разработчика Thunderbird
  3. выполнить Javascript, который может ссылаться на мое расширение

протоколирование сообщений

Как описано в https://developer.mozilla.org/en-US/docs/Debugging_JavaScript, в Gecko есть 3 разных консоли. Наиболее доступным в Thunderbird является Консоль ошибок. Вы можете писать сообщения через nsIConsoleService. Если вы не против, чтобы сообщения журнала отображались как ошибка, вы также можете просто использовать Components.utils.reportError().

Другой способ – войти в (собственную) консоль, из которой запускается Thunderbird. Это делается через dump().

Самый новый способ записи сообщений – это Log.jsm. Это очень хорошая обложка вокруг различных методов ведения журнала, и мой предпочтительный способ регистрации сообщений в Thunderbird.

Инструменты разработчика Thunderbird

Поскольку вы не привязаны к ссылке, я не уверен на 100%, но я думаю, что вы имеете в виду возможность удаленно отлаживать Thunderbird через Firefox. Вам не нужно скачивать что-либо, чтобы использовать это, оно уже интегрировано в Thunderbird.

выполнить Javascript, который может ссылаться на мое расширение

Отладка Thunderbird удаленно через Firefox дает также доступ к консоли и Scratchpad в Инструментах разработчика. Оба должны иметь доступ к надстройке.

Вы также можете посмотреть Tiny JavaScript Debugger. Он также позволяет выполнять произвольный код во время отладки.

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Thunderbird как изменить место хранения почты
  • Thunderbird как изменить имя
  • Thunderbird xulrunner error platform version
  • Thunderbird tls error
  • Thunderbird noop internal server error

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии