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
2
votes
3 answers

How do I generate long valid email address?

What I mean: $ php -r 'var_dump(filter_var(str_repeat("a", 64) . "@gmail.com", FILTER_VALIDATE_EMAIL));' Command line code:1: string(74) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@gmail.com" $ php -r…
x-yuri
  • 16,722
  • 15
  • 114
  • 161
2
votes
2 answers

How to convert Date/Time from Long(millisecodns) to RFC-822 format in Java

I have time in milliseconds I need to convert it to RFC-822 format. Is there generic Java library that can I use? What is the best practice of doing it? Example time in milliseconds: 1440612000000 Time in RFC-822: Wed, 02 Oct 2002 08:00:00…
Renat Gatin
  • 6,053
  • 5
  • 37
  • 58
2
votes
1 answer

Can an email header have different character encoding than the body of the email?

Is an email with different character encoding for it's header and body valid? The Use Case: While processing an email, should I check for the character encoding of it's header separately, or will checking that of it's body be sufficient? Can someone…
Chetan
  • 1,724
  • 2
  • 14
  • 18
2
votes
1 answer

How to get the recipient address of an email via IMAP in Ruby

We have a user whose mail account is deluged with spam. I'm suspecting that he fields a large number of email accounts and therefore is subject to more than he might be with only one or two addresses. I want to knock up some code which will scan his…
Chris Burgess
  • 3,551
  • 3
  • 29
  • 42
2
votes
2 answers

How do I convert a mySQL timestamp into RFC-822 using Perl?

I have data stored in a mySQL table under the column type "timestamp" that I would like to output as an RFC-822 compliant date, for inclusion in a valid RSS feed. I know how I could simply output the current time as an RFC-822 object using perl,…
WinnPh
  • 91
  • 1
  • 5
2
votes
0 answers

Send Multipart message with android

I have a rfc822 message I have created in Android. I need to send it via email to the specified recipients: Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("message/rfc822"); intent.putExtra(Intent.EXTRA_EMAIL,…
Tom Macdonald
  • 6,433
  • 7
  • 39
  • 59
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
1 answer

Parse MIME sender in Java (RFC 822)

MIME message senders appear in formats such as: "John Doe" I'm trying to figure out how to extract the string "johndoe@gmail.com" in the above examples, although I will also need the "johndoe" and "gmail.com"…
djechlin
  • 59,258
  • 35
  • 162
  • 290
2
votes
1 answer

How to parsing NSDate to RFC 822 always use in English?

I need to PUT a RESTful to server. the Date must use like Sat, 19 Jan 2013 04:09:58 GMT. in objc I wrote this: NSDateFormatter* _GMTDateFormatter = [[NSDateFormatter alloc] init]; [_GMTDateFormatter setDateFormat:@"EEE, dd MMM yyyy…
yellow
  • 702
  • 1
  • 10
  • 24
1
vote
1 answer

Strip e-mail addresses from a string in PHP

I operate an archive of e-mail for a law firm that receives mail from Postfix and uses a PHP script to insert messages into a database. This works mostly fine but sometimes the regular expression I use to parse e-mail addresses from the From, To,…
1
vote
3 answers

Stumped on C# DateTime ToString() formatting problem

I am getting some junk data returned from a ToString() call on a DateTime object in C# and I'm afraid I'm stumped after poking around with it for a while. The function is supposed to format dates to be compliant with RFC 822 (as required by the RSS…
Dana
  • 32,083
  • 17
  • 62
  • 73
1
vote
0 answers

RFC822 Date format in Golang

Why Golang time format (RFC-822 in this case) is different from the one described in the RFC? In time package RFC822 const value is defined as: RFC822 = "02 Jan 06 15:04 MST" 11 Nov 09 00:00 CET But regarding to RFC-822 or w3.org Validator date…
parasit
  • 486
  • 1
  • 4
  • 10
1
vote
1 answer

I added In-Reply-To and References in my headers while sending Email through SendGrid, however it doesn't work

So I am sending an email reply through SendGrid and I have a message object something like this: message = { "personalizations": context["personalizations"], "from": {"email": context["sender_email"]}, "subject":…
Ahmad
  • 15
  • 5
1
vote
0 answers

Why is a TLD as domain accepted under RFC 822/Apache-commons validations?

According to the Apache docs, their email validation respects the RFC 822 specification. EmailValidator provides email address validation according to RFC 822 standards. source However when running some tests locally I found that some TLD's are…
Edito
  • 3,030
  • 13
  • 35
  • 67
1
vote
0 answers

yahoo mail error 550, b'Request failed; Mailbox unavailable'

So this code works for gmail, when i tried it on yahoo mail i get this error, (550, b'Request failed; Mailbox unavailable') mail = imaplib.IMAP4_SSL(imap_server) mail.login(emaill, pwd) # select the label to work on print('selecting inbox…
user15317824
  • 370
  • 6
  • 15
1 2 3
8 9