> -----Original Message-----
> From: dbmail-bounces dbmail.org
[mailto:dbmail-bounces dbmail.org] 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
<listreceiver mastermindpro.com>
> said:
>
> >> -----Original Message-----
> >> From: dbmail-bounces dbmail.org
[mailto:dbmail-bounces dbmail.org]
> 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
asdf asdf.com"
> >> >
> >> > 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
> >> asdf asdf.com)(HEADER FROM sdfg sdfg.com)"
> >>
> >
> > 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 asdf asdf.com"
> >
> > ..but the result is an empty file when I am
staring right at an e-
> mail in that mailbox from asdf asdf.com. 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
> DBmail dbmail.org
> htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail
_______________________________________________
DBmail mailing list
DBmail dbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail
|