Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Email processing.

Talk:Email processing: Difference between revisions

From MoodleDocs
(references)
 
(base64 encoding and MTA case-sensitivity)
Line 1: Line 1:
== References ==
== References ==
*[http://moodle.org/mod/wiki/view.php?id=2935&page=Email+Processing+setup Developer wiki: Email processing] -- [[User:Helen|Helen]] 16 December 2005 20:50 (WST)
*[http://moodle.org/mod/wiki/view.php?id=2935&page=Email+Processing+setup Developer wiki: Email processing] -- [[User:Helen|Helen]] 16 December 2005 20:50 (WST)
== base64 encoding and MTA case-sensitivity ==
This is a great feature!
However, I'm running into a problem with it - the MTA (postfix) on our server downcases the username+extension part of the email address.  From searching on the internet, I see that this is a pretty common, and even recommended practice for MTAs.  This means that replys to emails that go out with a reply to address of, for example: mdl+Bgbk-146913874a6e0fa08c@moodle.domain.ch are received by process_email.php with an $address of mdl+bgbk-146913874a6e0fa08c@moodle.domain.ch.  This change of Bg to bg means that the hash doesn't match, and that the module id can not be identified.
Wouldn't it be easier to create email_pack_encode() and email_unpack_decode() functions that do basically the same thing as the base64 encoding/decoding and pack/unpack functions currently being used - with the difference that they don't use any uppercase letters, than to require people to reconfigure their mail servers (which is not always the easiest thing to do!)?

Revision as of 17:41, 19 February 2006

References

base64 encoding and MTA case-sensitivity

This is a great feature!

However, I'm running into a problem with it - the MTA (postfix) on our server downcases the username+extension part of the email address. From searching on the internet, I see that this is a pretty common, and even recommended practice for MTAs. This means that replys to emails that go out with a reply to address of, for example: mdl+Bgbk-146913874a6e0fa08c@moodle.domain.ch are received by process_email.php with an $address of mdl+bgbk-146913874a6e0fa08c@moodle.domain.ch. This change of Bg to bg means that the hash doesn't match, and that the module id can not be identified.

Wouldn't it be easier to create email_pack_encode() and email_unpack_decode() functions that do basically the same thing as the base64 encoding/decoding and pack/unpack functions currently being used - with the difference that they don't use any uppercase letters, than to require people to reconfigure their mail servers (which is not always the easiest thing to do!)?