[
https://issues.apache.org/jira/browse/JAMES-2985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17014806#comment-17014806
]
Simon Levesque commented on JAMES-2985:
---------------------------------------
Hi all,
I got the same issue using 3.4.0 JPA with Guice.
I stumbled upon it with a customer that was using the import in GMail and the
emails were still in the account in James. I could also reproduce with
Thunderbird when using POP3.
When from GMail, the debug logs in James are:
{noformat}
01:35:41.953 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandDispatcher -
org.apache.james.protocols.api.handler.CommandDispatcher received: PASS
01:35:41.954 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandDispatcher - Lookup command
handler for command: PASS
01:35:41.965 [pop3server-executor-149] DEBUG
org.apache.james.mailbox.store.StoreMailboxManager - Loaded mailbox
#private:[email protected]:INBOX
01:35:41.966 [pop3server-executor-149] DEBUG
org.apache.james.mailbox.store.StoreMessageResultIterator - batchSizes used:
BatchSizes{fetchMetadata=200, fetchHeaders=200, fetchBody=200, fetchFull=200,
copyBatchSize=Optional.empty, moveBatchSize=Optional.empty}
01:35:41.977 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandHandlerResultLogger -
org.apache.james.pop3server.core.PassCmdHandler: [+OK Welcome [email protected]]
01:35:42.313 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandDispatcher -
org.apache.james.protocols.api.handler.CommandDispatcher received: RETR
01:35:42.314 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandDispatcher - Lookup command
handler for command: RETR
01:35:42.314 [pop3server-executor-149] DEBUG
org.apache.james.mailbox.store.StoreMessageResultIterator - batchSizes used:
BatchSizes{fetchMetadata=200, fetchHeaders=200, fetchBody=200, fetchFull=200,
copyBatchSize=Optional.empty, moveBatchSize=Optional.empty}
01:35:42.327 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandHandlerResultLogger -
org.apache.james.protocols.pop3.core.RetrCmdHandler: [+OK Message follows]
01:35:43.549 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandDispatcher -
org.apache.james.protocols.api.handler.CommandDispatcher received: DELE
01:35:43.549 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandDispatcher - Lookup command
handler for command: DELE
01:35:43.549 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandHandlerResultLogger -
org.apache.james.protocols.pop3.core.DeleCmdHandler:
org.apache.james.protocols.api.AbstractResponse$1@439e75df
01:36:09.629 [pop3server-executor-149] INFO
org.apache.james.protocols.netty.BasicChannelUpstreamHandler - Connection
established from 209.85.166.147
01:36:10.002 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandDispatcher -
org.apache.james.protocols.api.handler.CommandDispatcher received: RETR
01:36:10.002 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandDispatcher - Lookup command
handler for command: RETR
01:36:10.002 [pop3server-executor-149] DEBUG
org.apache.james.mailbox.store.StoreMessageResultIterator - batchSizes used:
BatchSizes{fetchMetadata=200, fetchHeaders=200, fetchBody=200, fetchFull=200,
copyBatchSize=Optional.empty, moveBatchSize=Optional.empty}
01:36:10.021 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandHandlerResultLogger -
org.apache.james.protocols.pop3.core.RetrCmdHandler: [+OK Message follows]
01:36:16.359 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandDispatcher -
org.apache.james.protocols.api.handler.CommandDispatcher received: UIDL
01:36:16.359 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandDispatcher - Lookup command
handler for command: UIDL
01:36:16.367 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandHandlerResultLogger -
org.apache.james.protocols.pop3.core.UidlCmdHandler: [+OK unique-id listing
follows, 1 15808, 2 15809, 3 15810, 4 15811, .]
01:36:17.407 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandDispatcher -
org.apache.james.protocols.api.handler.CommandDispatcher received: QUIT
01:36:17.407 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandDispatcher - Lookup command
handler for command: QUIT
01:36:17.433 [pop3server-executor-149] DEBUG
org.apache.james.protocols.api.handler.CommandHandlerResultLogger -
org.apache.james.protocols.pop3.core.QuitCmdHandler:
org.apache.james.protocols.api.AbstractResponse$1@63815955
01:36:17.437 [pop3server-executor-149] INFO
org.apache.james.protocols.netty.BasicChannelUpstreamHandler - Connection
closed for 209.85.128.9
{noformat}
I could give a hand with this one if needed.
thanks
> Mails deleted via POP3 DELE command are not actually deleted
> ------------------------------------------------------------
>
> Key: JAMES-2985
> URL: https://issues.apache.org/jira/browse/JAMES-2985
> Project: James Server
> Issue Type: Bug
> Components: POP3Server
> Affects Versions: master
> Reporter: Jörg Thomas (ConSol)
> Priority: Critical
> Fix For: 3.5.0
>
> Attachments: patch.txt
>
>
> As per the title - mails can't be deleted via POP3 DELE.
> Steps to reproduce:
> - build the project (spring app in this case, but I don't think that matters)
> ** {{git clone [https://github.com/apache/james-project]}}
> ** {{cd james-project}}
> ** {{docker build -t james/project dockerfiles/compilation/java-8}}
> ** {{docker run -v $HOME/.m2:/root/.m2 -v $PWD:/origin -v
> $PWD/dockerfiles/run/spring/destination:/spring/destination -t james/project
> -s HEAD}}
> ** {{cd dockerfiles/run/spring/destination/}}
> ** {{unzip james-server-app-3.5.0-SNAPSHOT-app.zip}}
> ** {{cd james-server-app-3.5.0-SNAPSHOT/bin}}
> ** {{./run.sh}}
> - add a user
> ** {{./james-cli.sh test@localhost test123}}
> - send a mail to that user
> ** {{nc -C localhost 25}}
> ** ...
> - login via POP3 and fetch the mail
> ** {{nc -C localhost 110}}
> ** {{USER test@localhost}}
> ** {{PASS test123}}
> ** {{LIST}}
> *** (should list only one mail, the one you sent before)
> ** {{RETR 1}}
> *** (should display said mail's contents)
> ** {{DELE 1}}
> *** (should display `+OK Message deleted`)
> ** {{LIST}}
> *** (should display `+OK 0 0`)
> ** {{QUIT}}
> - login via POP3 again
> ** {{LIST}}
> *** (oops, the mail is still there, just like before)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]