
Security News
arXiv Is Rate Limiting Authors Following a Flood of AI Slop Submissions
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.
Execute scripts on new messages using IDLE IMAP command
{
"host": "",
"port": ,
"tls": true,
"tlsOptions": { "rejectUnauthorized": false },
"username": "",
"password": "",
"onNewMail": "/usr/bin/mbsync test-%s",
"onNewMailPost": "/usr/bin/notmuch new",
"boxes":
[
"box1",
"box2/box3"
]
}
onNewMail: an executable to run on new mail in box
onNewPost: an executable to run after onNewMail command
onSIGNAL: a command to run when `SIGNAL` is received.
onSIGNALpost: a command to run after onSINGAL
Example:
{
...
"onSIGTERM": "/usr/bin/mbsync -a",
"onSIGTERMpost": "echo 'Bye-Bye'"
...
}
Since we load the config file with require(), we can get away with any nodejs module instead of just json. This allows us to be more flexible with the configuration.
In particular, you one can use it to load password from a script rather than having to store it in plain text.
Using the latest (git) version of nodejs, one can write myconfig.js as follows. Assuming the script ~/getpass.sh prints out your password. (execSync is a v0.12 feature)
var child_process = require('child_process');
function getStdout(cmd) {
var stdout = child_process.execSync(cmd);
return stdout.toString().trim();
}
exports.host = "<host>"
exports.port = <port>;
exports.tls = true;
exports.tlsOptions = { "rejectUnauthorized": false };
exports.username = "<user>";
exports.password = getStdout("~/getpass.sh");
exports.onNewMail = "<sync command>"
exports.onNewMailPost = "<command>"
exports.boxes = [ <boxes> ];
Then you can use
$ imapnotify -c ~/.config/imap_notify/myconfig.js
Thanks Matthew, for pointing that out!
%s in onNewMail and onNewMailPost is replaced by the box name.
/ symbol (slash) is replaced by - symbol (minus) so that
inbox/junk becomes inbox-junk
npm:
npm install -g imapnotify
archlinux aur package:
yaourt -S nodejs-imapnotify
(bonus: systemd.service file)
imapnotify -c /path/to/config
FAQs
Execute scripts on new messages using IDLE imap command
The npm package imapnotify receives a total of 1 weekly downloads. As such, imapnotify popularity was classified as not popular.
We found that imapnotify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.

Research
/Security News
A new GhostAction wave hits hundreds of GitHub repos, expanding CI/CD secret theft to cloud and AI credentials in source code and git history.

Research
/Security News
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.