Skip to content

Plugin for Nylas Mail that adds a quick unsubscribe button for email.

Notifications You must be signed in to change notification settings

bemky/n1-unsubscribe

Repository files navigation

N1-Unsubscribe (Nylas Plugin)

Build Status nylas version All Downloads

Quickly unsubscribe from emails with the N1-Unsubscribe plugin for Nylas N1.

UnsubscribePromoVideo

The Plugin Magic

N1-Unsubscribe acts in one of two ways. First, it looks if it can unsubscribe via email. If it can, the plugin will send an unsubscribe request email on your behalf. Second, if no email is available, the plugin looks for a link in the body of the email, such as "click to unsubscribe." The plugin can then open the link in a mini-browser to complete the unsubscription without leaving Nylas. When unsubscribed, the email is then trashed or archived based on your selected option (see settings below).

How to install

  1. Download and unzip n1-unsubscribe.zip from the Releases page.

  2. In N1, Select the menu bar option Developer > Install a Plugin..., then select the unzipped folder, n1-unsubscribe

  3. You should now see the plugin in the plugins pane in N1 (Preferences > Plugins).

PluginsPage

The Icons

  • Loading Loading -- wait for a moment for the icon to update
  • Unsubscribe Ready to unsubscribe and waiting on your click
  • Error You are now unsubscribed!
  • Error When something goes wrong, you will get this error icon. Make sure to forward us the email causing you problems to [email protected] and we will try to see what went wrong!

Settings

Certain features for this package can be toggled by changing the appropriate settings from within unsubscribe-settings.json. The settings file isn't tracked, so once you edit it, your preferences will be saved even when updating. You can see the default file here: unsubscribe-settings.defaults.json.

To change any of these settings, first install the package and modify ~/.nylas/packages/unsubscribe-settings.json. To update your settings in the app, just reload N1 (Alt + Cmd + L or Developer > Reload).

  • use_browser: Toggle between opening web-based unsubscribe links in your native browser or an in-app pop-up window (default: pop-up).
  • handle_threads: Toggle between automatically archiving, trashing or not moving your email anywhere after unsubscribing (default: archive).
  • confirm_for_email: Toggle a confirmation box on or off before sending an automatic unsubscribe email (default: off).
  • confirm_for_browser: Toggle a confirmation box on or off before opening a browser window to unsubscribe from an email (default: off).

More documentation of these toggles is available in the settings file.

Keyboard Shortcuts

N1-Unsubscribe now supports keyboard shortcuts! Press CMD + ALT + U when viewing a single email instead of pressing the button. Unsubscribing couldn't be faster. If you want to map your own shortcut keys:

  1. Go to:Nylas->Preferences

  2. Click the shortcuts tab

  3. Then scroll to the bottom and click the Edit Custom Shortcuts button

  4. From the finder window, open keymap.json in a text editor and add this snippet (replace mod+j with whatever shortcut you want - note mod is the super key on a Mac/PC):

    For keymap.json:

    {
      "n1-unsubscribe:unsubscribe": "mod+j"
    }

    Alterantively if you use Keymap.cson, you know what to do!

Always Stay Up To Date

Whenever an update is released, you will get a native notification. If you would like to add the same banner to your application, see our related NPM package - n1pluginupdater

Nylas Alert

Reporting Bugs

  • Feature Requests or Bug Reports: Submit them through the issues pane
  • Mishandled Emails: Find something that doesn't work (not finding an unsubscribe link, etc.)? Forward the email to us at [email protected] and we will look into it

Want to learn more?

Do you want to install via git? Want to learn more about how N1-Unsubscribe works? Check out the extended guide

Made by

Kyle King and Colin King

About

Plugin for Nylas Mail that adds a quick unsubscribe button for email.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.1%
  • CSS 6.0%
  • Makefile 3.9%