テストメールを追加
@@ -0,0 +1,43 @@ | ||
1 | +# -*- coding: utf-8 -*- | |
2 | +# MailArchive plugin | |
3 | + | |
4 | +from datetime import datetime,timedelta | |
5 | +import uuid | |
6 | + | |
7 | + | |
8 | +now = datetime.now() | |
9 | +today = datetime.today() | |
10 | + | |
11 | +_mail_num = 1000 | |
12 | +i = 0 | |
13 | + | |
14 | +mail_address="testmail@example.com" | |
15 | +dt = datetime.now() | |
16 | +message_id = '' | |
17 | + | |
18 | +for i in range(0,_mail_num): | |
19 | + last_message_id = message_id | |
20 | + if i % 5 == 0: | |
21 | + last_message_id = '' | |
22 | + message_id = '%s%s'%(uuid.uuid4() , mail_address) | |
23 | + dt = dt + timedelta(0,60) | |
24 | + print "From - %s"%(dt.strftime('%a %b %d %H:%M:%S %Y')) #Mon Jun 30 14:29:49 2008 | |
25 | + print "Received: by 192.168.0.1 with HTTP; Sun, 29 Jun 2008 22:26:59 -0700 (PDT)" | |
26 | + print "Message-ID: <%s>" %( message_id ) | |
27 | + print "Date: %s +0900"%(dt.strftime('%a, %d %b %Y %H:%M:%S')) #Mon, 30 Jun 2008 14:26:59 +0900 | |
28 | + print "From: %s"%(mail_address) | |
29 | + print "To: %s"%(mail_address) | |
30 | + print "Subject: TestII%s "%(str(i)) | |
31 | + if last_message_id != '': | |
32 | + print "In-Reply-To: <%s>" %( last_message_id ) | |
33 | + print "MIME-Version: 1.0" | |
34 | + print "Content-Type: text/plain; charset=ISO-8859-1" | |
35 | + print "Content-Transfer-Encoding: 7bit" | |
36 | + print "Content-Disposition: inline" | |
37 | + print "Delivered-To: mailarchivetest@example.com" | |
38 | + print "" | |
39 | + print "This is Test Mail ." | |
40 | + print "" | |
41 | + print "" | |
42 | + | |
43 | + |