FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Invalid email headers
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Invalid email headers [message #188153 is a reply to message #188149] Sun, 18 July 2021 16:37 Go to previous messageGo to previous message
omiak is currently offline  omiak
Messages: 4
Registered: July 2021
Karma:
Junior Member
Hello naudefj,

You are right about the proposed preg_replace, slashes were missing.

But I beleive the original code to be wrong about the Return-Path and Errors-To headers.


1) The Return-Path header should consist of an angle-address only, and not « name + angle-address » as in From header.

<https //datatracker.ietf.org/doc/html/rfc2822#section-3.6.7>
§
return = "Return-Path:" path CRLF

path = ([CFWS] "<" ([CFWS] / addr-spec) ">" [CFWS]) /
obs-path
§


2) The Errors-To header is non standard and discouraged, it shouldn't be set at all.

<https //datatracker.ietf.org/doc/html/rfc2076.txt#section-3.5>
§
Address to which notifications Errors-To:, Non-standard,
are to be sent and a request to Return- discouraged.
get delivery notifications. Receipt-To:
Internet standards recommend,
however, the use of RCPT TO and
Return-Path, not Errors-To, for
where delivery notifications are
to be sent.
§
(oups, it is unreadable, even with font=Courier... read the original RFC instead)


Regards,
Olivier Miakinen
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FUDforum only tor-onion hosting
Next Topic: Unlocking then locking files results in wrong permissions
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 12:11:03 GMT 2024

Total time taken to generate the page: 0.04731 seconds