Module: TMail
- Extended by:
- TextUtils
- Defined in:
- lib/action_mailer/vendor/tmail/info.rb,
lib/action_mailer/vendor/tmail/net.rb,
lib/action_mailer/vendor/tmail/mail.rb,
lib/action_mailer/vendor/tmail/port.rb,
lib/action_mailer/vendor/tmail/utils.rb,
lib/action_mailer/vendor/tmail/base64.rb,
lib/action_mailer/vendor/tmail/config.rb,
lib/action_mailer/vendor/tmail/encode.rb,
lib/action_mailer/vendor/tmail/facade.rb,
lib/action_mailer/vendor/tmail/header.rb,
lib/action_mailer/vendor/tmail/parser.rb,
lib/action_mailer/vendor/tmail/address.rb,
lib/action_mailer/vendor/tmail/mailbox.rb,
lib/action_mailer/vendor/tmail/quoting.rb,
lib/action_mailer/vendor/tmail/scanner.rb,
lib/action_mailer/vendor/tmail/obsolete.rb,
lib/action_mailer/vendor/tmail/scanner_r.rb,
lib/action_mailer/vendor/tmail/attachments.rb
Overview
obsolete.rb
– Copyright © 1998-2003 Minero Aoki <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Note: Originally licensed under LGPL v2+. Using MIT license for Rails with permission of Minero Aoki. ++
Defined Under Namespace
Modules: Base64, MailFlags, StrategyInterface, TextUtils Classes: AddDate, AddMessageId, Address, AddressGroup, AddressHeader, Attachment, Config, ContentDispositionHeader, ContentTransferEncodingHeader, ContentTypeHeader, DateTimeHeader, Decoder, DeleteFields, Encoder, EncryptedHeader, FilePort, HeaderField, KeywordsHeader, Mail, Maildir, MaildirPort, MessageIdHeader, MhMailbox, MhPort, MimeEncodeAuto, MimeEncodeMulti, MimeEncodeSingle, MimeVersionHeader, Parser, Port, ReceivedHeader, ReferencesHeader, ReturnPathHeader, Scanner_R, SingleAddressHeader, StringPort, StructuredHeader, SyntaxError, UNIXMbox, Unquoter, UnstructuredHeader
Constant Summary collapse
- Version =
'0.10.7'
- Copyright =
'Copyright (c) 1998-2002 Minero Aoki'
- DEFAULT_CONFIG =
Config.new(false)
- DEFAULT_STRICT_CONFIG =
Config.new(true)
- MhLoader =
MhMailbox
MhMailbox
- MboxLoader =
UNIXMbox
UNIXMbox
- MaildirLoader =
Maildir
Maildir
Constants included from TextUtils
TextUtils::ATOM_UNSAFE, TextUtils::CONTROL_CHAR, TextUtils::MESSAGE_ID, TextUtils::MIME_ENCODED, TextUtils::MONTH, TextUtils::NKF_FLAGS, TextUtils::PHRASE_UNSAFE, TextUtils::RFC2231_ENCODED, TextUtils::TOKEN_UNSAFE, TextUtils::WDAY, TextUtils::ZONESTR_TABLE
Class Method Summary collapse
- .new_boundary ⇒ Object (also: boundary)
- .new_message_id(fqdn = nil) ⇒ Object (also: msgid, new_msgid)
Methods included from TextUtils
atom_safe?, decode_RFC2231, decode_params, join_domain, message_id?, mime_encoded?, quote_atom, quote_phrase, quote_token, time2str, timezone_string_to_unixtime, to_kcode, token_safe?
Class Method Details
.new_boundary ⇒ Object Also known as: boundary
35 36 37 |
# File 'lib/action_mailer/vendor/tmail/utils.rb', line 35 def TMail.new_boundary 'mimepart_' + random_tag end |
.new_message_id(fqdn = nil) ⇒ Object Also known as: msgid, new_msgid
39 40 41 42 |
# File 'lib/action_mailer/vendor/tmail/utils.rb', line 39 def TMail.( fqdn = nil ) fqdn ||= ::Socket.gethostname "<#{random_tag()}@#{fqdn}.tmail>" end |