Questions tagged [rfc822]

0

votes
0

answer
18

Views

how to validate all the edu domain

I tried to validate in the mail the domain edu and all the subdomains, but it does not recognize the subdomains the regex does not recognize me after the edu Pattern p_correo1 = Pattern.compile('^[a-zA-Z]\\.[a-zA-Z]\\.(?:2019|20[2-9][0-9]|2[1-9][0-9]{2}|[3-9][0-9]{3})@([0-9]|[a-z]|[A-Z])+\\.edu\\.?[...
ives rodriguez
1

votes
0

answer
157

Views

Python email library - Parsing message/rfc822 attachments

I'm using python 2.7 and trying to parse emails that are being forwarded as an attachment to an inbox. I can't seem to parse the headers/email of the attached message. I see it as 'message/rfc822' but when i try to parse it, it shows empty. I pull the messages via a generator and it works fine, as...
callingconvention
1

votes
0

answer
9

Views

rfc822 curly brace / gmail in Dsync

I am now using Dsync, an ipaas. I want to send a message with gmail from another source(JIRA). Since Dsync supplies auto curly braces in body, I cannot follow the rfc822 format just like below. From: example To: exampleto subject: subject example this is plain body. no need attachment function. in...
Taewon Lee
1

votes
0

answer
20

Views

RFC 7578 and white‑spaces and atoms

I’m stuck with seemingly implicitly allowed white‑spaces in RFC 7578 and RFCs it refers to, while it seems when such white‑spaces are allowed, it should be stated explicitly. I also have another hard time with what I see as an ambiguity, as a consequence of this same white‑space story too. R...
Hibou57
1

votes
1

answer
1.6k

Views

Notes Formula Language “@ValidateInternetAddress” Failing to Validate Properly?

We are using the following validation code to check for a valid email address formatting on a web form driving by Lotus Notes: @If((@ValidateInternetAddress([Address821]; @ThisValue)!='' | @Contains(@ThisValue; '\'') | @Contains(@ThisValue; ''') | @Contains(@ThisValue; ' ')); 'Please include a va...
amy_e_carrigan
1

votes
1

answer
95

Views

Is the @ symbol required for an email address for it to be considered RFC compliant?

My javascript code I found lets through email addresses that dont have an @ symbol in the string, is that ok or is that bad?
Hard worker
1

votes
1

answer
836

Views

Why do RECEIVED email headers seem to be out of order chronologically?

When reviewing the headers, it appears that the 2nd server to receive the message didn't relay it until AFTER the reported delivery date in the final header. At c9mailgw11.amadis.com, the reported time was 22:47:49 -0800 (PST). However, the final server, BY2PR0401MB0966.namprd04.prod.outlook.com, re...
adamYWA
1

votes
2

answer
395

Views

JS convert string to rfc822

I am trying the gmail apis. I've done the auth. Now I want to create a draft. But I am getting this error { error: I20161220-15:53:43.486(4)? { errors: [Object], I20161220-15:53:43.487(4)? code: 400, I20161220-15:53:43.488(4)? message: 'Media type \'application/octet-stream\'...
Hayk Safaryan
1

votes
1

answer
0

Views

How can I parse raw email source and extract the HTML part?

In my iPhone app, I'm handed the raw source of an email, in RFC822 (or 'eml') format. I'd like the HTML part of this message (if one exists). Rather than attempting to parse it out myself and converting escape chars and so on, I thought I'd check to see if anyone knows of an objective-c library to d...
Matt Brindley
1

votes
1

answer
0

Views

How to do unfolding RFC 822

I am trying to write a vCard Parser and am having trouble unfolding lines. As you can see here: http://www.faqs.org/rfcs/rfc822.html look for 'unfolding' it says that all the following are valid: Long string continue Long string (n*)continue Long string continue Long string (n*)continue How do I unf...
Thomaschaaf
1

votes
2

answer
658

Views

How to stop HTTP (and rfc822, email) header injection?

(I am asking this question (and answering it), to make accessible some (hopefully useful) information, since I could not find this readily using search engines. However, feel free to answer it and add useful information :-).) How can HTTP headers be escaped/quoted in Python? And/Or how can they be v...
Abbafei
1

votes
1

answer
48

Views

Angular: should this be an invalid email address?

I checked with online email validators and they claim it's incorrect format. But in angular and html5 'email' input field, it seems to be accepted: [email protected] Should our website allow a user with such an email address to create an account (where there is a trailing-period after the user handl...
ngDeveloper
1

votes
3

answer
319

Views

RFC822 email - Formatter - Android/iOS - create MimeMessage without session or host

I have the following email: Subject = Hello! Body = Bla bla bla bla. Recipients = '[email protected]', '[email protected]' Now I want to parse that fields following RFC822, but I can't find it. What I need? All fields(Subject,Body,Recipients) -> Formatter(java and/or objective-c) -> String according RC822...
Ricardo
1

votes
1

answer
103

Views

Does RFC 5988 allow whitespace in the HTTP Link header?

Section 5 of RFC 5988 defines the syntax of the Link header as follows: Link = 'Link' ':' #link-value link-value = '' *( ';' link-param ) This specification uses augmented Backus-Naur Form (BNF) as defined in RFC 822. If understand BNF correctly, the specification does not permit white...
Ceasar Bautista
1

votes
3

answer
1.8k

Views

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', None, data[0][1]) But this raises an exception: imapl...
i.amniels
1

votes
2

answer
1.3k

Views

How to decorate (monkeypatch…) a Python class with methods from another class?

Both httplib.HTTPMessage and email.message.Message classes[1] implements methods for RFC822 headers parsing. Unfortunately, they have different implementations[2] and they do not provide the same level of functionality. One example that is bugging me is that: httplib.HTTPMessage is missing the get_f...
Georges Martin
1

votes
1

answer
499

Views

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 rfc822 with standard linux terminal tools?
Robert C. Holland
1

votes
2

answer
722

Views

How to send an RFC822 file in c#

I'm trying to convert some Python code for use in a .Net website. The code retrieves a message stored in RFC822 format and sends the message to an SMTP server again using: mail from: blah blah rcpt to: blah blah data . So no parsing of the RFC822 file is required (fortunately!). In Python this is si...
John Rennie
16

votes
3

answer
17.6k

Views

Why does email need an envelope, and what does the “envelope” mean?

What is the exact difference between the envelope and the email in smtp? Why does the protocol need the envelope? In snail mail, the letter needs not contain addresses and is not visible to the postman (at least that's what you want to believe), so all the routing is made entirely based on the envel...
flybywire
18

votes
4

answer
10k

Views

How do I elegantly print the date in RFC822 format in Perl?

How can I elegantly print the date in RFC822 format in Perl?
Tom Feiner
21

votes
3

answer
8.7k

Views

Is there a difference between MIME and content type?

While using the f12 tools on ie, when I request a web page, the response header has a content type. Can this also be called MIME type? Or is there a difference?
developer747
2

votes
2

answer
1.6k

Views

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 available. I stumbled across imap_rfc822_parse_headers()...
Brad
5

votes
5

answer
1.5k

Views
2

votes
0

answer
79

Views

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 3.6. in both, they read: 'The only required header...
craigyurt
3

votes
1

answer
480

Views

Sort XML by RFC-822 date format using XSL

Does anyone know of a way to do this kind of sorting in XSL? Here's what I have so far but it only sorts by day and ignores the rest of the date.
AdamRox
2

votes
0

answer
275

Views

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, emailAddresses.toArray(new String[0])); LightMimeEntity lightMimeEntity =...
Tom Macdonald
2

votes
1

answer
2.5k

Views

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 mailbox and report on the number of addresses that...
Chris Burgess
2

votes
1

answer
1.5k

Views

Convert RFC 822 timestamp to unixtime, timezone values not working , C/C++

I've a function which converts an RFC 822 timestamp to unixtime #include #include int main() { struct tm tm; time_t unixtime; strptime('Sun, 20 Feb 2011 10:28:02 +0800','%a, %e %h %Y %H:%M:%S %z',&tm); unixtime = mktime(&tm); printf('%d\n',unixtime); return 0; } Problem: The timezone part (%z) doe...
Nands
2

votes
1

answer
4.4k

Views

Perl MIME::Parser and encoding in nested bodys (message/rfc_822)

arghhh, it's not easy. I'm trying to parse some mails with perl. Let's take an example: From: [email protected] Content-Type: multipart/mixed; boundary='----_=_NextPart_001_01CBE273.65A0E7AA' To: [email protected] This is a multi-part message in MIME format. ------_=_NextPart_001_01CBE273.65A0E7AA Content-Type: m...
rabudde
2

votes
1

answer
2.6k

Views

What is the difference between an `eml` file and an RFC822 email message?

I see these two terms used interchangeably in a lot of context, but some sources say that eml is a file format that originated with Microsoft Outlook. Is eml the official file suffix of an RFC822 message saved as a flat text file?
dan
3

votes
1

answer
1.6k

Views

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 servers, so a tried and tested routine would be good. C...
Jamie
7

votes
6

answer
11.9k

Views

RFC822 Timezone Parsing in Java

I have a JS date that is being converted by Dojo into RFC822 format. The function call - dojo.date.toRfc3339(jsDate), generates the following date - 2007-02-26T20:15:00+02:00. I have an application that uses a Java date SimpleDateFormat to parse in the dates generated above. I am having problems p...
Jamen
31

votes
2

answer
44.6k

Views

How can I get an email message's text content using Python?

Given an RFC822 message in Python 2.6, how can I get the right text/plain content part? Basically, the algorithm I want is this: message = email.message_from_string(raw_message) if has_mime_part(message, 'text/plain'): mime_part = get_mime_part(message, 'text/plain') text_content = decode_mime_part...
Chris R
1

votes
2

answer
2.9k

Views

RSS feed warns about PHP's DATE_RFC822 year representation not being four digits long

I'm creating a RSS feed with PHP and I set the date using PHP's build in DATE_RFC822 format: ' . date(DATE_RFC822, strtotime($posts['date'])) . ' Which results in this: Tue, 01 Oct 13 10:10:00 +0200 When I now try to validate it, it passes, but with the following recommendation: Problematical RFC 82...
lampshade
2

votes
1

answer
386

Views

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 HH:mm:ss']; [_GMTDateFormatter setTimeZone:[NSTimeZone timeZoneForSe...
yellow
4

votes
2

answer
2.1k

Views

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 times? Notice that the time it parsed is a local t...
Bkkbrad
36

votes
6

answer
36.7k

Views

How do I parse and convert DateTime’s to the RFC 822 date-time format?

How do I convert a DateTime structure to its equivalent RFC 822 date-time formatted string representation and parse this string representation back to a DateTime structure in .NET? The RFC-822 date-time format is used in a number of specifications such as the RSS Syndication Format.
Oppositional
2

votes
1

answer
556

Views

How do you extract multiple email addresses from an RFC 2822 mail header in python?

Python's email module is great for parsing headers. However, the To: header can have multiple recipients, and there may be multiple To: headers. So how do I split out each of the email addresses? I can't split on the comma, since the comma can be quoted. Is there a way to do this? Demo code: msg='...
vy32
7

votes
2

answer
7k

Views

Elegant way to serialize a MailMessage object in .NET

I'm currently looking at serializing a MailMessage object in C# and although there are a couple of variations of an example on the net, they serialize to binary which kind of misses the point IMO. My approach is that I'd like to serialize a MailMessage to an RFC2822 eml string and the code below is...
PaulV
2

votes
1

answer
1k

Views

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 guide me as to how to figure this out? Thanks in a...
Chetan

View additional questions