Package Details: nodejs-imapnotify 0.4.1-10

Git Clone URL: (read-only, click to copy)
Package Base: nodejs-imapnotify
Description: Execute scripts on new messages using IDLE imap command
Upstream URL:
Licenses: MIT
Submitter: askurihin
Maintainer: yourealwaysbe
Last Packager: yourealwaysbe
Votes: 6
Popularity: 0.28
First Submitted: 2014-01-29 07:06
Last Updated: 2021-03-31 17:10

Latest Comments

1 2 3 Next › Last »

markusk commented on 2021-04-01 20:20

Just in case somebody else encounters my problem I fixed it by uninstalling all my node packages and in addition run sudo rm -rf /usr/lib/node_modules/ . After that a reinstall worked: (it installed)

yay -S nodejs-imapnotify
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo:1]  nodejs-15.13.0-1
[Repo Make:3]  semver-7.3.5-2  node-gyp-7.1.2-1  npm-7.7.6-1
[Aur:1]  nodejs-imapnotify-0.4.1-10

yourealwaysbe commented on 2021-04-01 08:20

@markusk this does not happen for me. The upstream code is pretty small and i don't see any explicit mention of semver.

@titibandit and all: i have just noticed that the upstream repository does not tag releases. This means that there's no real distinction between this package and nodejs-imapnotify-git (except the latter has not been kept upo-to-date with the fork). I'll wait a few days for replies and deprecate this package in favour of an updated nodejs-imapnotify-git if it seems sensible.

markusk commented on 2021-03-31 21:09

Anybody else unable to install the newest pkg Version?

252 verbose stack TypeError: semver.simplifyRange is not a function

I fear that is a upstream issue and not a aur issue but i'm not sure.

yourealwaysbe commented on 2021-03-31 17:11

@chrisoph.gysin Done. Thanks.

christoph.gysin commented on 2021-03-24 07:34

Please remove --user root to avoid installing the root npm module

yourealwaysbe commented on 2020-04-12 14:59

@titibandit this should be done now. Sorry for the lag.

titibandit commented on 2020-03-25 14:49

@yourealwaysbe sorry for the delay. I've updated my fork with a small fix for that. Try it out and keep me updated if it doesn't work.

yourealwaysbe commented on 2020-03-10 18:20

@titibandit I have updated the PKGBUILD but have not pushed it to the AUR yet. I am getting a bug because my config does not define a postCommand. Can you update the JS so that it does not fail if a postCommand is not defined?

  content = str.slice(lastIndex);
TypeError: Cannot read property 'slice' of undefined
    at tokenize (/usr/lib/node_modules/imapnotify/node_modules/printf/lib/printf.js:31:17)
    at new Formatter (/usr/lib/node_modules/imapnotify/node_modules/printf/lib/printf.js:41:18)
    at module.exports (/usr/lib/node_modules/imapnotify/node_modules/printf/lib/printf.js:459:19)
    at notify (/usr/lib/node_modules/imapnotify/bin/imapnotify:253:28)
    at Connection.<anonymous> (/usr/lib/node_modules/imapnotify/bin/imapnotify:76:4)
    at Connection.emit (events.js:316:20)
    at Connection._resUntagged (/usr/lib/node_modules/imapnotify/node_modules/imap/lib/Connection.js:1287:14)
    at Parser.<anonymous> (/usr/lib/node_modules/imapnotify/node_modules/imap/lib/Connection.js:191:10)
    at Parser.emit (events.js:316:20)
    at Parser._resUntagged (/usr/lib/node_modules/imapnotify/node_modules/imap/lib/Parser.js:271:10)

titibandit commented on 2020-02-29 12:15

@yourealwaysbe Yes, my fork includes my "executeOnStartup" feature and that bug fix. That my package() function to build the package from the git repo instead of npm. maybe it can be made better without the npm pack call, but it works this way.

package() {
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p $_npmdir
cd $srcdir/$pkgname
npm pack
npm install --cache "${srcdir}/npm-cache" -g --user root --prefix "$pkgdir/usr" "${_npmname}-${pkgver}.tgz"
install -Dm644 "${srcdir}/imapnotify@.service" "${pkgdir}/usr/lib/systemd/user/imapnotify@.service"

yourealwaysbe commented on 2020-02-29 10:03

@titibandit switching to a fork sounds reasonable given the 2-year old pull request. Do you have a fork that we could use instead?