Skip to content

Commit 5062978

Browse files
author
Ludovic Marcotte
committed
Initial import of SOGo Connector for Thunderbird 68+
0 parents  commit 5062978

File tree

337 files changed

+22006
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

337 files changed

+22006
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
MANIFEST
2+
sogo-connector-*.xpi

COPYING

+339
Large diffs are not rendered by default.

ChangeLog.old

+899
Large diffs are not rendered by default.

Makefile

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
PACKAGE = sogo-connector
2+
GIT_REV = $(shell git rev-parse --verify HEAD | cut -c1-10)
3+
4+
#ifeq ($(shell uname),Darwin)
5+
#VERSION = $(shell grep em:version install.rdf | sed -E 's@(em:version=|"| )@@g')
6+
#else
7+
#VERSION = $(shell grep em:version install.rdf | sed -e 's@\(em:version=\|\"\|\ \)@@g')
8+
#endif
9+
VERSION=68.0.0
10+
11+
XPI_ARCHIVE = $(PACKAGE)-$(VERSION)-$(GIT_REV).xpi
12+
13+
SHELL = /bin/bash
14+
ZIP = /usr/bin/zip
15+
16+
FILENAMES = $(shell cat MANIFEST)
17+
18+
all: MANIFEST-pre MANIFEST rest
19+
20+
MANIFEST: MANIFEST-pre
21+
@if ! cmp MANIFEST MANIFEST-pre >& /dev/null; then \
22+
mv -f MANIFEST-pre MANIFEST; \
23+
echo MANIFEST updated; \
24+
else \
25+
rm -f MANIFEST-pre; \
26+
fi;
27+
28+
MANIFEST-pre:
29+
# @echo install.rdf > $@
30+
@echo manifest.json > $@
31+
@echo COPYING >> $@
32+
@echo ChangeLog.old >> $@
33+
@find . -type f -name "*.manifest" >> $@
34+
@find . -type f -name "*.xul" >> $@
35+
@find . -type f -name "*.xml" >> $@
36+
@find . -type f -name "*.dtd" >> $@
37+
@find . -type f -name "*.idl" >> $@
38+
@find . -type f -name "*.js" >> $@
39+
@find . -type f -name "*.jsm" >> $@
40+
@find . -type f -name "*.css" >> $@
41+
@find . -type f -name "*.png" >> $@
42+
@find . -type f -name "*.gif" >> $@
43+
@find . -type f -name "*.jpg" >> $@
44+
@find . -type f -name "*.xpt" >> $@
45+
@find . -type f -name "*.properties" >> $@
46+
@find . -type f -name "*.rdf" >> $@
47+
@find . -type f -name "RELEASE-NOTES" >> $@
48+
49+
rest: MANIFEST
50+
@+make $(XPI_ARCHIVE)
51+
52+
$(XPI_ARCHIVE): $(FILENAMES)
53+
@echo Generating $(XPI_ARCHIVE)...
54+
@rm -f $(XPI_ARCHIVE)
55+
@$(ZIP) -9r $(XPI_ARCHIVE) $(FILENAMES) > /dev/null
56+
57+
clean:
58+
rm -f MANIFEST-pre $(XPI_ARCHIVE)
59+
rm -f *.xpi
60+
find . -name "*~" -exec rm -f {} \;
61+
62+
distclean: clean
63+
rm -f MANIFEST

README

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
=====================================================
2+
To package the extension
3+
=====================================================
4+
edit <em:version> in install.rdf
5+
run make
6+
7+
========================================================
8+
Logging
9+
========================================================
10+
11+
For development enable debug messages
12+
-------------------------------------
13+
14+
Taken from:
15+
http://brainflush.wordpress.com/2008/01/17/mozilla-thunderbird-extension-development-environment-setup/
16+
17+
javascript.options.showInConsole = true.
18+
Logs errors in chrome files to the Error Console.
19+
20+
nglayout.debug.disable_xul_cache = true.
21+
Disables the XUL cache so that changes to windows and dialogs do not require a restart. This assumes you�re using directories rather than JARs. Changes to XUL overlays will still require reloading of the document overlaid.
22+
23+
browser.dom.window.dump.enabled = true.
24+
Enables the use of the dump() statement to print to the standard console. See window.dump for more info. You can also use nsIConsoleService from privileged script.
25+
26+
javascript.options.strict = true.
27+
Enables strict JavaScript warnings in the Error Console. Note that since many people have this setting turned off when developing, you will see lots of warnings for problems with their code in addition to warnings for your own extension. You can filter those with Console2.
28+
29+
30+
31+
Making the standard output console visible
32+
-------------------------------------------
33+
34+
Taken from:
35+
https://developer.mozilla.org/en-US/docs/DOM/window.dump?redirectlocale=en-US&redirectslug=DOM%3Awindow.dump
36+
37+
On Windows, you will need a console to actually see anything. If you don't have one already, closing the application and re-opening it with the command line parameter -console should create the console. On other operating systems, it's enough to launch the application from a terminal.
38+
39+
40+
41+
Debugging and changing code without restart Thunderbird
42+
-------------------------------------------------------
43+
44+
Setting breakpoints to stop inside JS code of a plugin using JavaScript Debugger Venkman does not work.
45+
Instead, install plugin Workspace for Thunderbird -> http://antennasoft.net/robcee/
46+
47+
Place all your code, you want to test, there and execute it. You can even defined functions there.
48+
If you cannot override an existing JS function, you have to rename it.
49+
50+
51+
52+
Other notes
53+
-----------
54+
55+
Command line parameter for starting Thunderbird in DEVEL mode: -purgecaches -console -no-remote -P dev
56+
57+
More useful hints for developers: https://developer.mozilla.org/en/docs/Setting_up_extension_development_environment
58+
59+
60+
61+
========================================================
62+
Lightning Modifications
63+
========================================================
64+
65+
Modifications to Lightning (such as methods overwrite) are done within
66+
67+
// INVERSE - BEGIN
68+
69+
// INVERSE - END

0 commit comments

Comments
 (0)