Class: Roebe::Email
Overview
Roebe::Email
Constant Summary collapse
- EMAIL_ICON =
#
EMAIL_ICON
#
Roebe.to_unicode_symbol(:email)
- AT_BOKU =
#
AT_BOKU
#
'@boku.ac.at'
- AT_UNI_WIEN =
#
AT_UNI_WIEN
#
'@univie.ac.at'
- AT_TU_WIEN =
#
AT_TU_WIEN
#
'@tuwien.ac.at'
- AT_TUWIEN =
AT_TUWIEN
AT_TU_WIEN
- MAX_VALUE =
#
MAX_VALUE
#
63
Constants inherited from Base
Base::COLOURS, Base::HOME_DIRECTORY_OF_USER_X, Base::N, Base::NAMESPACE
Class Method Summary collapse
-
.[](i = ARGV) ⇒ Object
# === Roebe::Email[] ========================================================================= #.
Instance Method Summary collapse
-
#buffer_for(email, modify_the_buffer = modify_the_buffer? ) ⇒ Object
# === buffer_for.
-
#dataset_from_the_contacts_file? ⇒ Boolean
# === dataset_from_the_contacts_file? ========================================================================= #.
-
#display_the_top_header(horizontal_icon_to_use = Roebe.low_line) ⇒ Object
# === display_the_top_header ========================================================================= #.
-
#email_icon? ⇒ Boolean
# === email_icon? ========================================================================= #.
-
#initialize(commandline_arguments = nil, run_already = true) ⇒ Email
constructor
# === initialize ========================================================================= #.
-
#menu(i = commandline_arguments_with_hyphens? ) ⇒ Object
# === menu (menu tag) ========================================================================= #.
-
#modify_the_buffer? ⇒ Boolean
# === modify_the_buffer? ========================================================================= #.
-
#not_found_any_result_for(i) ⇒ Object
# === not_found_any_result_for ========================================================================= #.
-
#open_this_file ⇒ Object
# === open_this_file ========================================================================= #.
-
#report_the_result_for_this_email_address(result) ⇒ Object
# === report_the_result_for_this_email_address.
-
#reset ⇒ Object
# === reset (reset tag) ========================================================================= #.
-
#return_array_of_all_entries ⇒ Object
# === return_array_of_all_entries.
-
#run ⇒ Object
# === run (run tag) ========================================================================= #.
-
#run_the_primary_task_of_this_class(i = commandline_arguments?.join(' ').strip) ⇒ Object
# === run_the_primary_task_of_this_class ========================================================================= #.
-
#set_xorg_buffer(i) ⇒ Object
# === set_xorg_buffer ========================================================================= #.
-
#show_help ⇒ Object
# === show_help.
-
#try_to_obtain_the_corresponding_email(i) ⇒ Object
(also: #try_to_find_this_entry, #try_to_find_entry)
# === try_to_obtain_the_corresponding_email ========================================================================= #.
-
#xorg_buffer(email, shall_we_exit = false) ⇒ Object
# === xorg_buffer.
Methods inherited from Base
#actions, #append_this_onto_that_file, #append_what_into, #be_silent, #be_verbose?, #beautiful_url, #burlywood, #call_next, #chdir, #cheerful_guy, #cliner, #complex_esystem, #convert_global_env, #copy_directory, #copy_file, #cornflowerblue, #create_directory, #crimson, #current_month?, #current_time?, #current_year?, #cyan, #darkcyan, #darkgreen, #darkkhaki, #darkslateblue, #deeppink, #delete_symlink, #do_not_use_the_base_colours, #do_use_the_base_colours, #e, #ecomment, #editor_to_use?, #efancy, #eimp, #emphasis, #ensure_main_encoding, #ensure_utf_encoding, #eparse, #erev, #esteelblue, #etomato, #ewarn, #exit_program, #firebrick, #get_current_day, #get_current_month, #get_files_and_directories, #get_files_from, #get_german_name_for_this_weekday, #gold, #green, #grey, #hh_mm_ss, #hh_mm_ss_day_month_year, #home_dir?, #home_directory_of_user_x?, #infer_the_namespace, #internal_hash?, #is_a_directory?, #is_a_file?, #is_a_jpg_file?, #is_an_image_file?, #is_archive?, #is_audio_file?, #is_in_studium_dir?, #is_multimedia_file?, #is_on_roebe?, #is_on_windows?, #is_studium_available?, #is_symlink?, #is_this_a_ruby_file?, #is_video_file?, #iso_encoding?, #le, #left_colour, #lightblue, #lightgreen, #lightseagreen, #lightsteelblue, #lime, #limegreen, #localhost_to_data, #log_directory?, #main_encoding?, #mediumorchid, #mediumpurple, #mediumseagreen, #mediumslateblue, #mediumspringgreen, #mediumturquoise, #mkdir_p, #mv, #n_days_in_this_month, #n_pages_in_this_pdf_file?, #namespace?, #no_file_exists_at, #ogrey, #olive, #olivedrab, #open_in_browser, #opne, #opnesystem, #opnn, #orange, #orchid, #orev, #palegoldenrod, #palevioletred, #pink, #powderblue, #programs_dir?, #project_base_dir?, #random_html_colour, #rds, #read_file_in_iso_encoding, #read_file_via_the_default_encoding, #read_lines_via_iso_encoding, #readlines_with_main_encoding, #red, #register_sigint, #remove, #remove_directory, #remove_file, #rename_kde_konsole_tab, #replace_localhost_with_data, #report_pwd, #require_rescue, #reset_the_internal_hash, #return_all_directories_from_this_directory, #return_all_files_from_this_directory, #return_current_directory, #return_dd_mm_yyyy, #return_file_or_directory_of, #return_files_from_pwd, #return_last_part_of_the_current_directory, #return_utc, #rev, #right_arrow?, #right_colour, #roebe_log_directory?, #rosybrown, #royalblue, #ruby_base_directory?, #run_in_background, #run_rcfiles_then_run_ata_via_qdbus, #sandybrown, #sdir, #seagreen, #set_be_verbose, #sfancy, #sfile, #silent_redirection?, #simp, #simple_esystem, #skyblue, #slateblue, #slategray, #springgreen, #steelblue, #string_italic, #swarn, #symlink, #teal, #temp_dir?, #to_camelcase, #to_counted_hash, #tomato, #touch, #try_to_require_the_beautiful_url_gem, #try_to_require_the_html_template, #try_to_require_the_open_gem, #try_to_require_the_program_information_gem, #try_to_require_the_xorg_buffer, #use_colours?, #verbose_truth, #weekday?, #word_wrap, #write_what_into, #yellow
Methods included from Base::CommandlineArguments
#append_onto_the_commandline_arguments, #clear_commandline_arguments, #commandline_arguments?, #commandline_arguments_as_string?, #commandline_arguments_without_leading_hyphens?, #first_argument?, #first_argument_without_leading_hyphens?, #has_an_argument_been_passed?, #remove_hyphened_arguments_from_the_commandline_arguments, #return_commandline_arguments_with_leading_hyphens, #second_argument?, #set_commandline_arguments
Constructor Details
#initialize(commandline_arguments = nil, run_already = true) ⇒ Email
#
initialize
#
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/roebe/classes/email.rb', line 61 def initialize( commandline_arguments = nil, run_already = true ) reset set_commandline_arguments( commandline_arguments ) case commandline_arguments # ======================================================================= # # === :do_not_run_yet # ======================================================================= # when :do_not_run_yet run_already = false end case run_already # ======================================================================= # # === :do_not_run_yet # ======================================================================= # when :do_not_run_yet run_already = false end run if run_already end |
Class Method Details
Instance Method Details
#buffer_for(email, modify_the_buffer = modify_the_buffer? ) ⇒ Object
#
buffer_for
Combine output and xorg-buffer setting in one.
#
164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/roebe/classes/email.rb', line 164 def buffer_for( email, modify_the_buffer = modify_the_buffer? ) if modify_the_buffer xorg_buffer(email, :do_not_exit) return "#{steelblue(email)}#{rev}" else return email end end |
#dataset_from_the_contacts_file? ⇒ Boolean
#
dataset_from_the_contacts_file?
#
303 304 305 |
# File 'lib/roebe/classes/email.rb', line 303 def dataset_from_the_contacts_file? @internal_hash[:dataset_from_the_contacts_file] end |
#display_the_top_header(horizontal_icon_to_use = Roebe.low_line) ⇒ Object
#
display_the_top_header
#
152 153 154 155 156 157 |
# File 'lib/roebe/classes/email.rb', line 152 def display_the_top_header( horizontal_icon_to_use = Roebe.low_line ) e darkgreen(horizontal_icon_to_use*77)+' '+ lightgreen(email_icon?) end |
#email_icon? ⇒ Boolean
#
email_icon?
#
138 139 140 |
# File 'lib/roebe/classes/email.rb', line 138 def email_icon? EMAIL_ICON end |
#menu(i = commandline_arguments_with_hyphens? ) ⇒ Object
#
menu (menu tag)
#
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/roebe/classes/email.rb', line 209 def ( i = commandline_arguments_with_hyphens? ) if i.is_a? Array i.each {|entry| (entry) } else case i # case tag # ======================================================================= # # === --open # ======================================================================= # when /-?-?open$/i open_this_file # Open the file. exit # ======================================================================= # # === email --help # ======================================================================= # when /-?-?help/i show_help exit end end end |
#modify_the_buffer? ⇒ Boolean
#
modify_the_buffer?
#
131 132 133 |
# File 'lib/roebe/classes/email.rb', line 131 def modify_the_buffer? @internal_hash[:modify_the_buffer] end |
#not_found_any_result_for(i) ⇒ Object
#
not_found_any_result_for
#
254 255 256 257 258 259 260 261 |
# File 'lib/roebe/classes/email.rb', line 254 def not_found_any_result_for(i) opne "#{rev}Not found any result for the given input `#{sfancy(i)}#{rev}`." e if is_on_roebe? # On my home system we will show a bit more information. opne 'We will however feedback the whole datastructure now:' pp dataset_from_the_contacts_file? end end |
#open_this_file ⇒ Object
#
open_this_file
#
145 146 147 |
# File 'lib/roebe/classes/email.rb', line 145 def open_this_file esystem "#{MAIN_EDITOR_TO_USE} #{__FILE__}" end |
#report_the_result_for_this_email_address(result) ⇒ Object
#
report_the_result_for_this_email_address
This method will also modify the xorg-buffer, via buffer_for().
#
244 245 246 247 248 249 |
# File 'lib/roebe/classes/email.rb', line 244 def report_the_result_for_this_email_address(result) display_the_top_header e e " #{buffer_for(result)}" e darkgreen(Roebe.low_line * 80) end |
#reset ⇒ Object
#
reset (reset tag)
#
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/roebe/classes/email.rb', line 89 def reset super() infer_the_namespace try_to_require_the_beautiful_url_gem # ======================================================================= # # === :modify_the_buffer # ======================================================================= # @internal_hash[:modify_the_buffer] = true # This is the default value here. contacts = BeautifulUrl['contacts'] # ======================================================================= # # === :dataset_from_the_contacts_file # # Load the contacts-file if it exists and store it into @data. # ======================================================================= # @internal_hash[:dataset_from_the_contacts_file] = nil if contacts and File.file?(contacts) @internal_hash[:dataset_from_the_contacts_file] = YAML.load_file(contacts) end end |
#return_array_of_all_entries ⇒ Object
#
return_array_of_all_entries
This method appears to be no longer in use; or it is no longer important.
#
181 182 183 184 185 186 187 188 |
# File 'lib/roebe/classes/email.rb', line 181 def return_array_of_all_entries @internal_hash[:modify_the_buffer] = false array = [] (1 .. MAX_VALUE).each {|this_position| array << try_to_find_this_entry(this_position) } return array end |
#run ⇒ Object
#
run (run tag)
#
858 859 860 861 862 863 864 865 866 867 868 |
# File 'lib/roebe/classes/email.rb', line 858 def run ( commandline_arguments_with_hyphens? ) _ = commandline_arguments?.join(' ').strip if _.nil? or _.empty? e 'Please provide an argument.' else # This here is the primary clause. run_the_primary_task_of_this_class(_) end end |
#run_the_primary_task_of_this_class(i = commandline_arguments?.join(' ').strip) ⇒ Object
#
run_the_primary_task_of_this_class
#
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/roebe/classes/email.rb', line 266 def run_the_primary_task_of_this_class( i = commandline_arguments?.join(' ').strip ) result = try_to_obtain_the_corresponding_email(i) if result and modify_the_buffer? report_the_result_for_this_email_address(result) else # ===================================================================== # # In this case no result was found, so first check the dataset from # the local .yml file, before bailing out. # ===================================================================== # if dataset_from_the_contacts_file?.nil? not_found_any_result_for(i) else index = dataset_from_the_contacts_file?.find_index {|entry| _ = entry.first _.downcase! unless i.nil? _.include?(i.downcase) end } if index # ================================================================= # # In this case, tap into the dataset provided by the yaml file. # ================================================================= # email = dataset_from_the_contacts_file?[index][2].to_s report_the_result_for_this_email_address(email) else not_found_any_result_for(i) end end end end |
#set_xorg_buffer(i) ⇒ Object
#
set_xorg_buffer
#
235 236 237 |
# File 'lib/roebe/classes/email.rb', line 235 def set_xorg_buffer(i) XorgBuffer.set_xorg_buffer(i) end |
#show_help ⇒ Object
198 199 200 201 202 203 204 |
# File 'lib/roebe/classes/email.rb', line 198 def show_help e opne "#{rev}This class will just display the registered email for "\ "different people." opne "#{rev}Note that this is catered towards my own personal list." e end |
#try_to_obtain_the_corresponding_email(i) ⇒ Object Also known as: try_to_find_this_entry, try_to_find_entry
#
try_to_obtain_the_corresponding_email
#
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 |
# File 'lib/roebe/classes/email.rb', line 310 def try_to_obtain_the_corresponding_email(i) result = case i # case tag, email tag # ======================================================================= # # === email schildberger # ======================================================================= # when 'schildberger' '[email protected]' # ======================================================================= # # === email koller # ======================================================================= # when 'koller', 'bernhard_koller' '[email protected]' # ======================================================================= # # === email tu_studienabteilung # ======================================================================= # when 'tu_studienabteilung', 'tuwien','sekretariat', 'tu',40 # '[email protected]' '[email protected]' # ======================================================================= # # === email byrne # ======================================================================= # when /^-?-?byrnes?$/i '[email protected]' # ======================================================================= # # === email neesen # ======================================================================= # when /^-?-?neesen$/i '[email protected]' # ======================================================================= # # === email shevy # ======================================================================= # when /^-?-?shevy$/i Roebe.email? # ======================================================================= # # === email mama # ======================================================================= # when /^mama$/i require 'roebe/toplevel_methods/mama.rb' Roebe.mama? # ======================================================================= # # === email roebe # ======================================================================= # when /^roebe$/i Roebe.university_email? # ======================================================================= # # === email volksanwaltschaft # ======================================================================= # when /^-?-?volksanwaltschaft$/i '[email protected]' # ======================================================================= # # === email stv # ======================================================================= # when /^-?-?stv$/i '[email protected]' # ======================================================================= # # === email daniela_richter # ======================================================================= # when /^-?-?Daniela(-|_)?Richter$/i "daniela.richter#{AT_BOKU}" # ======================================================================= # # === email rattei # ======================================================================= # when 'rattei',30 '[email protected]' # ======================================================================= # # === email gübitz # ======================================================================= # when /^-?-?gübitz$/i 'guebitz'+AT_BOKU # ======================================================================= # # === email petra_kranyak # ======================================================================= # when 'petra_kranyak', 'kranyak', 'petra', 51 'petra.kranyak'+AT_BOKU # ======================================================================= # # === email individuelles_studium_boku # ======================================================================= # when 'individuelles_studium_boku', 'öh_boku' '[email protected]' # ======================================================================= # # === email boku_studienabteilung # # Alternativ: [email protected] # ======================================================================= # when 'boku_studienabteilung', 'boku', 'bokustudienabteilung', 23 '[email protected]' # ======================================================================= # # === email vetmed # ======================================================================= # when 'vetmed', 'vet' '[email protected]' # ======================================================================= # # === email ulla # ======================================================================= # when 'ulla', 'winkler2', 33 '[email protected]' # ======================================================================= # # === email ebrahim # ======================================================================= # when /^ebrahim$/i '[email protected]' # ======================================================================= # # === email wilson # ======================================================================= # when 'wilson' "iain.wilson#{AT_BOKU}" # ======================================================================= # # === email haltrich # ======================================================================= # when /^haltrich$/i "dietmar.haltrich#{AT_BOKU}" # ======================================================================= # # === email pitzschke # ======================================================================= # when /^pitzschke$/i "andrea.pitzschke#{AT_BOKU}" # ======================================================================= # # === email birbaumer # ======================================================================= # when /^birbaumer$/i, /^andrea(-|_)?birbaumer$/i, 'top' '[email protected]' # ======================================================================= # # === email kosma # ======================================================================= # when /^kosma$/i "paul.kosma#{AT_BOKU}" # ======================================================================= # # === email laccone # ======================================================================= # when /^Franco(_|-)?Laccone$/i, 'laccone', '2', 44 '[email protected]' # ======================================================================= # # === email isabel # ======================================================================= # when 'isabel' '[email protected]' # ======================================================================= # # === email graz # ======================================================================= # when /^graz$/i '[email protected]' # ======================================================================= # # === email reimhult # ======================================================================= # when /^reimhult$/i "erik.reimhult#{AT_BOKU}" # ======================================================================= # # === email birbaumer # ======================================================================= # when /^birbaumer$/i '[email protected]' # ======================================================================= # # === email dürauer # ======================================================================= # when /^dürauer$/i '[email protected]' # ======================================================================= # # === email kasper # ======================================================================= # when /^kasper$/i '[email protected]' # ======================================================================= # # === email oostenbrink # ======================================================================= # when /^oostenbrink$/i '[email protected]' # ======================================================================= # # === email kreil # ======================================================================= # when /^kreil$/i '[email protected]' # ======================================================================= # # === email kalyna # ======================================================================= # when /^kalyna$/i '[email protected]' # ======================================================================= # # === fauland when /fauland/i,'renate_fauland',57 'renate.fauland'+AT_UNI_WIEN # ======================================================================= # # === gobolinux when /gobolinux/,'gobo' '[email protected]' # ======================================================================= # # === Lichtenegger # ======================================================================= # when /Lichtenegger/i,63 '[email protected]' # ======================================================================= # # === email uniwien # ======================================================================= # when 'uniwien',19 '[email protected]' # ======================================================================= # # === email eva_pfeiffer # ======================================================================= # when 'eva_pfeiffer', 'fhpfeiffer', 11 '[email protected]' # ======================================================================= # # === email tschepen # ======================================================================= # when 'tschepen','liselotte',5 '[email protected]' # ======================================================================= # # === email moll # ======================================================================= # when 'moll',4 '[email protected]' # ======================================================================= # # === email grossmann # ======================================================================= # when 'grossmann','gross','fh',3 '[email protected]' # ======================================================================= # # === email fefe # ======================================================================= # when 'fefe',10 '[email protected]' # ======================================================================= # # === email müllner # ======================================================================= # when 'müllner','muellner',9 '[email protected]' # ======================================================================= # # === email traxlmayer # ======================================================================= # when /^Michael(_|-)?Traxlmayer$/i, 'traxlmayer' '[email protected]' # ======================================================================= # # === email drazen # ======================================================================= # when /^Drazen(_|-)?Petrov$/i, 'drazen' '[email protected]' # ======================================================================= # # === email matyas # ======================================================================= # when /^Matyas$/i, 'vizerektor' '[email protected]' # ======================================================================= # # === email bruce # ======================================================================= # when /^bruce$/i '[email protected]' # ======================================================================= # # === email matyas # ======================================================================= # when /^hasenauer$/i '[email protected]' # ======================================================================= # # === email toca # ======================================================================= # when /^toca$/i "jose.toca-herrera#{AT_BOKU}" # ======================================================================= # # === email kunert # ======================================================================= # when /^kunert$/i "renate.kunert#{AT_BOKU}" # ======================================================================= # # === email ablinger # ======================================================================= # when 'ablinger',35 'waltraud.ablinger'+AT_BOKU # ======================================================================= # # === email bianca # ======================================================================= # when 'bianca','jakits','bianca_jakits','jankits','bianka',34 '[email protected]' # ======================================================================= # # === email franssen # ======================================================================= # when 'susanne','franssen','suse',32 '[email protected]' # ======================================================================= # # === email perschy # ======================================================================= # when 'perschy','ninio_perschy', 'ninio', 31 '[email protected]' # Der hat auch eine andere Email Addresse. # ======================================================================= # # === email gimp # ======================================================================= # when 'gimp',29 '[email protected]' # ======================================================================= # # === email husinsky # ======================================================================= # when 'hus','husinsky','huz',28 '[email protected]' # ======================================================================= # # === email bock # ======================================================================= # when 'bock',27 '[email protected]' # ======================================================================= # # === email wanek # ======================================================================= # when 'wanek' 'helmut.wanek'+AT_UNI_WIEN # ======================================================================= # # === email tiss # ======================================================================= # when /^tiss/i '[email protected]' # ======================================================================= # # === email allmaier # ======================================================================= # when /allmaier/i,59 'guenter.allmaier'+AT_TUWIEN # ======================================================================= # # === email marchetti # ======================================================================= # when /^Martina ?Marchetti-?Deschmann/i, 'marchetti', 50 'martina.marchetti-deschmann'+AT_TU_WIEN when /^mach/i 'lukas.mach'+AT_BOKU when /^harald/i '[email protected]' when /^saalmüller/i '[email protected]' when /^eislmayr/i 'kevin.eislmayr'+AT_UNI_WIEN when /^katrin/i '[email protected]' when /fuchs/i 'peter.fuchs'+AT_UNI_WIEN when /propst/i 'friedrich.propst'+AT_UNI_WIEN when /patzl/,62 '[email protected]' when /dirsch/,61 'verena.dirsch'+AT_UNI_WIEN when /lorenzo/i,60 '[email protected]' when /hauser/i,58 'marie-theres.hauser'+AT_BOKU when /schmidt/i,/heiko/,56 'heiko.schmidt'+AT_UNI_WIEN when /hamilton/i,55 'barbara.hamilton'+AT_UNI_WIEN when /boku_?zid_?allgemein/,54 '[email protected]' when 'hüttinger','huettinger',53 'manfred.huettinger'+AT_UNI_WIEN when 'gustav_ammerer','ammerer',52 'gustav.ammerer'+AT_UNI_WIEN when /Martina( | )?Weber/i,'weber',49 'martina.weber'+AT_UNI_WIEN when /ovidiu_?paun/,'paun',48 'ovidiu.paun'+AT_UNI_WIEN when 'barbara_korbei','barbara',47 'barbara.korbei'+AT_BOKU when 'roland_ludwig','ludwig',46 'roland.ludwig'+AT_BOKU when 'doris_glasl','glasl',45 'doris.glasl'+AT_BOKU when 'lichtscheidl',43 '[email protected]' when 'laimer',42 'margit.laimer'+AT_BOKU when 'kreil',41 'david.kreil'+AT_BOKU when 'bruckner','alexander_bruckner',39 'alexander.bruckner'+AT_BOKU when 'boku_zid',38 'alfred.bauer'+AT_BOKU when 'zoologie','lehren',37 'zoologie.lehre'+AT_BOKU when 'glössl',36 'josef.gloessl'+AT_BOKU when 'arndt',26 '[email protected]' when 'loidl',25 '[email protected]' when 'boku_weingartmann','weingartmann',24 '[email protected]' when 'marchhart','march','boku1',22 '[email protected]' when 'abharsair','abhs',21 '[email protected]' when 'tanzer','andrea','andrea_tanzer',20 '[email protected]' when 'dekanat','boku_dekanat',18 'gerhard.stingeder'+AT_BOKU when 'stingeder',17 'gerhard.stingeder'+AT_BOKU when 'sascha','biberhofer',16 '[email protected]' when 'karin','pfeiffer',15 # Juristin an der ÖH Wien. '[email protected]' when 'horn','large_viruses','main',14 '[email protected]' # === ministerium when 'ministerium','minister',13 # Bundesministerium für Wissenschaft, Forschung und Wirtschaft '[email protected]' # ======================================================================= # # === email cloud # ======================================================================= # when 'cloud',12 '[email protected]' when /^mohit/,8 # Mohit Kumar '[email protected]' # ======================================================================= # # === email blaas # ======================================================================= # when /^blaas/,7 '[email protected]' # ======================================================================= # # === email rose # ======================================================================= # when /^rose/,'besemer','besamer',6 '[email protected]' # ======================================================================= # # === email alex # ======================================================================= # when 'alex','schleiffer',2 '[email protected]' # ======================================================================= # # === email mathe # ======================================================================= # when 'mathe','kuehleitner', 'kuh', 1 '[email protected]' # ======================================================================= # # === email schosserer # ======================================================================= # when /^schosserer$/i "markus.schosserer#{AT_BOKU}" # ======================================================================= # # === email me # ======================================================================= # when /^me$/i 'r o o o b er t. kkkuuunnnz@'. delete(' '). squeeze('abcdefghijklmnopqrstuvwxyz')+'students.boku.ac.at' # ======================================================================= # # === email zulassung # ======================================================================= # when /^zulassung$/i, /^mitbelegung(_|-)?uniwien$/i '[email protected]' # ======================================================================= # # === slany # ======================================================================= # when /^slany$/i 'astrid.slany'+AT_UNI_WIEN # ======================================================================= # # === reiner # ======================================================================= # when /^reiner/i 'agnes.reiner'+AT_UNI_WIEN # ======================================================================= # # === becker # ======================================================================= # when /^becker/i 'christian.becker'+AT_UNI_WIEN # ======================================================================= # # === luschnig # ======================================================================= # when /^luschnig/i 'christian.luschnig'+AT_BOKU # ======================================================================= # # === braunecker # ======================================================================= # when /^braunecker$/i, 'David Braunecker' '[email protected]' # ======================================================================= # # === tuZID # ======================================================================= # when /^tuZID$/i, 'zid' '[email protected]' # ======================================================================= # # === ÖH # ======================================================================= # when 'ÖH','öh' '[email protected]' # ======================================================================= # # === hetzl # ======================================================================= # when 'hetzl' '[email protected]' # ======================================================================= # # === andrew # ======================================================================= # when 'andrew' 'andrew.calcino'+AT_UNI_WIEN # ======================================================================= # # === haslacher # ======================================================================= # when 'haslacher' '[email protected]' # ======================================================================= # # === email haider # ======================================================================= # when /^Sami( )?Haider$/i, 'sami', 'haider' 'haider.sami'+AT_UNI_WIEN # ======================================================================= # # === email ssc.lebenswissenschaften # ======================================================================= # when /^ssc(.|_|-| )?lebenswissenschaften$/i '[email protected]' # ======================================================================= # # === email stöger # ======================================================================= # when /^stöger$/i 'eva.stoeger'+AT_BOKU else # The else clause. nil end return result end |
#xorg_buffer(email, shall_we_exit = false) ⇒ Object
#
xorg_buffer
Use this wrapper to modify the xorg buffer.
#
114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/roebe/classes/email.rb', line 114 def xorg_buffer( email, shall_we_exit = false ) case shall_we_exit when :exit_now shall_we_exit = true when :do_not_exit shall_we_exit = false end set_xorg_buffer(email) exit if shall_we_exit end |