POP Mail client crashing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

POP Mail client crashing

Stephen-71
Hi,

The POP mail client (or the way I am using it) doesn't seem to like
handling messages with attachments. I get a crash like so...

Object: POPProtocolInterpreter new "<-0x4c7e1590>" error: Protocol error:
NetClients.ProtocolError(Exception)>>signal
NetClients.ProtocolError(Exception)>>signal:
NetClients.POP.POPProtocolInterpreter(NetClients.NetProtocolInterpreter)>>protocolError:
[] in NetClients.POP.POPProtocolInterpreter>>checkResponse:
NetClients.POP.POPProtocolInterpreter>>checkResponse:ifError:
NetClients.POP.POPProtocolInterpreter>>checkResponse:
NetClients.POP.POPProtocolInterpreter(NetClients.NetProtocolInterpreter)>>checkResponse
NetClients.POP.POPProtocolInterpreter>>popDelete:
NetClients.POP.POPClient>>getNewMailMessages:delete:


Here is the code I'm using:-
     client := NetClients.POP.POPClient connectToHost: popHost.
     [client
         username: popUsername
         password: popPassword.
         client login.

         client getNewMailMessages: [ :mimeEntity |
                 self updateReceivedID: mimeEntity.  ]
             delete: true
     ] ensure: [client close].

For what its worth code in the getNewMailMessages: block is all
completed. It fails when it goes to handle the delete: part. It doesn't
matter if delete: is set to true or false.

Having said that if one does the following, there is no crash:
     client
         getNewMailMessages: [:m | ]
         delete: true

I'm running 3.0 (the problem was in 2.3.x as well).

Thank you
Stephen


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: POP Mail client crashing

Stephen-71

>
> The POP mail client (or the way I am using it) doesn't seem to like
> handling messages with attachments. I get a crash like so...
>
>
A comment on the previous post.

If it helps, I don't need to read email attachments at this stage (just
in case the thought of grappling with MIME handling is putting anyone
off). I just need to be able to read the subject and message content -
currently if a message comes through with an attachment my automated
system crashes and I have to go in manually and delete the offending
message.

Thank you.

Stephen


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: POP Mail client crashing

Paolo Bonzini-2
Stephen wrote:

>
>>
>> The POP mail client (or the way I am using it) doesn't seem to like
>> handling messages with attachments. I get a crash like so...
>>
>>
> A comment on the previous post.
>
> If it helps, I don't need to read email attachments at this stage (just
> in case the thought of grappling with MIME handling is putting anyone
> off). I just need to be able to read the subject and message content -
> currently if a message comes through with an attachment my automated
> system crashes and I have to go in manually and delete the offending
> message.

Fixing the issue will probably allow you to get the attachments too.  I
don't have a lot of time to look at the issue, but I will.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: POP Mail client crashing

Paolo Bonzini-2
In reply to this post by Stephen-71

> Here is the code I'm using:-
>     client := NetClients.POP.POPClient connectToHost: popHost.
>     [client
>         username: popUsername
>         password: popPassword.
>         client login.
>
>         client getNewMailMessages: [ :mimeEntity |
>                 self updateReceivedID: mimeEntity.  ]
>             delete: true
>     ] ensure: [client close].
>
> For what its worth code in the getNewMailMessages: block is all
> completed. It fails when it goes to handle the delete: part. It doesn't
> matter if delete: is set to true or false.

What does updateReceivedID: do?

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk