Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Replying to OSM user via email does not work reliably #4120

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Replying to OSM user via email does not work reliably #4120

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: woodpeck
[Submitted to the original trac issue database at 6.30pm, Thursday, 1st December 2011]

I received an user-to-user message from an OSM user this morning and replied to it using my normal E-Mail client.

This resulted in the following error message (user id replaced by xxx yyy):

A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. 
The following address(es) failed:

    m-xxxxxx-yyyyyy[at]messages.openstreetmap.org     local delivery failed 

The following text was generated during the delivery attempt:  

------ m-xxxxxx-yyyyy[at]messages.openstreetmap.org ------  

/var/lib/gems/1.8/gems/activesupport-3.1.3/lib/active_support/whiny_nil.rb:48:in `method_missing': 
undefined method `decoded' for nil:NilClass (NoMethodError)
 	from /srv/www.openstreetmap.org/rails/script/deliver-message:27 

The mail that I sent was Content-Type: text/plain; charset=UTF-8; format=flowed. Looking at the code line mentioned above, is it possible that the code only works with multipart messages? I found a discussion on StackOverflow in which someone recommends using something like

plain_part = message.multipart? ? (message.text_part ? message.text_part.body.decoded : nil) : message.body.decoded 
@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 8.46am, Friday, 2nd December 2011]

Fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant