Problems with PHP and imap-move

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))

Carlos E. R. wrote:
> 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

What makes you think it accepts a --help option? The documentation on
the page you link to doesn't say it does. Neither does the code linked
on github from that page. But the code doesn't match your error printout
either. Where did you get the code? Have you tried using one of the
example command lines?

On 2013-01-24 14:42, Dave Howorth wrote:
> Carlos E. R. wrote:

> What makes you think it accepts a --help option? The documentation on
> the page you link to doesn’t say it does. Neither does the code linked
> on github from that page. But the code doesn’t match your error printout
> either. Where did you get the code? Have you tried using one of the
> example command lines?

It errors on any option or no option given.

I got the code from that exact page.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Carlos E. R. wrote:
> On 2013-01-24 14:42, Dave Howorth wrote:
>> Carlos E. R. wrote:
>
>> What makes you think it accepts a --help option? The documentation on
>> the page you link to doesn’t say it does. Neither does the code linked
>> on github from that page. But the code doesn’t match your error printout
>> either. Where did you get the code? Have you tried using one of the
>> example command lines?
>
> It errors on any option or no option given.

Well, you’re more likely to get correct results, or useful help, if you
post the exact command and output that you used for a command that you
expect to work, rather than the output when you give an unimplemented
option. So let me follow up with a more explicit request.

Please post the command and full output from one of the illustrated
example commands.Use sensible option values.

> I got the code from that exact page.

You mean from http://cdn.edoceo.com/bin/imap-move.php I presume.

On 2013-01-24 15:30, Dave Howorth wrote:
> Carlos E. R. wrote:
>> On 2013-01-24 14:42, Dave Howorth wrote:

> Please post the command and full output from one of the illustrated
> example commands.Use sensible option values.

A normal program gives help on the syntax when you type it wrong. It
doesn’t error out saying things about wrong indexes or wrong arguments
to php functions.

Ok, this:


> cer@minas-tirith:~> imap-move.php --fake -s imap-ssl://cer@:PASS@localhost
> Connecting Source...
> imap_open({localhost/ssl})
> PHP Warning:  imap_open(): Couldn't open stream {localhost/ssl} 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 connect to localhost,993: Connection refused (errflg=1) in Unknown on line 0
> PHP Notice:  Unknown: Certificate failure for localhost: Server name does not match certificate: /C=ES/ST=Mobile/L=in_mobile/O=mine/OU=IMAP server/CN=minas-tirith.valinor/emailAddress=root@minas-tirith.valinor (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 got the code from that exact page.

You mean from http://cdn.edoceo.com/bin/imap-move.php I presume.

Yes. It is in the firefox download history.


http://cdn.edoceo.com/bin/imap-move.php


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

Carlos E. R. wrote:
> On 2013-01-24 15:30, Dave Howorth wrote:
>> Carlos E. R. wrote:
>>> On 2013-01-24 14:42, Dave Howorth wrote:
>
>> Please post the command and full output from one of the illustrated
>> example commands.Use sensible option values.
>
> A normal program gives help on the syntax when you type it wrong. It
> doesn’t error out saying things about wrong indexes or wrong arguments
> to php functions.

I don’t understand your attitude. You’ve downloaded some free software
and you’re trying to get it to work. But you don’t seem to be trying
very hard; you seem to be more interested in complaining to people who
can’t fix your complaint.

> Ok, this:
>
>


>> cer@minas-tirith:~> imap-move.php --fake -s imap-ssl://cer@:PASS@localhost
>> Connecting Source...
>> imap_open({localhost/ssl})
>> PHP Warning:  imap_open(): Couldn't open stream {localhost/ssl} in /home/cer/bin/imap-move.php on line 153

So that seems a pretty clear message telling you it's not happy with
your source argument. I don't know much about IMAP and nothing about
this program, so I can't help you diagnose it, except to say that all
their examples include a domain, whilst yours doesn't.

It seems to me that you either try it with lots of random examples, or
you read the program and see what it's looking for - UTSL!

On 2013-01-24 16:11, Dave Howorth wrote:
> Carlos E. R. wrote:
>> On 2013-01-24 15:30, Dave Howorth wrote:

>> A normal program gives help on the syntax when you type it wrong. It
>> doesn’t error out saying things about wrong indexes or wrong arguments
>> to php functions.
>
> I don’t understand your attitude. You’ve downloaded some free software
> and you’re trying to get it to work. But you don’t seem to be trying
> very hard; you seem to be more interested in complaining to people who
> can’t fix your complaint.

Because you are blaming me instead of the programmers for bad programming.

>> Ok, this:
>>
>>


>>> cer@minas-tirith:~> imap-move.php --fake -s imap-ssl://cer@:PASS@localhost
>>> Connecting Source...
>>> imap_open({localhost/ssl})
>>> PHP Warning:  imap_open(): Couldn't open stream {localhost/ssl} in /home/cer/bin/imap-move.php on line 153
>
> So that seems a pretty clear message telling you it's not happy with
> your source argument. I don't know much about IMAP and nothing about
> this program, so I can't help you diagnose it, except to say that all
> their examples include a domain, whilst yours doesn't.

Ok, but localhost is a domain. I'll try the full name ... same result.



cer@minas-tirith:~> imap-move.php --fake -s imap-ssl://cer@:PASS@minas-tirith.valinor
Connecting Source…
imap_open({minas-tirith.valinor/ssl})
PHP Warning: imap_open(): Couldn’t open stream {minas-tirith.valinor/ssl} 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: Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Authentication failed. (errflg=1) in Unknown on line 0
PHP Notice: Unknown: Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Authentication failed. (errflg=1) in Unknown on line 0
PHP Notice: Unknown: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Authentication failed. (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:




> It seems to me that you either try it with lots of random examples, or
> you read the program and see what it's looking for - UTSL!


Well, I expect that somebody that knows php can have a look at it and
tell me if it is broken code, if I need to add more php modules, or what.

IMO, the code is broken, it is calling PHP functions with wrong
arguments, so there is no hope of having it run.

--
Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))

Carlos E. R. wrote:
> On 2013-01-24 16:11, Dave Howorth wrote:
>> Carlos E. R. wrote:
>>> On 2013-01-24 15:30, Dave Howorth wrote:
>
>
>>> A normal program gives help on the syntax when you type it wrong. It
>>> doesn’t error out saying things about wrong indexes or wrong arguments
>>> to php functions.
>> I don’t understand your attitude. You’ve downloaded some free software
>> and you’re trying to get it to work. But you don’t seem to be trying
>> very hard; you seem to be more interested in complaining to people who
>> can’t fix your complaint.
>
> Because you are blaming me instead of the programmers for bad programming.

No, I’m blaming you for complaining about error messages when you use a
‘function’ that isn’t implemented. There’s nothing that compels a
programmer to implement help; feel free to implement it yourself instead
of complaining. You’re misusing the program; you’re lucky it doesn’t
segfault :stuck_out_tongue:

>>> Ok, this:
>>>
>>>


>>>> cer@minas-tirith:~> imap-move.php --fake -s imap-ssl://cer@:PASS@localhost
>>>> Connecting Source...
>>>> imap_open({localhost/ssl})
>>>> PHP Warning:  imap_open(): Couldn't open stream {localhost/ssl} in /home/cer/bin/imap-move.php on line 153
>> So that seems a pretty clear message telling you it's not happy with
>> your source argument. I don't know much about IMAP and nothing about
>> this program, so I can't help you diagnose it, except to say that all
>> their examples include a domain, whilst yours doesn't.
>
> Ok, but localhost is a domain. I'll try the full name ... same result.
>
>
> 

>> cer@minas-tirith:~> imap-move.php --fake -s imap-ssl://cer@:PASS@minas-tirith.valinor
>> Connecting Source…
>> imap_open({minas-tirith.valinor/ssl})
>> PHP Warning: imap_open(): Couldn’t open stream {minas-tirith.valinor/ssl} in /home/cer/bin/imap-move.php on line 153

No, I wasn’t clear enough. AFAICT, all their examples look like

imap-ssl://user@DOMAIN:password@host:port/

Yours looks like

imap-ssl://user@:password@host

You’re missing DOMAIN, and also a port and a trailing slash. I have no
idea which may be significant.

>> It seems to me that you either try it with lots of random examples, or
>> you read the program and see what it’s looking for - UTSL!
>
> Well, I expect that somebody that knows php can have a look at it and
> tell me if it is broken code, if I need to add more php modules, or what.
>
> IMO, the code is broken, it is calling PHP functions with wrong
> arguments, so there is no hope of having it run.

Well, IMO, there’s no evidence to suggest it’s broken. Cascading error
messages are a fact of life when programs are taken outside their
comfort zone. Reset your expectations.

I think you’ll do better if you assume that it does work and try to
figure out how to give it correct arguments. Reading the code may help,
even if you don’t know PHP.

On 2013-01-24 16:41, Dave Howorth wrote:
> Carlos E. R. wrote:
>> On 2013-01-24 16:11, Dave Howorth wrote:

>
> No, I wasn’t clear enough. AFAICT, all their examples look like
>
> imap-ssl://user@DOMAIN:password@host:port/
>
> Yours looks like
>
> imap-ssl://user@:password@host
>
> You’re missing DOMAIN, and also a port and a trailing slash. I have no
> idea which may be significant.

I have also tried that, it gives the same error.

>> IMO, the code is broken, it is calling PHP functions with wrong
>> arguments, so there is no hope of having it run.
>
> Well, IMO, there’s no evidence to suggest it’s broken. Cascading error
> messages are a fact of life when programs are taken outside their
> comfort zone. Reset your expectations.

No, I wont. I expect published code to at least sanitize the imput,
verify what needs to be verified, and give useful user errors, not
internal programming errors.

I’m a coder that no longer codes, I expect no less.

> I think you’ll do better if you assume that it does work and try to
> figure out how to give it correct arguments. Reading the code may help,
> even if you don’t know PHP.

It doesn’t, I tried.

Either somebody that knows php tries to help me, or I give up.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On Thu, 24 Jan 2013 16:04:08 +0000, Carlos E. R. wrote:

> It doesn’t, I tried.
>
> Either somebody that knows php tries to help me, or I give up.

Try contacting the author, but recognize as well that not everyone
follows the same coding conventions (like implementing --help).

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2013-01-24 18:51, Jim Henderson wrote:
> On Thu, 24 Jan 2013 16:04:08 +0000, Carlos E. R. wrote:
>
>> It doesn’t, I tried.
>>
>> Either somebody that knows php tries to help me, or I give up.
>
> Try contacting the author, but recognize as well that not everyone
> follows the same coding conventions (like implementing --help).

Help switch aside, it doesn’t even run with the documented sample syntax.

I give up, I’ll do the move with alpine folder by tedious folder.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On Thu, 24 Jan 2013 18:48:08 +0000, Carlos E. R. wrote:

>> Try contacting the author, but recognize as well that not everyone
>> follows the same coding conventions (like implementing --help).
>
> Help switch aside, it doesn’t even run with the documented sample
> syntax.
>
> I give up, I’ll do the move with alpine folder by tedious folder.

Well, again, asking the author for some help might well be an option.

But do what you want. :slight_smile:

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2013-01-24 20:29, Jim Henderson wrote:
>> > I give up, I’ll do the move with alpine folder by tedious folder.
> Well, again, asking the author for some help might well be an option.
>
> But do what you want. :slight_smile:

That may be a question of days for an answer, I need to do it now.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

On Thu, 24 Jan 2013 19:58:06 +0000, Carlos E. R. wrote:

> On 2013-01-24 20:29, Jim Henderson wrote:
>>> > I give up, I’ll do the move with alpine folder by tedious folder.
>> Well, again, asking the author for some help might well be an option.
>>
>> But do what you want. :slight_smile:
>
> That may be a question of days for an answer, I need to do it now.

<shrug> Your alternative seems to be to not have a solution for what
you’re trying to do. Your choice, though.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2013-01-24 21:39, Jim Henderson wrote:

> <shrug> Your alternative seems to be to not have a solution for what
> you’re trying to do. Your choice, though.

That program does not work, and I can not make it work. It is useless me
spending time in it when I need to move my email now. In fact, I already
moved my email to my desktop, task done.

Besides that, I see no email address where to report the problem.

Either someone in the forum or mail list helps me, of nobody can.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

Carlos E. R. wrote:
> On 2013-01-24 21:39, Jim Henderson wrote:
>
>> <shrug> Your alternative seems to be to not have a solution for what
>> you’re trying to do. Your choice, though.
>
> That program does not work, and I can not make it work. It is useless me
> spending time in it when I need to move my email now. In fact, I already
> moved my email to my desktop, task done.

I’m pleased that you’ve managed to accomplish the task. But again, your
attitude leaves me gasping. You make outrageous negative claims about
the code, which somebody (David Busby) made available to you for free.
All I’ve seen you demonstrate is that you haven’t yet managed to
understand what the command-line options should look like.

And then you’re not even willing to send your feedback to the author so
he can improve his program, or at least perhaps clarify the
documentation. Instead you’re happy to leave a string of insults here
for google to index. You’re among the first to insist that people you
help file bug reports, so why are you so unwilling to do it in this case?

> Besides that, I see no email address where to report the problem.

I do sympathise with this point; it irks me when email is not available.
But he does provide a web form at http://edoceo.com/contact and you
could always request to transfer the conversation to email.

> Either someone in the forum or mail list helps me, of nobody can.

“ask not what your country can do for you–ask what you can do for your
country.”

(Kennedy said it, but it could have been Stallman :slight_smile:

On 2013-01-25 11:21, Dave Howorth wrote:
> Carlos E. R. wrote:
>> On 2013-01-24 21:39, Jim Henderson wrote:
>>
>>> <shrug> Your alternative seems to be to not have a solution for what
>>> you’re trying to do. Your choice, though.
>>
>> That program does not work, and I can not make it work. It is useless me
>> spending time in it when I need to move my email now. In fact, I already
>> moved my email to my desktop, task done.
>
> I’m pleased that you’ve managed to accomplish the task. But again, your
> attitude leaves me gasping. You make outrageous negative claims about
> the code, which somebody (David Busby) made available to you for free.
> All I’ve seen you demonstrate is that you haven’t yet managed to
> understand what the command-line options should look like.

I’m using the exact syntax as documented in that web page. THE EXACT
SYNTAX! Don’t tell me I don’t.

> And then you’re not even willing to send your feedback to the author so
> he can improve his program, or at least perhaps clarify the
> documentation. Instead you’re happy to leave a string of insults here
> for google to index. You’re among the first to insist that people you
> help file bug reports, so why are you so unwilling to do it in this case?

You judge me unfairly.

I’m not insulting, I say that it does not work and that is true. I say
that the program doesn’t show helpful output on errors, and that is true.

And yes, I prefer help from this forum, same as I have helped hundreds
of people here. I don’t see why that is that difficult to understand. :-/

Try it yourself, on a system that has no php installed. I don’t even
know if I installed PHP correctly. Is he going to know how to install
openSUSE?

PHP has dozens of packages to install, I installed just the minimum set
that yast automatically installs when clicking on php, and the one that
says imap.

>> Besides that, I see no email address where to report the problem.
>
> I do sympathise with this point; it irks me when email is not available.
> But he does provide a web form at http://edoceo.com/contact and you
> could always request to transfer the conversation to email.

I do not like webforms.

I do not trust it either, I don’t know that company, I don’t like that I
see no other comment. I would be the first one. No sir, I will not post
there.

>> Either someone in the forum or mail list helps me, of nobody can.
>
> “ask not what your country can do for you–ask what you can do for your
> country.”
>
> (Kennedy said it, but it could have been Stallman :slight_smile:

And you tell that of me, with the thousands of posts I make, and the
hundreds of people I have helped here?


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Carlos E. R. wrote:
> I’m using the exact syntax as documented in that web page. THE EXACT
> SYNTAX! Don’t tell me I don’t.

Perhaps you are, perhaps you aren’t. We can’t tell since you haven’t
posted the command and its output.

> You judge me unfairly.

I don’t think so.

> I’m not insulting, I say that it does not work and that is true.

No, you say it does not work, when all you can say is that it doesn’t
work with the arguments you have given it. And until you understand
exactly why it doesn’t work in those circumstances, you have no idea
whether it is broken, or simply supplied with wrong arguments.

You’re happy to download and [try to] use this person’s software, but
you’re not willing to help him improve it. Instead you just complain.

> I say
> that the program doesn’t show helpful output on errors, and that is true.

No, you said that programs must show helpful output and that isn’t true.

>>> Besides that, I see no email address where to report the problem.
>> I do sympathise with this point; it irks me when email is not available.
>> But he does provide a web form at http://edoceo.com/contact and you
>> could always request to transfer the conversation to email.
>
> I do not like webforms.
>
> I do not trust it either, I don’t know that company, I don’t like that I
> see no other comment. I would be the first one. No sir, I will not post
> there.

Well, I don’t like web forms either. But I use them when I have to, and
I tell the recipient that I would prefer to use email. I don’t see any
issue of trust there. What needs to be trusted in a posting saying “I
can’t make your program work, please help. I prefer to use email
onetime.address@some.domain.com

I don’t understand why you expect to see comments on a contact webform?
It’s not a blog where communications should be public. It’s for private
messages when people want to hire him etc.

>>> Either someone in the forum or mail list helps me, of nobody can.
>> “ask not what your country can do for you–ask what you can do for your
>> country.”
>>
>> (Kennedy said it, but it could have been Stallman :slight_smile:
>
> And you tell that of me, with the thousands of posts I make, and the
> hundreds of people I have helped here?

I do. I agree that you have an outstanding record, but for some reason
with this issue you are choosing to be pig-headed.

I remember in the past you complained about people impersonating you and
others. I’m beginning to wonder if somebody is doing so now.

On 2013-01-25 15:06, Dave Howorth wrote:
> Carlos E. R. wrote:
>> I’m using the exact syntax as documented in that web page. THE EXACT
>> SYNTAX! Don’t tell me I don’t.
>
> Perhaps you are, perhaps you aren’t. We can’t tell since you haven’t
> posted the command and its output.

Oh, yes, of course I did. As you don’t believe me, I’ll do it again. The
errors are the same regardless of variations in the arguments.


> cer@minas-tirith:~> imap-move.php --fake -s imap-ssl://cer@:PASS@minas-tirith.valinor:993/
> Connecting Source...
> imap_open({minas-tirith.valinor:993/ssl})
> PHP Warning:  imap_open(): Couldn't open stream {minas-tirith.valinor:993/ssl} 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: Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Authentication failed. (errflg=1) in Unknown on line 0
> PHP Notice:  Unknown: Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Authentication failed. (errflg=1) in Unknown on line 0
> PHP Notice:  Unknown: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Authentication failed. (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:~>

>
>> You judge me unfairly.
>
> I don’t think so.
>
>> I’m not insulting, I say that it does not work and that is true.
>
> No, you say it does not work, when all you can say is that it doesn’t
> work with the arguments you have given it. And until you understand
> exactly why it doesn’t work in those circumstances, you have no idea
> whether it is broken, or simply supplied with wrong arguments.

If I give the wrong arguments, I expect the software to tell me plainly
that I used the wrong arguments.

> You’re happy to download and [try to] use this person’s software, but
> you’re not willing to help him improve it. Instead you just complain.

Of course I do.

>> I say
>> that the program doesn’t show helpful output on errors, and that is true.
>
> No, you said that programs must show helpful output and that isn’t true.

Oh, yes, they must, if they publish it. I expect no less, or else tell
that in the web page as a disclaimer.

> Well, I don’t like web forms either. But I use them when I have to, and
> I tell the recipient that I would prefer to use email. I don’t see any
> issue of trust there. What needs to be trusted in a posting saying “I
> can’t make your program work, please help. I prefer to use email
> onetime.address@some.domain.com

I do not trust it.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On 2013-01-24 14:28, Carlos E. R. wrote:
>
> 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:

I found a much better software: imapsync. I has a man page, a FAQ,
command line help, it advises on the correct options on mistakes… very
good. I still have to try it in real use, but so far it works :slight_smile:

It is available from the “OBS: Server: Mail” repository, with somethings
form the “OBS: devel: languages: perl” repo.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)