@@ -153,7 +153,6 @@ class << CommitEmail
153
153
def parse ( args )
154
154
options = OpenStruct . new
155
155
options . error_to = [ ]
156
- options . from = nil
157
156
options . repository_uri = nil
158
157
options . rss_path = nil
159
158
options . rss_uri = nil
@@ -168,11 +167,6 @@ def parse(args)
168
167
options . error_to << to unless to . nil?
169
168
end
170
169
171
- opts . on ( '-f' , '--from [FROM]' ,
172
- 'Use [FROM] as from address' ) do |from |
173
- options . from = from
174
- end
175
-
176
170
opts . on ( '--viewer-uri [URI]' ,
177
171
'Use [URI] as URI of revision viewer' ) do |uri |
178
172
options . viewer_uri = uri
@@ -220,7 +214,7 @@ def main(repo_path, to, rest)
220
214
infos . each do |info |
221
215
puts "#{ info . branches . join ( ', ' ) } : #{ info . revision } (#{ info . author } )"
222
216
223
- from = options . from || info . author_email
217
+ from = info . author_email
224
218
sendmail ( to , from , make_mail ( to , from , info , viewer_uri : options . viewer_uri ) )
225
219
226
220
if options . repository_uri and
@@ -473,15 +467,9 @@ def rss_items(items, info, repos_uri)
473
467
rescue StandardError => e
474
468
$stderr. puts "#{ e . class } : #{ e . message } "
475
469
$stderr. puts e . backtrace
476
- from = ENV [ "USER" ]
477
- begin
478
- _ , options = CommitEmail . parse ( rest )
479
- from = options . from
480
- rescue StandardError
481
- end
482
- CommitEmail . sendmail ( to , from , <<-MAIL )
483
- From: #{ from }
484
- To: #{ to . join ( ', ' ) }
470
+ CommitEmail . sendmail ( to , to , <<-MAIL )
471
+ From: #{ to }
472
+ To: #{ to }
485
473
Subject: Error
486
474
487
475
#{ $!. class } : #{ $!. message }
0 commit comments