Changeset 605
- Timestamp:
- 04/03/07 16:38:55 (2 years ago)
- Files:
-
- trunk/src/hefeweizen_library_ebMS_message2.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/hefeweizen_library_ebMS_message2.rb
r604 r605 1192 1192 File.open(raw_message_file_path, "r").readlines.each{ | line | 1193 1193 if is_multipart == false then 1194 if line =~ /.* Content-Type.*multipart\/related.*/ then1194 if line =~ /.*[Cc][Oo][Nn][Tt][Ee][Nn][Tt]-[Tt][Yy][Pp][Ee].*multipart\/related.*/ then 1195 1195 is_multipart = true 1196 1196 else … … 1204 1204 end 1205 1205 1206 if line =~ / Content-Type:(.*)/ then1206 if line =~ /[Cc][Oo][Nn][Tt][Ee][Nn][Tt]-[Tt][Yy][Pp][Ee]:(.*)/ then 1207 1207 content = $1 1208 1208 entries = content.split(/;/) … … 1249 1249 end 1250 1250 1251 if line =~ /^ Content-Id: <(.*)>/ then1251 if line =~ /^[Cc][Oo][Nn][Tt][Ee][Nn][Tt]-[Ii][Dd]: <(.*)>/ then 1252 1252 current_content_id = $1 1253 elsif line =~ /^ Content-Disposition: attachment; filename=(.*)$/ then1253 elsif line =~ /^[Cc][Oo][Nn][Tt][Ee][Nn][Tt]-[Dd][Ii][Ss][Pp][Oo][Ss][Ii][Tt][Ii][Oo][Nn]: attachment; filename=(.*)$/ then 1254 1254 current_file_name = $1 1255 1255 end
