File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 55fname = input ('Enter file name:' )
66fh = open (fname )
77for line in fh :
8- if not line .startswith ('From' ):
9- continue
10- if line .startswith ('From:' ):
8+ if not line .startswith ('From ' ):
119 continue
10+ # if line.startswith('From:'):
11+ # continue
1212 id = line .split ()
1313 mail = id [1 ]
1414 mails .append (mail )
15+
16+ freq_mail = max (mails , key = mails .count ) #To find frequent mail
17+ print (freq_mail ,mails .count (freq_mail )) #To find countof frequent mail
18+
19+
20+
21+
22+ """
1523for x in mails:
1624 counts[x]=counts.get(x,0)+1
1725bigmail=None
2129 bigmail=key
2230 bigvalue=value
2331print(bigmail, bigvalue)
32+
33+ """
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ BSP-1415 New (Guest) user Notification
126126This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the Source site.
127127You can modify how you receive notifications at My Workspace > Preferences.
128128
129-
129+ From cwen@iupui.edu
130130
131131From zqian@umich.edu Fri Jan 4 16:10:39 2008
132132Return-Path: <postmaster@collab.sakaiproject.org>
You can’t perform that action at this time.
0 commit comments