Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMAP Folder To Save Outgoing Replies #4470

Open
paulgessinger opened this issue Jan 11, 2025 · 4 comments
Open

IMAP Folder To Save Outgoing Replies #4470

paulgessinger opened this issue Jan 11, 2025 · 4 comments

Comments

@paulgessinger
Copy link

This is another case of the outgoing emails not being saved to the configured IMAP folder (see below for related issues)

I've configured this to "Sent" which I've double checked exists on the IMAP server. The app logs say:

[Mailbox Name » Connection Settings » Fetching Emails » IMAP Folder To Save Outgoing Replies] Could not save outgoing reply to the IMAP folder (check folder name and make sure IMAP folder does not have spaces - folders with spaces do not work): Sent 

Previous issues (that I found) are:

but I could not find any suggestions besides "debug on the server" with no follow-up. I'm happy to debug, if you tell me what I can check to figure out what's going wrong.


PHP version: 8.2.26
FreeScout version: 1.8.160
Database: MariaDB
Are you using CloudFlare: No
Are you using non-official modules: No

@paulgessinger
Copy link
Author

@freescout-help That's basically what I did already. The problem is that

return $folder->appendMessage($envelope_str, ['\Seen'], now()->format('d-M-Y H:i:s O'));

just returns false, apparently without an error message, and that seems to be internal to the Webklex package.
It gets called multiple times through $this->saveEmailToFolder, seemingly once with and once without attachments, so to work around some other issue. Both calls seem to silently fail however.

I guess the next step would be to dig into the Webklex package code, which is a bit intimidating to be honest.

Do you know if there's additional logging that can be enabled in Webklex?

@freescout-help
Copy link
Collaborator

Are you connecting to your email via IMAP or POP3?

Webklex/php-imap uses "imap.options.debug" config parameter to "echo" logging lines:

\Config::set('imap.options.debug', config('app.debug'));

@paulgessinger
Copy link
Author

@freescout-help It's IMAP.

Thanks for the tip, I'll try this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants