Sha256: 56383b681abd8765277b4ff22b497b495a5f1225bfe05c270b6247872bb82426
Contents?: true
Size: 859 Bytes
Versions: 3
Compression:
Stored size: 859 Bytes
Contents
def chunk_list #turn off autodetection of uri's :inclusion_and_link end def process_email_addresses context_card, format_args, args format(format_args).render_email_addresses(args.merge(:context=>context_card)) end format :email_text do view :email_addresses do |args| context = args[:context] || self card.item_names.map do |item_name| item_name = item_name.to_name.to_absolute(context).to_s if item_name.match /.+\@.+\..+/ item_name elsif item_card = Card.fetch( item_name ) if item_card.account item_card.account.email else item_card.contextual_content(context,:format=>:email_text).split( /[,\n]/ ) end end end.flatten.compact.join(', ') end end # _user, info@mail.com, Ethan, Pointer -> ..., _left+email, my email address -> info@mail.com
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wagn-1.14.0.pre3 | mod/06_email/set/right/bcc.rb |
wagn-1.14.0.pre2 | mod/06_email/set/right/bcc.rb |
wagn-1.14.0.pre1 | mod/06_email/set/right/bcc.rb |