Git Product home page Git Product logo

xnote's Introduction

XNote++ Thunderbird Add-on

This repository contains the code for the Thunderbird XNote++ add-on.

Getting started

  • You can find a build.xml for an Ant build within this directory. In order to configure it, you have to copy the build.properties.ori to build.properties and do the necessary changes.

  • If you configure the build process properly, the development cycle is to code, stop Thunderbird, run "ant run" and check for the changes. "ant run" copies the files to an extracted directory in your Thunderbird profile (see build.properties), not the xpi file, deletes the "startupCache" in the profile directory to force Thunderbird to consider the updated resources, and starts Thunderbird.

    In some cases, e.g., changes to the HTML of the options dialog, it is sufficient to run "ant deploy" to copy the files to the profile directory and then try to reload the resources in Thunderbird. For the options dialog, this works by closing the add-on settings dialog and reopen it.

  • The ant build process creates a "build" directory next to the source directory that will contain the add-on package in an xnote-<version>.xpi file. See the build.xml for details. If you would like to manually install the XPI file, e.g., to test the installation notice, call "ant package" to only build the xpi file but not copy the sources to the TB profile.

  • The build process uses JSHint to check for JavaScript errors. In order to get that working, install NodeJS and install JSHint through: npm install -g jshint

  • If you are not yet familiar with Apache Ant, you can download it from https://ant.apache.org/bindownload.cgi. Ant also requires Java to be installed on your computer. After you extracted the Ant package, it's probably best to add the path to your ANT_HOME/bin directory to your PATH variable so that you can call the "ant" command without its full path.

  • There are developer tools included in Thunderbird for debugging - menu is presumably called "Tools" or "Extra" and then "developer tools" (not using the English version).


vim:spelllang=en

xnote's People

Contributors

froilo avatar jobisoft avatar opto avatar tyochiai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xnote's Issues

Move settings to new options_ui for WebExtensions

Current settings dialogue still show up under menu "Tools - Add-on settings - XNote++". The newer mechanism to implement options is to show them directly in the add-ons page. We should migrate at some point in time because user's will miss the settings if they are not in the expected place.

When making this transition, the storage mechanism for preferences could be made compatible with standard WebExtension mechanism as well including a migration functionality to migrate the old settings.

Resources:

Have full, unrestricted access to Thunderbird and your computer

When I browse to the addon inside thunderbird and click on permissions it says
This add-on can

  • Access browser tabs
    But when I click on "add to thunderbird" it says

Add Xnote++?
It requires permission to

  • Have full, unrestricted access to Thunderbird and your computer

Which sounds very scary.

Could you store the notes directly in the e-mail so that the notes can be used across different computers when using IMAP?

Moved from https://www.froihofer.net/bugzilla/show_bug.cgi?id=57

  • Starting with version 2.2.1, you can configure the storage path for your notes. By default, notes are stored in the "XNote" folder in your Thunderbird profile directory. In order to access the notes on a different computer or to share them with other users, configure the storage path to a mounted network drive, e.g., using WebDAV, Windows Share / Samba, or NFS. Beware that this might have a negative impact on the performance of the message list (scrolling) due to the network latency and the way how the XNote column is implemented. Another solution is to save the notes in a Dropbox folder.
    In order to change the storage location, use the advanced configuration editor (Tools – Options – Advanced – General – Config Editor...) to add the property "xnote.storage_path" (right mouse click – "New → String") and configure it with your desired path. If you already had some notes, don't forget to move them to the new location.

  • Similar to the previous option, you can store your whole Thunderbird profile on a shared network drive (requires appropriate configuration of "profiles.ini" in your Thunderbird user directory). Beware that this might have a big performance impact – depending on your network and the amount of data stored in your profile directory.

  • Another suggested option is to use some custom X-... header to store the note in the message header (it was reported that MailTags for Apple Mail does that). If the note is stored in the e-mail header, it needs to be defined whether the note is also forwarded as a message header to the recipient. This could be made an optional behaviour (checkbox) for forwarding e-mails. This will most likely not be implemented—unless someone contributes the necessary code.

search for messages with notes

that is easy if tag is set - just use general search. Add display of notes in that window.

Or: use a Gloda search/tab to do the same from code, by context menu or button

Scrolling through message list using keyboard stops after message is shown as XNote window grabs focus

Moved from https://www.froihofer.net/bugzilla/show_bug.cgi?id=61

If you use the keyboard to scroll through the message list (cursor up/down) and you reach a message with a note, the XNote window grabs the focus. After this, scrolling is no longer possible until you click on the message list again to give back the focus.

Known workaround: You can disable the automatic popup of the XNote window in the option pane by deselecting "Show note on message selection". After this, you have to manually open a note if you want to see it.

XNote++ 3.1.0 incompatible with ImportExportTools NG version 10.0.2

I guess XNote updated, but I am clueless as to where the icon went, and there is no longer a way to add a note. In fact, all the previous notes that I had added are no longer showing up. I don't even know where to start looking to see what might be going on. All I know is that it is installed and acting as if it is NOT installed.

Cannot set path and lost path information

After Update 3.1 Xnote lost the path information.
When I go to settings, the path is set to [ProfD]XNote and cannot be set. Neither by entering a path manually nor by clicking the systems select button.

Manually setting it, using document.getElementById('storage.path').value = '/Users/myusername/mypath; works.

After manually setting the path, i can use the systems select button again.
Bildschirmfoto 2020-12-02 um 09 53 18

Listview of all messages with notes

it would be nice to have a view with all messages with notes.

Workaround: If (!) notes are tagged, general search allows to search for tagged messages. Add capability to display the notes in the search result window.

Could you make the notes searchable?

Moved from https://www.froihofer.net/bugzilla/show_bug.cgi?id=50

In principle, this would be possible, although currently not practicable – anyone willing to contribute this?

If you are in urgent need for this, open your Thunderbird profile directory (http://kb.mozillazine.org/Profile_folder_-_Thunderbird), look for the folder called "XNote" and use a simple file search to look for the file containing the text.The notes can be viewed in a text editor (see question below). If you want to see the corresponding message, use the Thunderbird e-mail search to search, select "Customize..." to add a "Message-ID" header and search within this field for the message ID – the file name of the note without the ".xnote" extension.

Show XNote icon in collapsed threaded view

Moved from https://www.froihofer.net/bugzilla/show_bug.cgi?id=77

Feature request of a user:

Make it possible to see the XNote icon in the column in a collapsed thread, indicating that one or more XNote exists within in the thread?

I use the threaded view. Thunderbird Menu --> View --> Sort by --> Threaded

To compare, this functionality can be seen with Tags. For example: If a thread has 10 emails, and the 7th email is tagged "Important" and the Tag is Red, then the collapsed thread becomes red; when expanded, only the tagged email is red.

I notice that when the thread is collapsed, it turns yellow momentarily.

Show an error message if note should be created for message without a message ID

Moved from https://www.froihofer.net/bugzilla/show_bug.cgi?id=73

XNote depends on the presence of a messageId for assigning notes to e-mails. Therefore, the creation of notes for messages without a messageId should be prevented. Regarding user experience it would probably be the best not to disable the items for creation of the note (button, context menu), but to show an error instead so that the reason is known. Otherwise, this might lead to bug reports asking why it's not possible to add note to certain e-mails.

It seems, messages without a messageId are a rare case and this item is therefore of low priority

Last XNote window still displayed on Ubuntu after Thunderbird is closed

Moved from https://www.froihofer.net/bugzilla/show_bug.cgi?id=74

Hartmut Grosser:

Versions:
XNote = 2.3.1
Thunderbird = 68.4.1 (both on Windows and Ubuntu)
OS = Windows 7 (32-bit) and Linux Ubuntu 18.04 (64-bit)

  1. Select in Thunderbird a mail, where a XNote has been added, so that
    this XNote is displayed.
    Exit Thunderbird via the "X" in it's upper right corner or via keys ALT+F4.
    Result: after Thunderbird has exited, the XNote-Dialog is still
    displayed on the desktop (see attached screenshot1.png).
    OS: this bug occurs only on Ubuntu, not on Windows.
    Screenshot illustrating the problem: https://bugs.froihofer.net/bugzilla/attachment.cgi?id=5

  2. Select in Thunderbird a mail, where a XNote has been added, so that
    this XNote is displayed.
    Exit Thunderbird via Menu File / Exit or via keys STRG+Q (STRG+Q is only
    available on Ubuntu).
    Result: the error does NOT occur (the XNote-Dialog is closed, before
    Thunderbird exits).
    OS: same behaviour on Ubuntu and Windows.

  3. Select in Thunderbird a mail, where a XNote has been added, so that
    this XNote is displayed.
    Now start Thunderbird-menu Help / Troubleshooting Information.
    Result: the XNote-Dialog is still displayed over the Troubleshooting
    Informations (see attached screenshot2.png).
    OS: this bug occurs on Ubuntu AND on Windows.
    Screenshot illustrating the problem: https://bugs.froihofer.net/bugzilla/attachment.cgi?id=6

As requested, I repeated my tests with a new Thunderbird profile. The
results were the same.

keyboard note creation opens other note for edit instead

shift+F10 - e (in German) should create a new note for the selected message. Doing the same by mouse works.

Doing by keyboard, it jumps to edit the xnote of the last message in the messagelist. (being the last message may be by accident, in any case, it does not open a new empty note for the message that is selected

offer a few note standard sizes

the header or footer line could have mini buttons: small/medium/large/custom, to set standard note size.

Then, I would not always need to enlarge by mouse.

Sometimes, the XNote toolbar button is not shown after startup and cannot be added in these cases

Moved from https://www.froihofer.net/bugzilla/show_bug.cgi?id=72

Some people have reported that the XNote toolbar button and/or the XNote column is missing after an upgrade to Thunderbird 68. If that happens, it cannot be added through the toolbar customization dialogue as it does not show up there as well.

Problem is intermittent - sometimes it works just fine, sometimes this problem appears. If it appears, a workaround is to use the context menu through a right mouse click in the message list.

What also seems to work, is to uninstall XNote and reinstall it after it completely disappeared from the add-ons dialogue. However, for some, this did not solve the problem permanently.

First x characters not shown in XNote column

In the current state of the updates for TB78, the first x characters are not shown in the XNote column. The issue is that the getCellText function is never called while getImageSrc is still called. Therefore, the icon is shown while there is no text. This would indicate that it might as well be a Thunderbird bug - at least some changed behaviour for TB78 that needs to be sorted out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.