Граф коммитов

337 Коммитов

Автор SHA1 Сообщение Дата
Ben Campbell ee79f6c3fd Bug 1681009 - Remove nsIMutableArray use from nsIMsgMailView, nsIMsgFilter and nsIMsgSearchSession. r=mkmelin 2020-12-07 17:26:44 +13:00
Richard Marti 40bd5d104a Bug 1681083 - Make the newmail alert dark with dark themes. r=aleca 2020-12-08 12:57:52 +02:00
Ben Campbell a09229121a Bug 1612239 - Remove nsIArray usage from nsIMsgFolder. r=mkmelin
--HG--
extra : amend_source : 5c6bd195120cd6ded0571a3ec88a6575020f9ed2
2020-12-03 13:41:57 +13:00
Khushil Mistry 38607c0766 Bug 1679268 - Remove the XUL <deck> element from the subscribe.xhtml dialog. r=aleca 2020-12-01 12:57:46 +02:00
Ben Campbell bfc7644683 Bug 1612239 - Remove nsIArray usage in nsIMsgCopyService.CopyMessages(). r=mkmelin 2020-11-29 12:51:55 +02:00
Rob Lemley 2668029972 Bug 1678441 - Add missing license headers to mail code. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D97677
2020-11-19 21:02:00 +00:00
Ping Chen d3f2d3ae4d Bug 1671880 - Part 2: Remove charset attribute from msg folder. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D97110

--HG--
extra : amend_source : 4cd4e5518281266aaca3ae51daad1636e977ddef
2020-11-19 14:38:45 +02:00
Ping Chen 3aff791e93 Bug 1667557 - Fix print preview by init ppBrowser first. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D95956

--HG--
extra : amend_source : cfd770ed07262110950dd6ee85e901abf3dd845d
2020-11-06 12:18:24 +02:00
Ping Chen 0617e7b061 Bug 1671131 - Port bug 1669925: Fix printing. r=mkmelin 2020-10-20 13:52:23 +09:00
Alessandro Castellani 9935b8885a Bug 1667567 - Restore folder tree selection after color customization. r=mkmelin DONTBUILD
--HG--
extra : amend_source : 8699bd117c8e5a83892c3bc72630c1fb9d426b5f
2020-10-07 12:33:46 +03:00
Emilio Cobos Álvarez 83cdd243b9 Bug 1662090 - Fix nsMsgPrintEngine. r=mkmelin
To go with https://hg.mozilla.org/mozilla-central/rev/dd85b98c3c80
2020-09-07 21:49:01 +03:00
Alessandro Castellani b5eea6302e Bug 1663075 - Make restore default icon color buttons keyboard accessible. r=Paenglab DONTBUILD 2020-09-05 13:56:52 +03:00
Joshua Cranmer 5f1621f26a Bug 875059, part 2: Move mailnews/base/search to mailnews/search. r=mkmelin
Depends on D85670

Differential Revision: https://phabricator.services.mozilla.com/D85671

--HG--
rename : mailnews/base/search/content/CustomHeaders.js => mailnews/search/content/CustomHeaders.js
rename : mailnews/base/search/content/CustomHeaders.xhtml => mailnews/search/content/CustomHeaders.xhtml
rename : mailnews/base/search/content/FilterEditor.js => mailnews/search/content/FilterEditor.js
rename : mailnews/base/search/content/FilterEditor.xhtml => mailnews/search/content/FilterEditor.xhtml
rename : mailnews/base/search/content/searchTerm.inc.xhtml => mailnews/search/content/searchTerm.inc.xhtml
rename : mailnews/base/search/content/searchTerm.js => mailnews/search/content/searchTerm.js
rename : mailnews/base/search/content/searchWidgets.js => mailnews/search/content/searchWidgets.js
rename : mailnews/base/search/content/viewLog.js => mailnews/search/content/viewLog.js
rename : mailnews/base/search/content/viewLog.xhtml => mailnews/search/content/viewLog.xhtml
rename : mailnews/base/search/public/moz.build => mailnews/search/public/moz.build
rename : mailnews/base/search/public/nsIMsgFilter.idl => mailnews/search/public/nsIMsgFilter.idl
rename : mailnews/base/search/public/nsIMsgFilterCustomAction.idl => mailnews/search/public/nsIMsgFilterCustomAction.idl
rename : mailnews/base/search/public/nsIMsgFilterHitNotify.idl => mailnews/search/public/nsIMsgFilterHitNotify.idl
rename : mailnews/base/search/public/nsIMsgFilterList.idl => mailnews/search/public/nsIMsgFilterList.idl
rename : mailnews/base/search/public/nsIMsgFilterPlugin.idl => mailnews/search/public/nsIMsgFilterPlugin.idl
rename : mailnews/base/search/public/nsIMsgFilterService.idl => mailnews/search/public/nsIMsgFilterService.idl
rename : mailnews/base/search/public/nsIMsgOperationListener.idl => mailnews/search/public/nsIMsgOperationListener.idl
rename : mailnews/base/search/public/nsIMsgSearchAdapter.idl => mailnews/search/public/nsIMsgSearchAdapter.idl
rename : mailnews/base/search/public/nsIMsgSearchCustomTerm.idl => mailnews/search/public/nsIMsgSearchCustomTerm.idl
rename : mailnews/base/search/public/nsIMsgSearchNotify.idl => mailnews/search/public/nsIMsgSearchNotify.idl
rename : mailnews/base/search/public/nsIMsgSearchScopeTerm.idl => mailnews/search/public/nsIMsgSearchScopeTerm.idl
rename : mailnews/base/search/public/nsIMsgSearchSession.idl => mailnews/search/public/nsIMsgSearchSession.idl
rename : mailnews/base/search/public/nsIMsgSearchTerm.idl => mailnews/search/public/nsIMsgSearchTerm.idl
rename : mailnews/base/search/public/nsIMsgSearchValidityManager.idl => mailnews/search/public/nsIMsgSearchValidityManager.idl
rename : mailnews/base/search/public/nsIMsgSearchValidityTable.idl => mailnews/search/public/nsIMsgSearchValidityTable.idl
rename : mailnews/base/search/public/nsIMsgSearchValue.idl => mailnews/search/public/nsIMsgSearchValue.idl
rename : mailnews/base/search/public/nsIMsgTraitService.idl => mailnews/search/public/nsIMsgTraitService.idl
rename : mailnews/base/search/public/nsMsgBodyHandler.h => mailnews/search/public/nsMsgBodyHandler.h
rename : mailnews/base/search/public/nsMsgFilterCore.idl => mailnews/search/public/nsMsgFilterCore.idl
rename : mailnews/base/search/public/nsMsgResultElement.h => mailnews/search/public/nsMsgResultElement.h
rename : mailnews/base/search/public/nsMsgSearchAdapter.h => mailnews/search/public/nsMsgSearchAdapter.h
rename : mailnews/base/search/public/nsMsgSearchBoolExpression.h => mailnews/search/public/nsMsgSearchBoolExpression.h
rename : mailnews/base/search/public/nsMsgSearchCore.idl => mailnews/search/public/nsMsgSearchCore.idl
rename : mailnews/base/search/public/nsMsgSearchScopeTerm.h => mailnews/search/public/nsMsgSearchScopeTerm.h
rename : mailnews/base/search/public/nsMsgSearchTerm.h => mailnews/search/public/nsMsgSearchTerm.h
rename : mailnews/base/search/src/Bogofilter.sfd => mailnews/search/src/Bogofilter.sfd
rename : mailnews/base/search/src/DSPAM.sfd => mailnews/search/src/DSPAM.sfd
rename : mailnews/base/search/src/Habeas.sfd => mailnews/search/src/Habeas.sfd
rename : mailnews/base/search/src/MsgTraitService.jsm => mailnews/search/src/MsgTraitService.jsm
rename : mailnews/base/search/src/POPFile.sfd => mailnews/search/src/POPFile.sfd
rename : mailnews/base/search/src/PeriodicFilterManager.jsm => mailnews/search/src/PeriodicFilterManager.jsm
rename : mailnews/base/search/src/SpamAssassin.sfd => mailnews/search/src/SpamAssassin.sfd
rename : mailnews/base/search/src/SpamCatcher.sfd => mailnews/search/src/SpamCatcher.sfd
rename : mailnews/base/search/src/SpamPal.sfd => mailnews/search/src/SpamPal.sfd
rename : mailnews/base/search/src/components.conf => mailnews/search/src/components.conf
rename : mailnews/base/search/src/moz.build => mailnews/search/src/moz.build
rename : mailnews/base/search/src/nsMsgBodyHandler.cpp => mailnews/search/src/nsMsgBodyHandler.cpp
rename : mailnews/base/search/src/nsMsgFilter.cpp => mailnews/search/src/nsMsgFilter.cpp
rename : mailnews/base/search/src/nsMsgFilter.h => mailnews/search/src/nsMsgFilter.h
rename : mailnews/base/search/src/nsMsgFilterList.cpp => mailnews/search/src/nsMsgFilterList.cpp
rename : mailnews/base/search/src/nsMsgFilterList.h => mailnews/search/src/nsMsgFilterList.h
rename : mailnews/base/search/src/nsMsgFilterService.cpp => mailnews/search/src/nsMsgFilterService.cpp
rename : mailnews/base/search/src/nsMsgFilterService.h => mailnews/search/src/nsMsgFilterService.h
rename : mailnews/base/search/src/nsMsgImapSearch.cpp => mailnews/search/src/nsMsgImapSearch.cpp
rename : mailnews/base/search/src/nsMsgLocalSearch.cpp => mailnews/search/src/nsMsgLocalSearch.cpp
rename : mailnews/base/search/src/nsMsgLocalSearch.h => mailnews/search/src/nsMsgLocalSearch.h
rename : mailnews/base/search/src/nsMsgSearchAdapter.cpp => mailnews/search/src/nsMsgSearchAdapter.cpp
rename : mailnews/base/search/src/nsMsgSearchImap.h => mailnews/search/src/nsMsgSearchImap.h
rename : mailnews/base/search/src/nsMsgSearchNews.cpp => mailnews/search/src/nsMsgSearchNews.cpp
rename : mailnews/base/search/src/nsMsgSearchNews.h => mailnews/search/src/nsMsgSearchNews.h
rename : mailnews/base/search/src/nsMsgSearchSession.cpp => mailnews/search/src/nsMsgSearchSession.cpp
rename : mailnews/base/search/src/nsMsgSearchSession.h => mailnews/search/src/nsMsgSearchSession.h
rename : mailnews/base/search/src/nsMsgSearchTerm.cpp => mailnews/search/src/nsMsgSearchTerm.cpp
rename : mailnews/base/search/src/nsMsgSearchValue.cpp => mailnews/search/src/nsMsgSearchValue.cpp
rename : mailnews/base/search/src/nsMsgSearchValue.h => mailnews/search/src/nsMsgSearchValue.h
rename : mailnews/base/test/unit/head_mailbase.js => mailnews/search/test/unit/head_mailbase.js
rename : mailnews/base/test/unit/test_base64_decoding.js => mailnews/search/test/unit/test_base64_decoding.js
rename : mailnews/base/test/unit/test_bug366491.js => mailnews/search/test/unit/test_bug366491.js
rename : mailnews/base/test/unit/test_bug404489.js => mailnews/search/test/unit/test_bug404489.js
rename : mailnews/base/test/unit/test_copyThenMoveManual.js => mailnews/search/test/unit/test_copyThenMoveManual.js
rename : mailnews/base/test/unit/test_junkWhitelisting.js => mailnews/search/test/unit/test_junkWhitelisting.js
rename : mailnews/base/test/unit/test_quarantineFilterMove.js => mailnews/search/test/unit/test_quarantineFilterMove.js
rename : mailnews/base/test/unit/test_search.js => mailnews/search/test/unit/test_search.js
rename : mailnews/base/test/unit/test_searchAddressInAb.js => mailnews/search/test/unit/test_searchAddressInAb.js
rename : mailnews/base/test/unit/test_searchBody.js => mailnews/search/test/unit/test_searchBody.js
rename : mailnews/base/test/unit/test_searchBoolean.js => mailnews/search/test/unit/test_searchBoolean.js
rename : mailnews/base/test/unit/test_searchChaining.js => mailnews/search/test/unit/test_searchChaining.js
rename : mailnews/base/test/unit/test_searchCustomTerm.js => mailnews/search/test/unit/test_searchCustomTerm.js
rename : mailnews/base/test/unit/test_searchJunk.js => mailnews/search/test/unit/test_searchJunk.js
rename : mailnews/base/test/unit/test_searchLocalizationStrings.js => mailnews/search/test/unit/test_searchLocalizationStrings.js
rename : mailnews/base/test/unit/test_searchTag.js => mailnews/search/test/unit/test_searchTag.js
rename : mailnews/base/test/unit/test_searchUint32HdrProperty.js => mailnews/search/test/unit/test_searchUint32HdrProperty.js
rename : mailnews/base/test/unit/xpcshell.ini => mailnews/search/test/unit/xpcshell.ini
extra : moz-landing-system : lando
2020-08-04 20:13:10 +00:00
Magnus Melin 26ea32b68b Bug 1654548 - c-c followup to fix linting in mailnews/base/content/msgPrintEngine.js. rs=eslint 2020-08-06 21:55:57 +03:00
Gijs Kruitbosch a3c4b4ae5b Bug 1654548 - fix printing in compose, view source, mail viewer, address book and attempt to improve state for calendar r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D86013

--HG--
extra : moz-landing-system : lando
2020-08-06 12:31:53 +00:00
Geoff Lankow c5db9accc0 Bug 1655687 - Port bug 1620537 - Fix no-setter-return ESLint errors. r=pmorris
--HG--
extra : rebase_source : 52e8ef443440a08e35c7a8fc11286463ead170b7
extra : amend_source : 6a14cf180c6603955893401c2b5938ad7937a90b
extra : histedit_source : ca6fd64f1f165c92523e82ccc26f5d72fc8477d0
2020-07-28 12:54:32 +12:00
Richard Marti ext:(%2C%20Magnus%20Melin%20%3Cmkmelin%2Bmozilla%40iki.fi%3E) 50cf02f907 Bug 1653751 - Inject a rule into junk log to style it with dark system theme. r=mkmelin DONTBUILD 2020-07-23 12:41:51 +03:00
Richard Marti 1c9b328960 Bug 1652015 - Make the folder pane dialogs themeable. r=aleca 2020-07-08 11:52:27 +02:00
Ping Chen b3ca7aea8c Bug 1636665 - Support petabyte in imap folder quote size and percentage calculations. r=mkmelin 2020-07-02 19:23:43 +03:00
Lasana Murray 3ff2109411 Bug 1646154 - Include donation link in accountCentral.ftl instead of doing it manually. r=mkmelin 2020-06-25 13:39:13 +03:00
Alessandro Castellani 46ada055e6 Bug 1645647 - handle the case where the virtual folder properties dialog was not given an initial folder. r=darktrojan
--HG--
extra : amend_source : 7978f9a00266f3fedcfc47dc660fcdf5881de451
2020-06-25 13:35:09 +03:00
Lasana Murray 02c973f61b Bug 1629360 - Use async l10n for donation link and setup title. r=mkmelin 2020-06-04 13:47:37 -04:00
Jorg K 93db6b3c14 Bug 1647104 - Fix typos in chat, common, db, editor, mail, mailnews found with codespell. rs=comment-only,typo-fix r=mkmelin DONTBUILD
This excludes OpenPGP code in mail/extensions.
2020-06-21 20:27:10 +02:00
Kai Engert 6c7626bd9a Bug 1647104 - Backed out changeset 9ca3551392f6. a=mkmelin 2020-06-22 14:09:32 +02:00
Jorg K 1a94f7447e Bug 1647104 - Fix typos in chat, common, db, editor, mail, mailnews found with codespell. rs=comment-only,typo-fix DONTBUILD 2020-06-21 20:27:10 +02:00
Ben Campbell 9d992aa957 Bug 1612239 - Remove nsIArray use in nsIMsgFolder markMessagesRead, markMessagesFlagged, setLabelForMessages, setJunkScoreForMessages. r=mkmelin 2020-06-05 23:47:16 +12:00
Alessandro Castellani ccaf4819c0 Bug 1645271 - Prevent the opening of links in the Account Central content Tab. r=darktrojan 2020-06-11 18:45:29 -07:00
Alessandro Castellani af886b93f1 Bug 1637668 - Follow up improvements to Folder Pane icons colour customization. r=mkmelin DONTBUILD 2020-06-07 13:37:40 +03:00
Ben Campbell efd6582a5a Bug 1612239 - Remove nsIArray usage from nsIMsgFolder.descendants. r=mkmelin 2020-06-01 13:58:48 +03:00
Ping Chen 9e9c4d9878 Bug 1494584 - show other users on IMAP folder sharing tab. r=mkmelin
--HG--
extra : rebase_source : 4370c82083b4e90b633e9ef8f27fec3dc3edee4b
2020-05-28 19:03:58 +03:00
Geoff Lankow e95460a9a3 Port bug 1640501 - Remove toolkit.cosmeticAnimations.enabled from all.js. rs=bustage-fix a=me
--HG--
extra : rebase_source : bddd9b82b85f60ae317eb9883b08f373df656637
extra : amend_source : ae80446ccc5d5df3b4a1f6fcddff455da07b3648
2020-05-26 17:12:19 +12:00
Alessandro Castellani c13afab8ed Bug 1637668 - Implement colour customization option for Folder Pane icons. r=mkmelin, ui-r=paenglab 2020-05-22 12:53:51 +03:00
Richard Marti 48cfaaf366 Bug 1639699 - Remove unnecessary stylesheet files from the virtualFolderProperties.xhtml dialog. r=aleca
--HG--
extra : rebase_source : 87faf6dbcfb122c282c94846324ba9609bcc9440
2020-05-20 22:47:06 +02:00
Richard Marti d6cfee6160 Bug 1638863 - Calendar: convert more images to SVG. r=pmorris, ui-r=aleca 2020-05-18 20:58:01 +02:00
Richard Marti 40d1a7fe16 Bug 1636429 - Use SVG icons for the checkmarks in trees. r=aleca DONTBUILD
--HG--
rename : mail/themes/windows/mail/filterDialog.css => mail/themes/shared/mail/filterDialog.css
rename : mail/themes/windows/mail/msgSelectOffline.css => mail/themes/shared/mail/msgSelectOffline.css
rename : mail/themes/windows/mail/subscribe.css => mail/themes/shared/mail/subscribe.css
2020-05-09 13:53:30 +03:00
Ben Campbell ea45d2a800 Bug 1612247 - Remove nsIMsgDatabase.nextMatchingHdrs. r=mkmelin DONTBUILD 2020-05-08 13:35:06 +03:00
Ben Campbell a98308011a Bug 1612247 - Remove nsIArray usage from nsIMsgDatabase.getFilterEnumerator(). r=mkmelin 2020-05-08 13:34:29 +03:00
Magnus Melin 7407ad1dea Bug 1634866 - remove StringBundle.jsm in favour of Services.strings. r=khushil 2020-05-04 13:56:33 +03:00
Rob Lemley 6d008137f1 Bug 1624429 - Remove execute bit from source files. r=darktrojan
This greens-up the mozlint "file-perm" check.

--HG--
extra : histedit_source : d8e2715f295c5375e882a024adf042c7d06b59e7
2020-04-02 15:03:58 -04:00
Magnus Melin cf3e85f8f8 Bug 1629275 - part3 - better fix for porting bug 1621674 to Thunderbird (Unify Localization.jsm, mozILocalization and Localization IDL). r=Paenglab DONTBUILD 2020-04-13 13:35:47 +03:00
Magnus Melin 40ab079168 Bug 1629275 - Port bug 1621674 to Thunderbird: Unify Localization.jsm, mozILocalization and Localization IDL. rs=bustage-fix
DONTBUILD

--HG--
extra : amend_source : d6300b6a0b8381112f718ca6f2c092e82c438ac6
2020-04-11 22:10:29 +03:00
Alessandro Castellani 10390bdf7d Bug 1589005 - Implement new Account Hub for users with existing account. r=mkmelin, ui-r=paenglab 2020-03-31 11:01:02 -07:00
Ben Campbell 60bff7fe42 Bug 1614846 - Remove nsIArray use in nsIMsgAccountManager.allFolders. r=mkmelin 2020-04-03 13:39:10 +03:00
Gene Smith ext:(%2C%20Magnus%20Melin%20%3Cmkmelin%2Bmozilla%40iki.fi%3E) 76628268ff Bug 841906 - make all the quotas the IMAP server sends us show up in the folder props. r=aleca,mkmelin 2020-03-31 16:20:25 +03:00
Alessandro Castellani 5edc58a270 Bug 1589005 - Implement new Account Hub for centralized set ups. r=mkmelin, ui-r=paenglab 2020-03-16 12:55:31 -07:00
Paul Morris 9e38602c05 Bug 1612166 - Move calendar skin files in 'lightning' directory into 'base' directory. r=Fallen,Paenglab
Eliminate the "chrome://lightning/skin/" and the
"chrome://lightning-common/skin/" paths.

--HG--
rename : calendar/lightning/themes/common/accountCentral.css => calendar/base/themes/common/accountCentral.css
rename : calendar/lightning/themes/common/html-item-editing.css => calendar/base/themes/common/html-item-editing.css
rename : calendar/lightning/themes/common/images/todayButton-arrow.svg => calendar/base/themes/common/images/todayButton-arrow.svg
rename : calendar/lightning/themes/common/imip.css => calendar/base/themes/common/imip.css
rename : calendar/lightning/themes/common/lightning-toolbar.css => calendar/base/themes/common/lightning-toolbar.css
rename : calendar/lightning/themes/common/lightning.css => calendar/base/themes/common/lightning.css
rename : calendar/lightning/themes/common/suite-accountCentral.css => calendar/base/themes/common/suite-accountCentral.css
rename : calendar/lightning/themes/linux/imip.css => calendar/base/themes/linux/imip.css
rename : calendar/lightning/themes/linux/lightning-toolbar.css => calendar/base/themes/linux/lightning-toolbar.css
rename : calendar/lightning/themes/linux/lightning.css => calendar/base/themes/linux/lightning.css
rename : calendar/lightning/themes/osx/imip.css => calendar/base/themes/osx/imip.css
rename : calendar/lightning/themes/osx/lightning-toolbar.css => calendar/base/themes/osx/lightning-toolbar.css
rename : calendar/lightning/themes/osx/lightning.css => calendar/base/themes/osx/lightning.css
rename : calendar/lightning/themes/windows/imip.css => calendar/base/themes/windows/imip.css
rename : calendar/lightning/themes/windows/lightning-toolbar.css => calendar/base/themes/windows/lightning-toolbar.css
rename : calendar/lightning/themes/windows/lightning.css => calendar/base/themes/windows/lightning.css
extra : rebase_source : 5a95c360872330fd1ec971c9af9844cac8e1a73f
extra : histedit_source : 376909b2d546d00d87490579ce373daa37015ef1
2020-02-10 15:36:59 -05:00
Magnus Melin dfc7cc0eeb Bug 1612776 - Remove usages of `display: -moz-groupbox` and `-moz-appearance: groupbox`, convert xul:groupbox to html:fieldset (port bug 1590180 to Thunderbird). r=khushil,pmorris
Lots of manual changes, and

grep -rl "<groupbox" --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor . | xargs sed -E -i "s/<groupbox/<html:fieldset/g"
grep -rl "</groupbox" --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor . | xargs sed -E -i "s#</groupbox#</html:fieldset#g"
grep -rEl "<label><html:h2>.*</html:h2></label>" --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor --include="*.xhtml" --exclude=".*" . | xargs sed -E -i "s#<label><html:h2>(.*)</html:h2></label>#<html:legend>\1</html:legend>#g"
2020-02-13 21:52:32 +02:00
Paul Morris 6e32ae1683 Bug 1608610 - Integrate messenger-overlay-accountCentral.xhtml. r=Fallen
--HG--
extra : rebase_source : 7f082cbb0475ab86620dd7c69893238af3104228
2020-01-13 11:50:24 -05:00
Magnus Melin b54ce4f72b Bug 1529583 - rename all Thunderbird related modules to .jsm, capitalize names and fix some namings. r=pmorris,Fallen DONTBUILD
grep -rEl EXPORTED_SYMBOLS --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor --include="*.js" --exclude=".*" . | xargs -I '{}' bash -c 'oldpath=$1; oldname=$(basename $1); newname="${oldname/\.js/.jsm}";newname="${newname^}"; newname=$(sed -E "s/(.*)[_-](.)(.*)/\1\U\2\L\3/g" <<< $newname); newpath="${oldpath%/*}/$newname"; echo "$newname $oldpath $newpath"; hg mv $oldpath $newpath; grep -rEl $oldname --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor --exclude-dir=chat/protocols/matrix/ . | xargs sed -E -i "s/( |\\\"|'\''|\/)${oldname/./\\.}/\1$newname/g"' -- {}

hg revert calendar/test/modules/CalendarUtils.jsm
hg revert chat/protocols/matrix/

hg revert chat/protocols/xmpp/xmpp-authmechs.jsm

# change Utils.jsm to utils.jsm
sed -i -e 's/Utils.jsm/utils.jsm/g' mail/test/browser/shared-modules/moz.build

# there's the mozmill/utils.js file
find . -type f -not -path "*.hg/*" -not -path "suite/*" -not -path "editor/*" -exec sed -i 's#mozmill/Utils.jsm*"#mozmill/utils.jsm#g' {} \;

correct sorting in
/home/magnus/Code/tb/mozilla/comm/mailnews/db/gloda/modules/moz.build

* * *
Bug 1529583 - fix linting errors discovered by js -> jsm renaming.

TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/base/util/JXON.jsm:217:21 | 'document' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/base/util/JsTreeSelection.jsm:7:7 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/base/util/TraceHelper.jsm:7:7 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Connotent.jsm:14:5 | 'LOG' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Databind.jsm:9:5 | 'DBC_LOG' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Datamodel.jsm:17:9 | 'MailServices' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Datamodel.jsm:24:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Dbview.jsm:14:9 | 'Gloda' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Dbview.jsm:15:9 | 'GlodaMsgSearcher' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Everybody.jsm:8:5 | 'LOG' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Explattr.jsm:19:9 | 'GlodaUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Explattr.jsm:19:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Explattr.jsm:26:5 | 'EXT_BUILTIN' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Fundattr.jsm:12:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Fundattr.jsm:14:9 | 'GlodaDatastore' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Fundattr.jsm:20:9 | 'MimeType' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Gloda.jsm:22:9 | 'GlodaDatabind' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Gloda.jsm:34:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/IndexAb.jsm:10:9 | 'GlodaDatastore' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/IndexAb.jsm:21:9 | 'GlodaUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/IndexAb.jsm:21:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/IndexMsg.jsm:17:9 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/IndexMsg.jsm:30:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/IndexMsg.jsm:84:5 | 'JUNK_HAM_SCORE_STR' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Indexer.jsm:15:9 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Indexer.jsm:22:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Log4moz.jsm:9:5 | 'MODE_RDONLY' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Log4moz.jsm:13:5 | 'MODE_TRUNCATE' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Log4moz.jsm:16:5 | 'PERMS_DIRECTORY' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Mimemsg.jsm:15:9 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Mimemsg.jsm:19:5 | 'EMITTER_MIME_CODE' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Suffixtree.jsm:42:5 | 'print' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Suffixtree.jsm:388:10 | 'examplar' is defined but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/fakeserver/Imapd.jsm:500:5 | 'IMAP_FLAG_CASE_INSENSITIVE' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/fakeserver/Imapd.jsm:516:5 | 'IMAP_NAMESPACE_OTHER_USERS' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/fakeserver/Imapd.jsm:517:5 | 'IMAP_NAMESPACE_SHARED' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/IMAPpump.jsm:20:7 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/IMAPpump.jsm:29:7 | 'AuthPLAIN' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/IMAPpump.jsm:29:18 | 'AuthLOGIN' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/IMAPpump.jsm:29:29 | 'AuthCRAM' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/MailTestUtils.jsm:12:7 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/MessageGenerator.jsm:805:10 | 'addMessagesToFolder' is defined but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/MockFactory.jsm:7:7 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
* * *
Bug 1529583 - part tree, cleanup and improve some module namings

declare -A x
x["Bond.jsm"]="BondOpenPGP.jsm"
x["Gnupg.jsm"]="GnuPGCryptoAPI.jsm"
x["RnpCryptoapi.jsm"]="RNPCryptoAPI.jsm"
x["Connotent.jsm"]="GlodaContent.jsm"
x["Databind.jsm"]="GlodaDatabind.jsm"
x["Datamodel.jsm"]="GlodaDataModel.jsm"
x["Datastore.jsm"]="GlodaDatastore.jsm"
x["Dbview.jsm"]="GlodaSyntheticView.jsm"
x["Explattr.jsm"]="GlodaExplicitAttr.jsm"
x["Fundattr.jsm"]="GlodaFundAttr.jsm"
x["IndexAb.jsm"]="GlodaMsgIndexer.jsm"
x["Indexer.jsm"]="GlodaIndexer.jsm"
x["Mimemsg.jsm"]="MimeMessage.jsm"
x["MsgSearch.jsm"]="GlodaMsgSearcher.jsm"
x["Public.jsm"]="GlodaPublic.jsm"
x["Query.jsm"]="GlodaQueryClassFactory.jsm"
x["Suffixtree.jsm"]="SuffixTree.jsm"
#x["Utils.js"]="GlodaUtils.jsm"

for f in "${!x[@]}"; do
  export newname=${x[$f]}
  find . -type f -not -path "*.hg/*" -name $f | xargs -I '{}' bash -c 'oldpath=$1; oldname=$(basename $1); newpath="${oldpath%/*}/$newname"; echo " newname=$newname $oldpath -> $newpath"; hg mv $oldpath $newpath; grep -rEl $oldname --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor --exclude-dir=chat/protocols/matrix/ . | xargs sed -E -i "s/( |\\\"|'\''|\/)${oldname/./\\.}/\1$newname/g"' -- {}
done;

hg mv mailnews/db/gloda/modules/Utils.jsm mailnews/db/gloda/modules/GlodaUtils.jsm
grep -rEl --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor "gloda/Utils.jsm" . | xargs sed -i 's#gloda/Utils.jsm#gloda/GlodaUtils.jsm#g'

# manually sort mailnews/db/gloda/modules/moz.build

# manually update some ical.js references to be that as it's the project name

--HG--
rename : calendar/base/modules/ical.js => calendar/base/modules/Ical.jsm
rename : mail/components/appIdleManager.js => mail/components/AppIdleManager.jsm
rename : mail/components/about-support/aboutSupportMac.js => mail/components/about-support/AboutSupportMac.jsm
rename : mail/components/about-support/aboutSupportUnix.js => mail/components/about-support/AboutSupportUnix.jsm
rename : mail/components/about-support/aboutSupportWin32.js => mail/components/about-support/AboutSupportWin32.jsm
rename : mail/components/wintaskbar/windowsJumpLists.js => mail/components/wintaskbar/WindowsJumpLists.jsm
rename : mail/extensions/openpgp/content/bond.js => mail/extensions/openpgp/content/BondOpenPGP.jsm
rename : mail/extensions/openpgp/content/modules/cryptoAPI/gnupg.js => mail/extensions/openpgp/content/modules/cryptoAPI/GnuPGCryptoAPI.jsm
rename : mail/extensions/openpgp/content/modules/cryptoAPI/rnp-cryptoAPI.js => mail/extensions/openpgp/content/modules/cryptoAPI/RNPCryptoAPI.jsm
rename : mailnews/base/src/virtualFolderWrapper.js => mailnews/base/src/VirtualFolderWrapper.jsm
rename : mailnews/base/util/errUtils.js => mailnews/base/util/ErrUtils.jsm
rename : mailnews/base/util/IOUtils.js => mailnews/base/util/IOUtils.jsm
rename : mailnews/base/util/JXON.js => mailnews/base/util/JXON.jsm
rename : mailnews/base/util/jsTreeSelection.js => mailnews/base/util/JsTreeSelection.jsm
rename : mailnews/base/util/mailnewsMigrator.js => mailnews/base/util/MailnewsMigrator.jsm
rename : mailnews/base/util/msgDBCacheManager.js => mailnews/base/util/MsgDBCacheManager.jsm
rename : mailnews/base/util/StringBundle.js => mailnews/base/util/StringBundle.jsm
rename : mailnews/base/util/templateUtils.js => mailnews/base/util/TemplateUtils.jsm
rename : mailnews/base/util/traceHelper.js => mailnews/base/util/TraceHelper.jsm
rename : mailnews/db/gloda/modules/collection.js => mailnews/db/gloda/modules/Collection.jsm
rename : mailnews/db/gloda/modules/everybody.js => mailnews/db/gloda/modules/Everybody.jsm
rename : mailnews/db/gloda/modules/facet.js => mailnews/db/gloda/modules/Facet.jsm
rename : mailnews/db/gloda/modules/gloda.js => mailnews/db/gloda/modules/Gloda.jsm
rename : mailnews/db/gloda/modules/connotent.js => mailnews/db/gloda/modules/GlodaContent.jsm
rename : mailnews/db/gloda/modules/datamodel.js => mailnews/db/gloda/modules/GlodaDataModel.jsm
rename : mailnews/db/gloda/modules/databind.js => mailnews/db/gloda/modules/GlodaDatabind.jsm
rename : mailnews/db/gloda/modules/datastore.js => mailnews/db/gloda/modules/GlodaDatastore.jsm
rename : mailnews/db/gloda/modules/explattr.js => mailnews/db/gloda/modules/GlodaExplicitAttr.jsm
rename : mailnews/db/gloda/modules/fundattr.js => mailnews/db/gloda/modules/GlodaFundAttr.jsm
rename : mailnews/db/gloda/modules/indexer.js => mailnews/db/gloda/modules/GlodaIndexer.jsm
rename : mailnews/db/gloda/modules/index_ab.js => mailnews/db/gloda/modules/GlodaMsgIndexer.jsm
rename : mailnews/db/gloda/modules/msg_search.js => mailnews/db/gloda/modules/GlodaMsgSearcher.jsm
rename : mailnews/db/gloda/modules/public.js => mailnews/db/gloda/modules/GlodaPublic.jsm
rename : mailnews/db/gloda/modules/query.js => mailnews/db/gloda/modules/GlodaQueryClassFactory.jsm
rename : mailnews/db/gloda/modules/dbview.js => mailnews/db/gloda/modules/GlodaSyntheticView.jsm
rename : mailnews/db/gloda/modules/utils.js => mailnews/db/gloda/modules/GlodaUtils.jsm
rename : mailnews/db/gloda/modules/index_msg.js => mailnews/db/gloda/modules/IndexMsg.jsm
rename : mailnews/db/gloda/modules/log4moz.js => mailnews/db/gloda/modules/Log4moz.jsm
rename : mailnews/db/gloda/modules/mimemsg.js => mailnews/db/gloda/modules/MimeMessage.jsm
rename : mailnews/db/gloda/modules/mimeTypeCategories.js => mailnews/db/gloda/modules/MimeTypeCategories.jsm
rename : mailnews/db/gloda/modules/noun_freetag.js => mailnews/db/gloda/modules/NounFreetag.jsm
rename : mailnews/db/gloda/modules/noun_mimetype.js => mailnews/db/gloda/modules/NounMimetype.jsm
rename : mailnews/db/gloda/modules/noun_tag.js => mailnews/db/gloda/modules/NounTag.jsm
rename : mailnews/db/gloda/modules/suffixtree.js => mailnews/db/gloda/modules/SuffixTree.jsm
rename : mailnews/test/fakeserver/auth.js => mailnews/test/fakeserver/Auth.jsm
rename : mailnews/test/fakeserver/imapd.js => mailnews/test/fakeserver/Imapd.jsm
rename : mailnews/test/fakeserver/maild.js => mailnews/test/fakeserver/Maild.jsm
rename : mailnews/test/fakeserver/nntpd.js => mailnews/test/fakeserver/Nntpd.jsm
rename : mailnews/test/fakeserver/pop3d.js => mailnews/test/fakeserver/Pop3d.jsm
rename : mailnews/test/fakeserver/smtpd.js => mailnews/test/fakeserver/Smtpd.jsm
rename : mailnews/test/resources/IMAPpump.js => mailnews/test/resources/IMAPpump.jsm
rename : mailnews/test/resources/localAccountUtils.js => mailnews/test/resources/LocalAccountUtils.jsm
rename : mailnews/test/resources/mailTestUtils.js => mailnews/test/resources/MailTestUtils.jsm
rename : mailnews/test/resources/messageGenerator.js => mailnews/test/resources/MessageGenerator.jsm
rename : mailnews/test/resources/MockFactory.js => mailnews/test/resources/MockFactory.jsm
extra : amend_source : 810c5e4724ae28add2f66a87e88bc144578425e8
2020-01-25 12:05:55 +02:00
Richard Marti 6f8371b569 Bug 1609457 - Port bug 981248 - Remove the removed input-number-mozbox class on <input type=number> and add some tweaks to the spinbuttons. r=mkmelin 2020-01-16 14:14:53 +02:00