Opened 8 years ago

Closed 8 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:
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 8 years ago.
Patch file to remove inbox

Download all attachments as: .zip

Change History (6)

comment:1 by davewthompson, 8 years ago

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 8 years ago by davewthompson (previous) (diff)

comment:2 by davewthompson, 8 years ago

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 by davewthompson, 8 years ago

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

by davewthompson, 8 years ago

Patch file to remove inbox

comment:4 by davewthompson, 8 years ago

patch: 01

comment:5 by axeld, 8 years ago

Resolution: fixed
Status: newclosed

Thanks for the patch, applied in hrev50992.

Note: See TracTickets for help on using tickets.