mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-26 05:26:00 +03:00
[GH-ISSUE #158] Cannot MOVE email to another folder #127
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @neildarlow on GitHub (Dec 2, 2016).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/158
Originally assigned to: @jasonmunro on GitHub.
Running Cypht in following environment:
FreeBSD-10.3-RELEASE
nginx + PHP-5.6 (FPM)
Cyrus IMAPd 2.4.x and Postfix 3.1.x
I am able to COPY then DELETE an email but any attempt to MOVE an email results in a failure error message.
@jasonmunro commented on GitHub (Dec 2, 2016):
Hello!
Thanks for the feedback. I recently (12 days ago) fixed a problem with moving messages, hopefully this will fix your issue:
github.com/jasonmunro/cypht@ded54fccd5If not, let me know and we can dig into it deeper.
@neildarlow commented on GitHub (Dec 3, 2016):
Hi Jason,
My install was taken from Github last evening. Not sure of the commit but the comment referred to an updated German translation one day prior.
Would that commit have your recent fix in? If so, then I think it may be a different problem.
Regards,
Neil Darlow
On 2 December 2016 23:35:58 GMT+00:00, Jason Munro notifications@github.com wrote:
--
Sent from my Sony Xperia™ phone with K-9 Mail.
@jasonmunro commented on GitHub (Dec 3, 2016):
Sounds like it is a new problem. Are you moving a message from one IMAP server to another, or on the same server? I will try to reproduce it and let you know if I find anything. Thanks again.
@neildarlow commented on GitHub (Dec 3, 2016):
Hi Jason,
It was a move on the same server.
I use Cyrus IMAPd with folders configured as sub-folders of INBOX.
The move was a Spam e-mail from INBOX to INBOX/Junk.
I use / as the sub-folder delimeter not . but I believe that is acceptable. I've never had any problems with other clients.
Regards,
Neil Darlow
On 3 December 2016 17:45:07 GMT+00:00, Jason Munro notifications@github.com wrote:
--
Sent from my Sony Xperia™ phone with K-9 Mail.
@jasonmunro commented on GitHub (Dec 3, 2016):
It's likely not a problem on your end. I don't have a Cyrus setup, but I just did some moves without any issues so not sure what is wrong yet. Could you try doing the move in debug mode to see if anything pertinent is present in the PHP log? Section six here: https://cypht.org/install.html explains how to enable debug mode. If that does not provide a clue I will post a gist with some additional debug info so we can see exactly what we are telling the IMAP server, and what it's responding with.
Thanks again for the feedback and helping to troubleshoot the issue.
@jasonmunro commented on GitHub (Dec 3, 2016):
also, I like your avatar :)
@neildarlow commented on GitHub (Dec 3, 2016):
OK. Enabled debug mode and Debug is shown on the action panel after logging in.
Attempted to move an e-mail from INBOX to INBOX/Junk and it failed as before but nothing logged to my PHP error log.
@conspacer commented on GitHub (Dec 6, 2016):
I have mixed results with moving messages between folders on the same IMAP server. Sometimes it works, other times it times out. I am assuming issues in latency between the Cypht server and the IMAP mail server (but it does work at times).
Moving messages between servers (ala TBird style) times out 10 out of 10 times.
@jasonmunro commented on GitHub (Dec 9, 2016):
The following will output the conversation(s) with imap servers when trying to move messages: https://gist.github.com/jasonmunro/efd8611bf7cc26ad0c788df5de5018ba
You need to be running in debug mode, and the output should show up in the PHP log file. Hopefully this will provide more insight into what is going wrong.
@neildarlow commented on GitHub (Dec 9, 2016):
Hi Jason,
Attached is my nginx error log which contains the conversations you
might be after.
The content is a bit verbose but you can pick-out the packets of
interest I think.
Let me know if I can assist any further.
Regards,
Neil Darlow
On Fri, 2016-12-09 at 09:53 -0800, Jason Munro wrote:
@jasonmunro commented on GitHub (Dec 9, 2016):
@neildarlow, not seeing any attachment. If you are worried about posting that online feel free to send it directly to me at jason@cypht.org. Thanks!
@jasonmunro commented on GitHub (Dec 9, 2016):
@neildarlow thanks for sending the output, found the problem :) Your IMAP server does not support the MOVE extension (https://tools.ietf.org/html/rfc6851) and we don't have code to fallback to COPY/DELETE. Looking at adding support for that now.
@jasonmunro commented on GitHub (Dec 9, 2016):
Fix is pushed. If the move extension is not supported, we fall back to copy/delete/expunge. I'm surprised this hasn't come up before. We want to take advantage of any extensions present, but we don't want to rely on them for basic functionality.
If you could pull the latest and see if it resolves your issue, that would be great. Thanks!
@jasonmunro commented on GitHub (Dec 12, 2016):
@conspacer the OP issue is resolved, but that does not explain the errors you are seeing. Any chance you could try the debug I posted and send me the results? Thanks!