Re: [Dovecot] delivering with maildrop

2012-03-26 Thread Radim Kolar
I presume he wants to filter first with maildir, then actually deliver 
using the dovecot delivery agent?

yes

In answer to the OP: read the maildropex man pages, but you have
several options, eg:


Yes found that dovecot-lda -m will do it nicely.

echo "mail message Test " | /usr/local/libexec/dovecot/dovecot-lda -m 
dovecot


just user agents are not able to display message with 0 headers. That 
confused me.


Re: [Dovecot] delivering with maildrop

2012-03-25 Thread Ed W

On 23/03/2012 14:02, Stan Hoeppner wrote:

On 3/23/2012 6:41 AM, Radim Kolar wrote:

Can somebody provide maildrop syntax for using deliver-lda as final
delivery program during sorting mail in user mailfilter?

i mean replacement  for "to" statement

if ( /^(To|Cc):.*dovecot@dovecot.org/:h )
{
  to $MAIL/.dovecot/
}

Dovecot's local delivery agent uses the Sieve language:
http://wiki.dovecot.org/LDA/Sieve

The syntax is quite different than maildrop or procmail.



I think that's why he asked the question?

I presume he wants to filter first with maildir, then actually deliver 
using the dovecot delivery agent?



In answer to the OP: read the maildropex man pages, but you have several 
options, eg:


to "| someprogram"
or:
xfilter someprogram
`someprogram`

However, almost certainly I think you want the top option?

Good luck

Ed W


Re: [Dovecot] delivering with maildrop

2012-03-23 Thread Stan Hoeppner
On 3/23/2012 6:41 AM, Radim Kolar wrote:
> Can somebody provide maildrop syntax for using deliver-lda as final
> delivery program during sorting mail in user mailfilter?
> 
> i mean replacement  for "to" statement
> 
> if ( /^(To|Cc):.*dovecot@dovecot.org/:h )
> {
>  to $MAIL/.dovecot/
> }

Dovecot's local delivery agent uses the Sieve language:
http://wiki.dovecot.org/LDA/Sieve

The syntax is quite different than maildrop or procmail.

-- 
Stan




[Dovecot] delivering with maildrop

2012-03-23 Thread Radim Kolar
Can somebody provide maildrop syntax for using deliver-lda as final 
delivery program during sorting mail in user mailfilter?


i mean replacement  for "to" statement

if ( /^(To|Cc):.*dovecot@dovecot.org/:h )
{
 to $MAIL/.dovecot/
}