Just how can I tailor new mail alert in alpine?

I make use of alpine as my key mail viewers. While I invest a lot of my day in the incurable or Emacs, it would certainly still behave to get rather alert of new mail making use of notify-bin. Exists any kind of means I can set up towering to run a personalized command when new mail is obtained?

0
2019-05-04 22:04:07
Source Share
Answers: 3

Can't you make use of a customized mail - alert device like Gnubiff, mail - alert or kbiff?

0
2019-05-12 03:49:25
Source

It is not feasible to tailor the "new mail alert" of alpine.

There is no such alternative stated in the configuration documentation.

Additionally below is a quote from the mailinglist from Eduardo Chappa:

I've seen that alpine offers an aesthetic alert in gnome incurable by blinking the screen, when a new mail gets here. Exists any kind of means to tailor-make the sharp, to make sure that, as an example, it plays an audio or something?

[. ]

Alpine, as you can presume currently, will just beep. In Web Alpine it is feasible to send a documents to be played (to the internet browser) for new mail alert. There is no such attribute in Unix, Mac or Windows Alpine.

Your alternatives are currently:

And to price estimate the programmer of my favorit mail customer:

All mailclients draw ...

: -)

0
2019-05-12 03:43:59
Source

There is "NewMail FIFO Path" arrangement alternative in alpine. Pricing estimate the aid :

You might have Alpine create a FIFO unique documents (additionally called a called pipeline) where it will certainly send a one - line message each time a new message is obtained in the existing folder, the INBOX, or any kind of open Stayopen Folders. To shield versus 2 various Alpines both contacting the very same FIFO, Alpine will just create the FIFO and also contact it if it does not currently exist.

So, I set the alternative to '/ tmp/alpine. fifo', and also created straightforward energy to read messages from the FIFO and also invoke 'alert - send' :

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

#define FIFO_NAME "/tmp/alpine.fifo"

int main(void)
{   
    char s[512];
    char cmd[512];
    int num;
    int fd = open(FIFO_NAME, O_RDONLY);
    do {
        if ((num = read(fd, s, 300)) == -1)
            perror("read");
        else {
            s[num] = '\0';
            sprintf(cmd, "notify-send -t 0 'New mail:' '%s'", s);
            system(cmd);
        }
    } while (num > 0);

    return 0;
}

Save it to towering - notifier.c, and also compile with 'gcc towering - notifier.c - o towering - notifier' command. Start 'towering - notifier' after alpine is begun. Enjoy pop - up alerts.

0
2019-05-10 23:23:27
Source