Skip to content

Instantly share code, notes, and snippets.

@baudehlo
Created February 7, 2014 19:58
Show Gist options
  • Save baudehlo/8870576 to your computer and use it in GitHub Desktop.
Save baudehlo/8870576 to your computer and use it in GitHub Desktop.
> var a = require('./address');
undefined
> var r = require('./rfc1869');
undefined
> var l = r.parse('lmtp', '<cpuser@laptop-workstation> Vd8eLmkY9VIpHQAAPRt7ew Saved');
undefined
> l
[ '<cpuser@laptop-workstation>',
'Vd8eLmkY9VIpHQAAPRt7ew',
'Saved' ]
> var parsed = new a.Address(l[0]);
undefined
> parsed
{ original: '<cpuser@laptop-workstation>',
user: 'cpuser',
host: 'laptop-workstation' }
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment