> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Aaron Stone > Sent: Monday, March 31, 2008 5:29 PM > To: DBMail mailinglist > Subject: Re: [Dbmail] Dbmail-export all mailboxes > > By default, all mailboxes are exported. If you want to export a > specific tree, you can do one of two things: > > dbmail-export -m "Mail/Box/Tree" -r > > it will then export Mail/Box/Tree and everything below it, e.g. Mail/ > Box/Tree/Something/Else. This should be clearly documented already in > the man page and dbmail-export -h. > > Or: > > dbmail-export -m "Mail/*/Tree*" > > it will then export all mailboxes beginning with Tree or in > subdirectories below Tree, two levels below Mail, regardless of the > name of the folder in between. For example. This is actually not > documented, however it does work nicely. >
I see that the default is to export all mailboxes, but when I specify the search string, I'm not allowed to do anything other than specify a mailbox: archfe1:~ # dbmail-export -u joes -s "1:* FROM joes@" -o "/root/mail/test3" Mailbox required if search is specified. As well, how can I concoct a search string to match one of two different queries? For example, I'm trying: dbmail-export -u joes -m "mail" -r -s "1:* FROM joes@ OR TO joes@" -o "/root/mail/test3" dbmail-export -u joes -m "mail" -r -s "1:* FROM OR TO joes@" -o "/root/mail/test3" ...but neither produces a non-zero size file > Cheers! > Aaron > > > On Mar 31, 2008, at 5:07 PM, List Receiver wrote: > > I'm trying to use dbmail-export to dump data from all mailboxes that > > a user has access to. I need to use a search string to refine the > > exported results, so dbmail-export claims I have to use the -m > > switch to define which mailbox it should look in. I have looked > > around, but I don't see a way to specify "*" or some other wildcard > > character to get it to look in all mailboxes. What's the trick? > > > > TIA > > _______________________________________________ > > DBmail mailing list > > [email protected] > > https://mailman.fastxs.nl/mailman/listinfo/dbmail > > _______________________________________________ > DBmail mailing list > [email protected] > https://mailman.fastxs.nl/mailman/listinfo/dbmail _______________________________________________ DBmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
