Questions tagged [rfc2822]

Standard syntax for text messages sent between computer users, within the framework of "electronic mail" messages.

This RFC replaces RFC822 and has been deprecated in favor of RFC5322.

It should be noted that this standard only specifies a syntax for text messages and does not cover the exchange of multimedia in emails (this being covered by MIME documents [RFC2045, RFC2046, RFC2049]).

It should also be noted that, while emails consist of both an envelop and the content, this RFC does not cover the envelop (see [RFC2821] for discussion on the envelop).

References: http://tools.ietf.org/html/rfc2822

63 questions
2
votes
0 answers

Reasoning behind change in destination address requirement from RFC 822 to RFC 2822

In RFC 822 a destination address was required to appear in the headers, section C.3.4. reads "A message must contain at least one destination address field. 'To' and 'CC' are required to contain at least one address." In RFCs 2822 and 5322, section…
craigyurt
  • 21
  • 3
2
votes
2 answers

RegEx compiled with RFC 2822, 3.6.2

I am having a problem with SwiftMailer rejecting e-mails containing dots either in the beginning or ending of the address (similarly to multiple dots inside). I would like to make my app noticing about such issues. What should be the regular…
1
vote
1 answer

How to properly parse email received headers?

What is the right way to parse the received headers of a .eml file, in order to extract all the hops' information? In particular I need to extract the following information: Sender URL Sender IP Receiver URL Receiver IP Date Protocol I found the…
1Z10
  • 2,801
  • 7
  • 33
  • 82
1
vote
1 answer

Why is my RFC 2822 date not parsed by chrono?

I'm writing some code to parse RSS feeds but I have trouble with the Abstruse Goose RSS feed. If you look in that feed, dates are encoded as Mon, 06 Aug 2018 00:00:00 UTC. To me, it looks like RFC 2822. I tried to parse it using chrono's…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
1
vote
1 answer

Invalid header value detected: imap mail reception with header having utf-8 french accents

I'm working on a project with Zend Framework 2.4.13, and I have to retrieve mails from an imap mailbox. For this purpose I use \Zend\Mail\Storage\Imap: foreach ($this->imap as $index => $message) { // ... } It's working well, except for a…
yolenoyer
  • 8,797
  • 2
  • 27
  • 61
1
vote
2 answers

Email headers: Allowed/disallowed characters in FROM header: (display) name

I'm trying to find an answer to the question about which characters is allowed (or disallowed) in the FROM header (display) name.. "My Display Name" I'm talking about the My Display Name in quotations. I've looked at…
Emil Devantie Brockdorff
  • 4,724
  • 12
  • 59
  • 76
1
vote
1 answer

RFC 2822 format - does it include attachments

Some background - I am trying to use the Gmail rest API to send an email with curl/libcurl. I am able to send a regular plain text email, but I am struggling to make sense of the API docs regarding attachments. The API requires the email message to…
Phil Rosenberg
  • 1,597
  • 1
  • 14
  • 22
1
vote
1 answer

fparsec rfc2822 parsing multiple header lines

I'm trying to parse RFC 2822 using fparsec but I'm unable to deal with the headers with multiple lines: (it gets confused with the next header): here's my best try: do you have any tips? let str (s:string) = pstring s let stringLiteral = …
Koenig Lear
  • 2,366
  • 1
  • 14
  • 29
1
vote
0 answers

date -R in El Capitan

I'm trying to include a date flag "date -R" in a bash script to use RFC 2822 and the script works fine in macOS 10.12 but not in Mac OS X 10.11. I get an illegal option. I checked the man pages for date and the date -R flag seems to be available in…
1
vote
1 answer

In RFC2822, what is the difference between a `mailbox-list` and a `address-list`?

RFC2822 defines the following Address Specification types: address = mailbox / group mailbox = name-addr / addr-spec name-addr = [display-name] angle-addr angle-addr = [CFWS] "<" addr-spec ">"…
vy32
  • 28,461
  • 37
  • 122
  • 246
1
vote
1 answer

BCC Field in Email Implementation

Recently we are creating an application for interpreting email contents, this application shall give us the TO addresses, CC addresses and BCC addresses. When handling BCC field, we found it seems not able to get BCC addresses directly. Referring to…
Wallace
  • 561
  • 2
  • 21
  • 54
1
vote
3 answers

Compare date with current date in python

How do I compare a datetime object of this format "Thu, 15 Jan 2015 06:35:37 GMT" with the current time ?
Shan
  • 39
  • 3
1
vote
1 answer

Does DKIM header canonicalization insert a space after each comma in the To: header?

Using Zend Framework 1.12, PHP 5.3.1. Specifying multiple mail recipients to Zend_Mail and using Smtp transport, the "To:" header contains a list of recipients separated by commas. E.g. To: a@example.com,b@example.com This appears to be correct…
sootsnoot
  • 2,178
  • 3
  • 22
  • 27
0
votes
0 answers

RFC FORMAT 2822 Copy and BCC emails can't see the original message when I reply, they can only see the reply, how can I make them see the original msg

I am trying to reply an email on the original message ID through the gmail API by converting the request body message in RFC 2822 format to base64, the original sender can see the reply along with the original message, but when I copy it to other…
0
votes
0 answers

Is it possible to add the customer's name to the email headers in WooCommerce?

WooCommerce does not include the customer's name in the To: field of the headers when sending out emails. I'm trying to add them myself with the WooCommerce email recipient filters, but I'm running into a bit of a roadblock. The code is being…