Select mailbox “sent mail” or “all mail” in Ruby Net::IMAP

后端 未结 4 1220
温柔的废话
温柔的废话 2020-12-28 17:47

I\'m trying to use Net::IMAP in Ruby to search all mail sent by me, but I\'m having trouble selecting anything other than INBOX.

imap.select(\'INBOX\')
         


        
4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-28 17:56

    I found the following to be helpful (ruby 2.0.0-p195)

    # list all folders
    imap.list '', '%'
    

提交回复
热议问题