From the docs at CPAN, I don't even see a method called addMessage (maybe I missed it). The syntax for moving a message is
which actually moves the message and marks it for deletion, so it is deleted from the source folder when the folder is closed.$obj->moveMessage([FOLDER|FOLDERNAME,] MESSAGES, OPTIONS)
Hope this helps.
Also, I've had mixed success with all the Mail-Box modules (otoh, I was working with Exchange server, which might have had its own flavor of voodooo). I read a while back on Perl.com about some new mail handling modules that Simon Cozens had started (because he too had mixed success with the existing Mail modules) which were supposed to be better. If your life depends on the above script, you would be well advised to utilize a lot of error-checking and success-failure checking, or use more reliable modules.
In reply to Re: using Mail::Box::Manager;
by punkish
in thread using Mail::Box::Manager;
by ahakim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |