Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Add INBOX prefix to all folders while using OVH #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/larch/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ def mailbox(name, delim = '/')
#Rackspace namespaces everything under INDEX.
name.sub!(/^|inbox\./i, "INBOX.") if @quirks[:rackspace] && name != 'INBOX'

#OVH namespaces everything under INDEX.
name.sub!(/^|inbox\./i, "INBOX.") if @quirks[:ovh] && name != 'INBOX'

begin
@mailboxes.fetch(name) do
update_mailboxes
Expand Down Expand Up @@ -271,6 +274,10 @@ def check_quirks
elsif host =~ /emailsrvr\.com/
@quirks[:rackspace] = true
debug "looks like Rackspace Mail"

elsif host =~ /ovh\.net/
@quirks[:ovh] = true
debug "looks like OVH"
end
end

Expand Down