XPunge/MultiXPunge - Adding Working Button

User Help for Mozilla Thunderbird
Post Reply
jimt29
Posts: 7
Joined: January 27th, 2018, 6:04 pm

XPunge/MultiXPunge - Adding Working Button

Post by jimt29 »

XPunge installs as an extension to Thunderbird version 78.xx and from Tools I can select it and it works.

Prior to the version 78 update, XPunge allowed adding a working button to a toolbar.

I can now select Customize and the drop down dialog box doesn't show any new icons to pick from.

Does anyone have a solution? I wrote to the creator last week but didn't get a reply so I'm hoping someone knows the secret, if there is one, to get a working button on the tool bar.

Working with Windows 10 and Thunderbird 78.3.1 (64 bit)
morat
Posts: 6432
Joined: February 3rd, 2009, 6:29 pm

Re: XPunge/MultiXPunge - Adding Working Button

Post by morat »

Due to limitations imposed by MailExtensions, Xpunge can only add one button in Thunderbird.

So one of the two buttons provided by Xpunge in previous versions is not available in version 2.1.0.

Xpunge
http://addons.thunderbird.net/thunderbird/addon/1279
http://www.theodoretegos.net/mozilla/tb/
jimt29
Posts: 7
Joined: January 27th, 2018, 6:04 pm

Re: XPunge/MultiXPunge - Adding Working Button

Post by jimt29 »

Morat: "Due to limitations imposed by MailExtensions, Xpunge can only add one button in Thunderbird."

I read that before I posted here. Problem is: Can't add one button. Please read what I wrote and you will understand better. No XPunge icon is added to the dialog box where all icons are stored.
morat
Posts: 6432
Joined: February 3rd, 2009, 6:29 pm

Re: XPunge/MultiXPunge - Adding Working Button

Post by morat »

jimt29 wrote:Problem is: Can't add one button.
Okay. I installed the Xpunge addon.

The Xpunge addon automatically added the MultiXpunge button on the Mail Toolbar after installation.

The developer says the Xpunge button is not available in version 2.1.0.

Xpunge 2.1.0
Thunderbird 78.3.2
Windows 7 SP1 32-bit
morat
Posts: 6432
Joined: February 3rd, 2009, 6:29 pm

Re: XPunge/MultiXPunge - Adding Working Button

Post by morat »

You can use the userChromeJS extension to automatically add the Xpunge button on the Mail Toolbar. (for advance users only)

userChromeJS by jikamens
http://addons.thunderbird.net/thunderbird/addon/986610

Code: Select all

/* Thunderbird userChrome.js */

// Thunderbird 68 uses the messenger.xul page.
// Thunderbird 78 uses the messenger.xhtml page.

(function () {
  if (location == "chrome://messenger/content/messenger.xul" ||
      location == "chrome://messenger/content/messenger.xhtml") {
    try {
      var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
      var toolbarbutton = document.createElementNS(XUL_NS, "toolbarbutton");
      var dataUrl = "data:image/png;base64," +
        "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAA" +
        "AACXBIWXMAAAsSAAALEgHS3X78AAAAB3RJTUUH1gwDDzUX9UgXMQAAA01JREFUOMt1kklo" +
        "XAUAhr+3zExmec1kMsmYNOto0ySNNCpY08WqtFiI1HpQkWhQCgVRyK2XHEpRBHMQUhBEbS" +
        "8eLCVGVBpRK7bY2kBi6jQrNkubSSazZDKZN/My21s8iKVG/C4//IeP//AL53uOHJVlsWSa" +
        "lmyaFoAEWIANsCuKQ7YsC0EQVMO07K99OvIdDyDXNVVd8u8MlLREWNaSGxjIguQsT9oUX0" +
        "50uu2BxtoWu2LjoUpZjV29bQec/xLUBuu9u7pP4Qg8/GDv/TtUYAmMZZic2KGaKbYjl1VU" +
        "I3t9xEI/E9i7FygSj8SYmZonvamRSRdJrWepcSvo90QOHj0jXf/prHFfYFomkqMCuxMufv" +
        "gJC3obDY1NNDQ8i6dKRzOjFLQY9t2tZP1PczwYu7b/sY/7Bgbe+R1ANHQdgIqWTnK+Rvbt" +
        "34fX6yKdXWctHiEWj5JcW8XKpmipr6Xz0c6nxqYnXry/wDB0QAMyVLtU2vfUEQot0FwD+e" +
        "klGl8+hFrzDPJWGfY8jN1cKUzPzyZvNLqem5eVlGyWioBGbimER1tjZiZMmVNBuvsb3sHT" +
        "ZMcP8FmbwjlzjGNVz3ModkLrUufr0wF/n5w3b4hGPgeEuTn0I4dPnWRxcQlZlljGRzTYgS" +
        "t0h/dHljhz18Mj5Z0ooW8c79a73hBk+7phmiOiWSqydesWu7t7gCa8XgFJECjYA/g/OMdX" +
        "eobVaIo35ySOT27QfueyxzKETH6r0I8kDYuJyDrTM2kcZTYrfPVCwVz9o6SqGTZWEgznpu" +
        "nrdXOy28tCPEHr6NeEk5t/mjXVbysvHLzSOxsuyJlN7RUlNMH4D5ctLRkpJjreetLbap3W" +
        "ddPWXtjD548Pszr7LZXlF1mMRFHKPNm8WowdG/jSAhC2P6v/vaG6mkrPRxjSS8GOLskd+p" +
        "760S+EualQbtLnu96+ld2puz1aNJbsIasuSNsFv/5ySfVUN49emxxLTI6czxyYGgrm4hFh" +
        "TtUG8227+t3htWUzmzlS2soFTcua/c+Cf5htdvlXRMdghb/61duR+BUxX3i93F5cT+sOR9" +
        "FmOwGctUnSFen/BF2+CnfJ5ngilS+O50qlCwVBmOmN5Di8w2lgmvdsolguSdL8X7yzeuvr" +
        "hzZrAAAAAElFTkSuQmCC";
      var props = {
        id: "__unique_identifier_xpunge_button",
        class: "toolbarbutton-1 chromeclass-toolbar-additional",
        label: "Xpunge",
        tooltiptext: "Xpunge",
        oncommand: "xpunge_doSingle();",
        style: 'list-style-image: url("' + dataUrl + '"); -moz-image-region: auto;',
      };
      for (var p in props) toolbarbutton.setAttribute(p, props[p]);
      var mailToolbar = document.getElementById("mail-bar3");
      var appMenuButton = document.getElementById("button-appmenu");
      mailToolbar.insertBefore(toolbarbutton, appMenuButton.nextSibling);
    } catch (e) {
      Components.utils.reportError(e); // [check] Show Content Messages
    }
  }
})();
Instructions:

1. install userChromeJS extension
2. close email client
3. create or edit the userChrome.js file in the chrome folder
4. open email client
Last edited by morat on October 12th, 2020, 6:27 am, edited 1 time in total.
jimt29
Posts: 7
Joined: January 27th, 2018, 6:04 pm

Re: XPunge/MultiXPunge - Adding Working Button

Post by jimt29 »

BUTTON Found.

Darn thing was hiding to the extreme right of the Mail Toolbar. It was never available in the drop down Customize box.

Back to reality: It Doesn't Work.

What does this poor pilgrim have to do to get it to do its job? Anyone?
morat
Posts: 6432
Joined: February 3rd, 2009, 6:29 pm

Re: XPunge/MultiXPunge - Adding Working Button

Post by morat »

Try reading the usage page on the support site.

How to use Xpunge
http://www.theodoretegos.net/mozilla/tb ... index.html
jimt29
Posts: 7
Joined: January 27th, 2018, 6:04 pm

Re: XPunge/MultiXPunge - Adding Working Button

Post by jimt29 »

Morat: It gets better.

Got MultiXPunge to half work. What it does is removes Trash but leaves a STAR symbol, a DOT symbol and what looks like a little FIRE symbol for each email removed. Then I can right click Tools and choose Xpunge/Xpunge/Call Xpunge to remove each one of those.
jimt29
Posts: 7
Joined: January 27th, 2018, 6:04 pm

Re: XPunge/MultiXPunge - Adding Working Button

Post by jimt29 »

Sum a ma gun: I figured it out. It actually works!
But...it's like a delayed function. I select the MultiXpunge icon and then go back to new emails. Then I go back to Trash and they are GONE.

It just takes a while. Moral: Be patient

For those of you in the USA: Don't Forget To Vote!
Post Reply