> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Aaron Stone
> Sent: Friday, July 20, 2007 12:34 PM
> To: DBMail mailinglist
> Subject: RE: [Dbmail] Dbmail-export search options
>
> On Fri, Jul 20, 2007, List Receiver <[EMAIL PROTECTED]>
> said:
>
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On
> >> Behalf Of Paul J Stevens
> >> Sent: Friday, July 20, 2007 11:38 AM
> >> To: DBMail mailinglist
> >> Subject: Re: [Dbmail] Dbmail-export search options
> >>
> >> List Receiver wrote:
> >> > I'm trying to use the dbmail-export feature from 2.2.5 to create
> an
> >> mbox file from a mailbox that only has certain addresses in the To
> or
> >> From fields.  I'm unfamiliar with how to format that, and the man
> page
> >> and example from -h hasn't been enough to get me going.  I've tried
> >> this:
> >> >
> >> > dbmail-export -u user -m "my box" -s "1:* FROM [EMAIL PROTECTED]"
> >> >
> >> > That didn't work, however.  It produced a 0 byte file and no error
> >> code.  How do I format an IMAP search string to select To and From?
> As
> >> well, is there a way to do search strings for multiple To/From
> >> addresses?  I guess I just need to know how to do search strings in
> >> IMAP land.  :^)
> >>
> >> dbmail-export -u user -m 'mailbox' -s "OR (HEADER FROM
> >> [EMAIL PROTECTED])(HEADER FROM [EMAIL PROTECTED])"
> >>
> >
> > Thanks.  This doesn't seem to be working on my machine.  I have even
> tried a simpler:
> >
> > dbmail-export -u user -m "mailbox" -s "HEADER FROM [EMAIL PROTECTED]"
> >
> > ..but the result is an empty file when I am staring right at an e-
> mail in that mailbox from [EMAIL PROTECTED]  I'm perplexed.  What should I
> try next?
>
> The mailbox name might be case sensitive in dbmail-export < 2.2.6rc1.
> See
> if that resolves the problem for you. Do you get output on stderr like:
>
> Exporting [1] mailboxes for [user]
>  export mailbox INBOX -> ./user/INBOX.mbox
>
> or...
>
> Exporting [0] mailboxes for [user]
>
> ..the latter of which means that the mailbox is not being found, rather
> than indicating a problem with the IMAP search query.
>
> Aaron

I get:

export mailbox /user/mailbox -> user/mailbox

...so it appears to be similar to the correct example you cite above.



> _______________________________________________
> DBmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to