Skip to content

Mail 2.7.0 NameError: uninitialized constant Mail::PhraseListsElement #1238

@gc-olivierho

Description

@gc-olivierho

Hi,
When running some code (Redmine mail reception, after modifying the mail dependency to 2.7.0 instead of 2.6.4), I got the following error:

NameError: uninitialized constant Mail::PhraseListsElement
/usr/local/bundle/gems/mail-2.7.0/lib/mail/parsers/phrase_lists_parser.rb:885:in `parse'
/usr/local/bundle/gems/mail-2.7.0/lib/mail/elements/phrase_list.rb:11:in `initialize'
/usr/local/bundle/gems/mail-2.7.0/lib/mail/fields/keywords_field.rb:24:in `new'
/usr/local/bundle/gems/mail-2.7.0/lib/mail/fields/keywords_field.rb:24:in `phrase_list'
/usr/local/bundle/gems/mail-2.7.0/lib/mail/fields/keywords_field.rb:28:in `keywords'
/usr/local/bundle/gems/mail-2.7.0/lib/mail/fields/keywords_field.rb:32:in `encoded'
/usr/local/bundle/gems/mail-2.7.0/lib/mail/field.rb:237:in `method_missing'
/usr/local/bundle/gems/mail-2.7.0/lib/mail/header.rb:213:in `block in encoded'
/usr/local/bundle/gems/mail-2.7.0/lib/mail/header.rb:212:in `each'
/usr/local/bundle/gems/mail-2.7.0/lib/mail/header.rb:212:in `encoded'
/usr/local/bundle/gems/mail-2.7.0/lib/mail/message.rb:1831:in `encoded'

Note that this is fixed in the current trunk version (in November 2017), but 2.7.0 is still the latest available release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions