Artifact
6cb9de32a056e80df43e88f832c654ef25da11325540f609578253522be45ed2:
0000: 2f 2f 21 20 53 4d 54 50 2d 74 6f 2d 54 65 6c 65 //! SMTP-to-Tele
0010: 67 72 61 6d 20 67 61 74 65 77 61 79 20 6d 61 69 gram gateway mai
0020: 6e 20 6c 69 62 72 61 72 79 2e 0a 2f 2f 21 0a 2f n library..//!./
0030: 2f 21 20 54 68 69 73 20 6c 69 62 20 70 72 6f 76 /! This lib prov
0040: 69 64 65 73 20 74 68 65 20 63 6f 72 65 20 66 75 ides the core fu
0050: 6e 63 74 69 6f 6e 61 6c 69 74 79 20 66 6f 72 20 nctionality for
0060: 72 65 63 65 69 76 69 6e 67 20 65 6d 61 69 6c 73 receiving emails
0070: 20 76 69 61 20 53 4d 54 50 0a 2f 2f 21 20 61 6e via SMTP.//! an
0080: 64 20 66 6f 72 77 61 72 64 69 6e 67 20 74 68 65 d forwarding the
0090: 6d 20 74 6f 20 54 65 6c 65 67 72 61 6d 20 63 68 m to Telegram ch
00a0: 61 74 73 2e 0a 2f 2f 21 0a 2f 2f 21 20 41 73 20 ats..//!.//! As
00b0: 77 65 20 61 72 65 20 6e 6f 74 20 61 63 74 75 61 we are not actua
00c0: 6c 6c 79 20 65 78 70 6f 72 74 69 6e 67 20 74 68 lly exporting th
00d0: 69 73 20 6c 69 62 20 74 68 65 72 65 20 77 6f 75 is lib there wou
00e0: 6c 64 20 62 65 20 6e 6f 20 6c 6f 63 61 6c 20 45 ld be no local E
00f0: 72 72 6f 72 27 73 0a 2f 2f 21 20 66 6f 72 20 6e rror's.//! for n
0100: 6f 77 2c 20 65 76 65 72 79 74 68 69 6e 67 20 77 ow, everything w
0110: 69 6c 6c 20 62 65 20 6a 75 73 74 20 2e 73 74 61 ill be just .sta
0120: 63 6b 28 29 3f 27 65 64 20 61 6e 64 20 70 72 6f ck()?'ed and pro
0130: 70 61 67 61 74 65 64 20 6c 69 6b 65 20 69 6e 20 pagated like in
0140: 72 65 61 6c 0a 2f 2f 21 20 62 69 6e 2e 20 54 68 real.//! bin. Th
0150: 65 20 6c 69 62 20 68 65 72 65 20 69 73 20 6a 75 e lib here is ju
0160: 73 74 20 74 6f 20 73 65 70 61 72 61 74 65 20 61 st to separate a
0170: 6c 6c 20 74 65 73 74 73 20 66 72 6f 6d 20 6d 61 ll tests from ma
0180: 69 6e 20 63 6f 64 65 20 69 6e 74 6f 20 74 65 73 in code into tes
0190: 74 73 2f 0a 0a 70 75 62 20 6d 6f 64 20 6d 61 69 ts/..pub mod mai
01a0: 6c 3b 0a 6d 6f 64 20 74 65 6c 65 67 72 61 6d 3b l;.mod telegram;
01b0: 0a 70 75 62 20 6d 6f 64 20 75 74 69 6c 73 3b 0a .pub mod utils;.
01c0: 0a 75 73 65 20 73 74 64 3a 3a 69 6f 3a 3a 43 75 .use std::io::Cu
01d0: 72 73 6f 72 3b 0a rsor;.