Execute shell command on new mail? - Mutt

This is a discussion on Execute shell command on new mail? - Mutt ; Any way to execute an arbitrary shell command when a new message is received in mutt?...

+ Reply to Thread
Results 1 to 3 of 3

Execute shell command on new mail?

  1. Default Execute shell command on new mail?

    Any way to execute an arbitrary shell command when a new message is
    received in mutt?

  2. Default Re: Execute shell command on new mail?

    On 2007-04-17, Raffi Khatchadourian <khatcad@news.cse.ohio-state.edu> wrote:
    > Any way to execute an arbitrary shell command when a new message is
    > received in mutt?


    It's depend what's do you mean by "received by mutt", and what's kind of
    mail account you use.

    If you use a pop or imap account from you ISP or whatever server, you
    can use something like "Fetchmail" or "Getmail", that will run from a
    cronjob and will put you mail in a mbox or Maildir in you computer. To
    run the arbitrary shell script, it can be done by the cronjob script
    that call fetchmail or getmail, if you got new mails. So in that case..
    it's not really mutt related.

    If you want to let mutt to run steady and start a shell command when it
    got new mail.. I've never try that... The other way seems more
    convenient for me.. And it have the advantage to put mails from multiple
    account all together in one inbox.

    If you receive it already in a mbox because you run sendmail, postfix or
    similar, there's many way. It's depend in your OS, you mailbox format,
    etc..

    --
    Martin

  3. Default Re: Execute shell command on new mail?

    Raffi Khatchadourian <khatcad@news.cse.ohio-state.edu> wrote:
    > Any way to execute an arbitrary shell command when a new message is
    > received in mutt?


    No way that I know of. The usual way to execute commands upon the
    arrival of mail is to use something like procmail.

    HTH,
    Gary

+ Reply to Thread

Similar Threads

  1. IS IT POSSIBLE TO EXECUTE A SHELL SCRIPT TO TO THE FOLLOWING
    By Application Development in forum TCL
    Replies: 9
    Last Post: 09-25-2007, 02:04 PM
  2. Shell Execute to open a URL
    By Application Development in forum CSharp
    Replies: 3
    Last Post: 08-23-2007, 09:39 AM
  3. execute shell command silently
    By Application Development in forum Editors
    Replies: 1
    Last Post: 08-31-2006, 09:53 AM
  4. vim execute shell command silently
    By Application Development in forum Editors
    Replies: 5
    Last Post: 08-21-2006, 06:55 AM
  5. Replies: 6
    Last Post: 08-11-2006, 10:43 PM