I’m trying to copy email from one local dovecot imap server to another
one, and trying to use a php script, imap-move, following the advice in
this thread:
App to move
mail between imap servers?
The script was obtained here
'IMAP Move - An email migration script'
(http://edoceo.com/creo/imap-move)
But I’m getting this error output:
> cer@minas-tirith:~> imap-move.php --help
> arg: --help
> Connecting Source...
> PHP Notice: Undefined index: host in /home/cer/bin/imap-move.php on line 129
> imap_open({})
> PHP Notice: Undefined index: user in /home/cer/bin/imap-move.php on line 153
> PHP Notice: Undefined index: pass in /home/cer/bin/imap-move.php on line 153
> PHP Warning: imap_open(): Couldn't open stream {} in /home/cer/bin/imap-move.php on line 153
> Connecting Target...
> PHP Notice: Undefined index: host in /home/cer/bin/imap-move.php on line 129
> imap_open({})
> PHP Notice: Undefined index: user in /home/cer/bin/imap-move.php on line 153
> PHP Notice: Undefined index: pass in /home/cer/bin/imap-move.php on line 153
> PHP Warning: imap_open(): Couldn't open stream {} in /home/cer/bin/imap-move.php on line 153
> PHP Warning: imap_getmailboxes() expects parameter 1 to be resource, boolean given in /home/cer/bin/imap-move.php on line 163
> PHP Warning: Invalid argument supplied for foreach() in /home/cer/bin/imap-move.php on line 164
> PHP Notice: Unknown: Can't open mailbox {}: invalid remote specification (errflg=2) in Unknown on line 0
> PHP Notice: Unknown: Can't open mailbox {}: invalid remote specification (errflg=2) in Unknown on line 0
> cer@minas-tirith:~>
I don’t know if I have to install something else of php, or if there is
some error in the script.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))