Guest User

Untitled

a guest
Dec 5th, 2017
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import { Email } from "./Email";
  2. import * as imap from './mailImap';
  3.  
  4.  
  5. export interface EmailConfig{
  6. auth: {
  7. user: string;
  8. pass: string;
  9. }
  10. imapHost: string;
  11. imapPort: number;
  12. }
  13.  
  14. export function getEmailBySubjectLast(
  15. subject: string,
  16. emailConfig: EmailConfig
  17. ): Promise<Email> {
  18. return imap.getEmailBySubjectLast(subject, emailConfig);
  19. }
Add Comment
Please, Sign In to add comment