[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: |
Kostas Zorbadelos |
Subject: |
Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented |
Date: |
Wed, 22 Jun 2005 14:34:02 +0300 |
User-agent: |
Mutt/1.5.9i |
On Wed, Jun 22, 2005 at 01:54:41PM +0300, Sergey Poznyakoff wrote:
>
> Kalimera, Kosta! Nice to have you with us.
>
Now, that's a very worm welcome!
> > 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);
>
Thanks a lot for this, but I have done it already using the macro
mu_register_local_mbox_formats(). I had to dig for a bit to find this
out and finally I saw the macro at register.h.
Please find attached my program (it's only ~100 lines) and my filter
script (filters.sieve)
I call this program as
./testsieve file://path/to/Maildir filters.sieve
and in the output I get
...
Elisa Shirley" <address@hidden> [Possible SPAM] Qualities Pharrmacy JWVh8
lottery dayzers <address@hidden> [Possible SPAM] WINNING AWARD NOTIFICATION !!!
Sergey Poznyakoff <address@hidden> Re: [bug-mailutils] [Error] fileinto:
cannot save to mailbox: Function not implemented
fileinto: cannot save to mailbox: Function not implemented
...
I also get a zero length file test.mbox created but no mail is
delivered there.
Any other suggestions are highly welcome.
Thanks for your answer.
> Regards,
> Sergey
>
Regards,
Kostas
--
Kostas Zorbadelos
Systems Designer/Developer, Otenet SA
address@hidden contact: kzorba (at) otenet.gr
Out there in the darkness, out there in the night
out there in the starlight, one soul burns brighter
than a thousand suns.
testsieve.c
Description: Text Data
filters.sieve
Description: Text document
- [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented, Kostas Zorbadelos, 2005/06/22
- Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented, Sergey Poznyakoff, 2005/06/22
- Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented,
Kostas Zorbadelos <=
- Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented, Sergey Poznyakoff, 2005/06/22
- Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented, Kostas Zorbadelos, 2005/06/22
- Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented, Sergey Poznyakoff, 2005/06/22
- Message not available
- Message not available
- Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented, Kostas Zorbadelos, 2005/06/23
- Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented, Sergey Poznyakoff, 2005/06/23
- Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented, Kostas Zorbadelos, 2005/06/23
- Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented, Kostas Zorbadelos, 2005/06/23
- Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented, Sergey Poznyakoff, 2005/06/24
- Re: [bug-mailutils] [Error] fileinto: cannot save to mailbox: Function not implemented, Kostas Zorbadelos, 2005/06/28