Opened 2 years ago

Closed 2 years ago

#13298 closed bug (fixed)

Mail isn't collected from IMAP server

Reported by: davewthompson Owned by: axeld
Priority: normal Milestone: Unscheduled
Component: Servers/mail_daemon Version: R1/Development
Keywords: mail email Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

In build hrev50941 mail isn't picked up from the IMAP server. It is, however, sent.

I have a fresh installation and have configured a IMAP/SMTP server I have on my local network. No encryption. Outlook can pick it up fine.

When running the mail preferences panel from the Terminal, I can see the IMAP connection succeeding, but it never works in the background.

Attachments (1)

0001-Removed-INBOX-check-inside-IMAP-protocol-s-GetFolder.patch (1.1 KB) - added by davewthompson 2 years ago.
Patch file to remove inbox

Download all attachments as: .zip

Change History (6)

comment:1 Changed 2 years ago by davewthompson

Been looking into the log files when running mail_daemon. It looks like the code *never* checks the INBOX, even though the E-mail preflet shows INBOX as one of the selected folders.

The IMAP client is not subscribed to the INBOX - this is the core issue here.

Last edited 2 years ago by davewthompson (previous) (diff)

comment:2 Changed 2 years ago by davewthompson

There's actually an interesting little bug here; the INBOX is always seen as being subscribed inside Protocol.cpp:167, but the E-mail Preflet won't set the INBOX as being subscribed because it 'sees' it as already subscribed - even though it isn't.

comment:3 Changed 2 years ago by davewthompson

This was tentitively fixed on my local workstation.

As per https://discuss.haiku-os.org/t/any-advice-to-start-working-on-mail-daemon/5415/17, the solution is to remove the "
entry.folder.ICompare("INBOX") == 0" condition from: https://cgit.haiku-os.org/haiku/tree/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Protocol.cpp#n170

Changed 2 years ago by davewthompson

Patch file to remove inbox

comment:4 Changed 2 years ago by davewthompson

Has a Patch: set

comment:5 Changed 2 years ago by axeld

Resolution: fixed
Status: newclosed

Thanks for the patch, applied in hrev50992.

Note: See TracTickets for help on using tickets.