[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function n

From: Sergey Poznyakoff
Subject: Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented
Date: Wed, 22 Jun 2005 13:54:41 +0300

Kostas Zorbadelos <address@hidden> wrote:

> Hello to the list.
> This is my first post here as I am about to use mailutils in a new
> project.

Kalimera, Kosta! Nice to have you with us.

> The loop goes OK, printing the from and subject headers for each
> message, but I get the string 
> fileinto: cannot save to mailbox: Function not implemented
> for each message that matches the script's criteria. Do I need to
> register my own handler function for the fileinto action anywere?

No, but you do need to register at least one *mailbox format* handler.
You can do this using mu_register_all_formats(). This macro registers
handlers for all mailbox and mailer formats supported by mailutils.
Alternatively, you may use one of the following macros:

mu_register_local_mbox_formats()    Registers only local formats,
                                    i.e. mbox,mh,maildir
mu_register_remote_mbox_formats()   Registers only remote mailbox formats,
                                    i.e. pop and imap

or register the desired mailbox formats manually, e.g. like this:

  list_t rl;
  registrar_get_list (&rl);
  list_append (rl, path_record);
  list_append (rl, mbox_record);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]