I have done the following from a backup, where I have a
restored_user@domain.com, and I want to pull specific pieces of mail into the
user@domain.com. It seems that it should work for different accounts.
For the account I want to get mail out of, I do a zmmailbox command to get all the messages in inbox with
That will dump everything that matches the query "in:inbox" to /tmp/aaa, but you can put any query that works in the web client in that option, so you are not limited
Then you can loop through everything in that directory and inject the message into the other mailbox with something like
Quote:
for x in $(ls -1 /tmp/aaa/)
do
echo "am /Inbox /tmp/aaa/$x" >>/tmp/feedfile
done
|
Then you can run that feedfile into the bbb account with
[/QUOTE]