rfc5322

Set the Message-ID mail header in Rails3 / ActionMailer

佐手、 提交于 2020-01-20 21:45:30
问题 I would like to alter the Message-ID header that is in the header portion of an email sent from a Ruby on Rails v3 application using ActionMailer. I am using Sendmail on localhost for mail delivery. Do I configure this in Sendmail or ActionMailer? Where do I configure this (if it is ActionMailer): a file in config/ folder or a file in app/mailers/ folder? 回答1: Teddy's answer is good, except that if you actually want each message to have a different ID, you need to make the default a lambda.

How should Quoted-Printable Mime-Words be wrapped to the correct line length?

帅比萌擦擦* 提交于 2019-12-25 09:20:16
问题 I ran into a bug in a mime parsing library where it blows up on subject lines that contain foreign characters beyond a certain length. It turns out that it would convert the subject into a Quoted-Printable MIME "Encoded-Word" and then try to word-wrap the whole thing to 78 characters. Because MIME-Word encoding has no spaces (they are replaced with underscores) it failed to wrap. Example line being wrapped: Subject: =?UTF-8?Q?lalalla_=E7=84=A1=E6=AD=A4=E7=84=A1=E6=AD=A4=E9=A0=85=E7=9B=AE=AE

Email Id validation according to RFC5322 and https://en.wikipedia.org/wiki/Email_address

纵然是瞬间 提交于 2019-12-13 03:22:48
问题 Validating E-mail Ids according to RFC5322 and following https://en.wikipedia.org/wiki/Email_address Below is the sample code using java and a regular expression to validate E-mail Ids. public void checkValid() { List<String> emails = new ArrayList(); //Valid Email Ids emails.add("simple@example.com"); emails.add("very.common@example.com"); emails.add("disposable.style.email.with+symbol@example.com"); emails.add("other.email-with-hyphen@example.com"); emails.add("fully-qualified-domain

Does RFC 5322 allow reply-to header without any actual e-mail address? If so, what is its semantic?

六月ゝ 毕业季﹏ 提交于 2019-12-12 10:58:34
问题 Section 3.6.2 of RFC 5322 defines the reply-to header as: reply-to = "Reply-To:" address-list CRLF Where address-list is defined at section 3.4. When unfolding the ABNF grammar, I find that address-list can consist of nothing but phrase ":" ";" ( phrase being defined at section 3.2.5). So it boils down to you being able to add a reply-to header that does not contains any actual e-mail address. The RFC states: When the "Reply-To:" field is present, it indicates the address(es) to which the

Is there a “no-reply” email header?

只愿长相守 提交于 2019-12-09 15:08:23
问题 I often see automated emails postfixed with a message like Amazon: *Please note: this e-mail was sent from an address that cannot accept incoming e-mail. Please use the link above if you need to contact us again about this same issue. Twitter: Please do not reply to this message; it was sent from an unmonitored email address. This message is a service email related to your use of Twitter. Google Checkout: Need help? Visit the Google Checkout help center. Please do not reply to this message.

Is there a “no-reply” email header?

帅比萌擦擦* 提交于 2019-12-04 01:38:33
I often see automated emails postfixed with a message like Amazon: *Please note: this e-mail was sent from an address that cannot accept incoming e-mail. Please use the link above if you need to contact us again about this same issue. Twitter: Please do not reply to this message; it was sent from an unmonitored email address. This message is a service email related to your use of Twitter. Google Checkout: Need help? Visit the Google Checkout help center. Please do not reply to this message. Directly underneath this warning, Gmail shows me a reply input field. It seems to me that there should

Is the “Message ID” Email Header unique for each recipient?

对着背影说爱祢 提交于 2019-12-03 04:43:33
问题 How unique is the Message ID header of an email? If I address an email to two people, will the both have the same Message ID? Or will they be different? (This is assuming nobody's doing any funny business. I know that with spam, all the rules go out the window...) 回答1: According to RFC2822 - Internet Message Format, the short answer is that the " Message ID should be unique for each instance of the message "; however, the MESSAGE-ID field is considered optional and how the MESSAGE-ID field is

Is the “Message ID” Email Header unique for each recipient?

亡梦爱人 提交于 2019-12-02 17:53:27
How unique is the Message ID header of an email? If I address an email to two people, will the both have the same Message ID? Or will they be different? (This is assuming nobody's doing any funny business. I know that with spam, all the rules go out the window...) Robert Cartaino According to RFC2822 - Internet Message Format , the short answer is that the " Message ID should be unique for each instance of the message "; however, the MESSAGE-ID field is considered optional and how the MESSAGE-ID field is created is up to the server. Quoted below: The "Message-ID:" field provides a unique

Set the Message-ID mail header in Rails3 / ActionMailer

流过昼夜 提交于 2019-11-30 06:47:40
I would like to alter the Message-ID header that is in the header portion of an email sent from a Ruby on Rails v3 application using ActionMailer. I am using Sendmail on localhost for mail delivery. Do I configure this in Sendmail or ActionMailer? Where do I configure this (if it is ActionMailer): a file in config/ folder or a file in app/mailers/ folder? Teddy's answer is good, except that if you actually want each message to have a different ID, you need to make the default a lambda. In the first block of code in his answer, it calculates the message-ID once, at init, and uses the same one

Are international characters (e.g. umlaut characters) valid in the local part of email addresses?

蹲街弑〆低调 提交于 2019-11-28 19:38:09
Are german umlauts (ä, ö, ü) and the sz-character (ß) valid in the local part of an email-address? For example take this email-address: björn.nußbaum@trouble.org RFC 5322 quite clearly says, that umlauts (and other international characters) aren't allowed. If I take a look at chapter 3.4.1 , there's the following regarding the local part: local-part = dot-atom / quoted-string / obs-local-part So what means dot-atom ? It's described in chapter 3.2.3 : Well, long story short: Printable US-ASCII characters not including specials So in the whole RFC 5322 I can't see anything regarding