Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when parsing email without attachment info #26

Open
fabiokr opened this issue Nov 8, 2015 · 0 comments
Open

Error when parsing email without attachment info #26

fabiokr opened this issue Nov 8, 2015 · 0 comments
Labels

Comments

@fabiokr
Copy link

fabiokr commented Nov 8, 2015

I get this error when trying to parse an email without attachment info:

Example email: https://gist.github.com/fabiokr/13639921d958d3949cfb

** (exit) an exception was raised:
    ** (ArgumentError) argument error
        lib/mailman/parsing.ex:58: Mailman.Parsing.filename_from_raw/1
        lib/mailman/parsing.ex:74: Mailman.Parsing.is_raw_attachement/1
        (elixir) lib/enum.ex:704: anonymous fn/3 in Enum.filter/2
        (elixir) lib/enum.ex:1387: Enum."-reduce/3-lists^foldl/2-0-"/3
        (elixir) lib/enum.ex:704: Enum.filter/2
        lib/mailman/parsing.ex:89: Mailman.Parsing.get_attachments/1
        lib/mailman/parsing.ex:17: Mailman.Parsing.parse/1
        lib/mailman/parsing.ex:5: Mailman.Parsing.parse/1
        lib/mailman/parsing.ex:26: Mailman.Parsing.parse!/1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants