Questions tagged [rfc822]

RFC822 is the historical original standard for the format of email messages.

RFC5322 (which supersedes 2822, which in turn superseded the original 822) defines the basic format of email messages. Its companion document RFC5321 documents the SMTP transport protocol.

These days, you also need to know about and the various internationalization features which have been added to the email infrastructure over the years.

The protocol is used for mail transport between servers; for mailbox access from clients, perhaps you need to look at and/or .

Resources:

See for more details on the Internet Engineering Task Force RFC (Request For Comments) documents and process.

128 questions
6
votes
1 answer

How do I elegantly print the %z (timezone) format in Perl on Windows?

An offshoot of How do I elegantly print the date in RFC822 format in Perl?, but Windows specific. On windows: C:\> perl -MPOSIX print strftime('%z', localtime()),"\n"; Yields: Central Daylight Time I was expecting: -0500 As anyone…
dlamotte
  • 6,145
  • 4
  • 31
  • 40
5
votes
1 answer

Encrypting Headers S/MIME message/rfc822

I am looking to encrypt certain mail headers (Subject and Reply-To) which are being sent in an encrypted mail. I am taking an entire MIME (Headers included) and successfully encrypting it. I can send this S/MIME encrypted mail to my mail client…
jeeves
  • 1,871
  • 9
  • 25
5
votes
5 answers

Is root@[127.1] a syntactically valid e-mail address?

Is root@[127.1] a syntactically valid e-mail address? Why? Why not?
knorv
  • 49,059
  • 74
  • 210
  • 294
5
votes
3 answers

Saxon XSLT 2.0 and RFC 822 date format

What is the right way to format xs:dateTime to RFC 822?
chardex
  • 323
  • 1
  • 5
  • 17
5
votes
2 answers

Forcing "+0000" timezone for RFC2822 times in Ruby

How can I force the Time.rfc2822 function to spit out +0000? Ruby lets me parse RFC2822 formatted times pretty easily: require 'time' time = Time.parse('14 Aug 2009 09:28:32 +0000') puts time => "2009-08-14 05:28:32 -0400" But what about displaying…
Bkkbrad
  • 3,087
  • 24
  • 30
5
votes
2 answers

Parsing e-mail-like headers (similar to RFC822)

Problem / Question There is a database of bot information that I would like to parse. It is said to be similar to RFC822 messages. Before I re-invent the wheel and write a parser of my own, I figured I would see if something else was already…
Brad
  • 159,648
  • 54
  • 349
  • 530
5
votes
1 answer

What are special characters in E-Mail-Headers and when to use quotes?

I'm trying to send and read e-mail using PHP. So far I found out that I have to encode special characters using the function mb_encode_mimeheader(), but I don't have to encode spaces. I also found out that brackets in address-field don't work: (Is…
R_User
  • 10,682
  • 25
  • 79
  • 120
4
votes
1 answer

Convert RFC 822 Date to TDateTime

Can anyone suggest a Delphi library that will covert a date string in the RFC 822 format to a TDateTime? e.g. 24 Oct 2011 13:54:55 -0000 I imagine this is something that you could easily get wrong due to slight variations in formats returned by…
Jamie
  • 3,150
  • 2
  • 26
  • 35
4
votes
2 answers

Any suggestions for how to format an RFC822 email as JSON?

I am wanting to insert RFC822 emails into a JSON database. I'm wanting to envisage a "good" way to structure the email as JSON (excluding attachments). Does anyone know of an example of a "good" JSON layout for an email, alternatively can anyone…
Duke Dougal
  • 24,359
  • 31
  • 91
  • 123
4
votes
1 answer

How to convert to / get RFC822 date in bash/linux?

Looking at date's man page, I couldn't find a standard way to convert to rfc822 (eg: from unix timestamp). I took a brief look at the spec, but I don't know enough about the subject matter to get the format right. Is there a easy way to convert to…
Robert C. Holland
  • 1,651
  • 4
  • 24
  • 57
4
votes
3 answers

How to copy a message from one imap server to another imap server using Python imaplib?

I want to copy a message from one IMAP server to another IMAP server. I don't want to alter any of the message data. I'm using python imaplib. This is the code I tried: typ, data = connection1.uid('FETCH', uid, 'RFC822') connection2.uid('APPEND',…
i.amniels
  • 1,781
  • 1
  • 25
  • 37
4
votes
1 answer

SMTP Priority Specification

This is not a matter of how to set the priority of an email, but rather a matter of why the values are what they are, and where those are specified. Pretty much every SMTP Library that I've seen states that there's 5 priorities: 1: Highest 2:…
Tyler Reed
  • 442
  • 3
  • 15
4
votes
2 answers

Re-assemble email messages encoded in 'message/partial' with Python

Is there a way to reassemble in Python email messages that are encoded with Content-Type: message/partial (i.e. section '7.3.2. The Message/Partial subtype' of RFC 1521)? In particular, given a set of emails, how can one merge them back into an…
Brian M. Hunt
  • 81,008
  • 74
  • 230
  • 343
4
votes
1 answer

Parsing an RFC822-Datetime in .NETMF 4.0

I have an application written in .NETMF that requires that I be able to parse an RFC822-Datetime. Normally, this would be easy, but NETMF does not have a DateTime.parse() method, nor does it have some sort of a pattern matching implementation, so…
chris12892
  • 1,634
  • 2
  • 18
  • 36
4
votes
2 answers

DateTime to RFC-1123 gives inaccurate timezone

If I get the RFC-1123 formatted date of a DateTime object, it gives the current local time, but gives the timezone as GMT (which is inaccurate). DateTime.Now.ToString("r"); returns Fri, 12 Feb 2010 16:23:03 GMT At 4:23 in the afternoon, but my…
Joel Rein
  • 3,608
  • 1
  • 26
  • 32
1
2
3
8 9