Changeset 92c18c14e163e2ab3200ccad6c6c0e6ee5c3e1a6

Show
Ignore:
Timestamp:
08/28/10 22:40:03 (18 months ago)
Author:
Antti-Juhani Kaijanaho <antti-juhani@…>
Children:
e044cc70b8bbba183fdf396ddbc00b2407eb5bea
Parents:
28939ac15506b95f59142a06b7d6794a801f8198
git-committer:
Antti-Juhani Kaijanaho <antti-juhani@…> (08/28/10 22:40:03)
Message:

Make Alue self-identity in emails configurable

Fixes #52

Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>

Files:
4 modified

Legend:

Unmodified
Added
Removed
  • config.cc

    rf3e4a78 r92c18c1  
    116116                 po::value<std::string>()->default_value("/"), 
    117117                 "name of the daemon home directory") 
     118                ("alue-name", 
     119                 po::value<std::string>()->default_value("Alue"), 
     120                 "the 'real name' Alue should use of itself") 
    118121                ("operator-email",  
    119122                 po::value<std::string>(), 
  • db/user.cc

    r1a490d9 r92c18c1  
    133133                std::string to = delivery_email; 
    134134                std::string from =  
    135                         std::string("Alue <") + 
     135                        config["alue-name"].as<std::string>() + 
     136                        " <" + 
    136137                        config["operator-email"].as<std::string>() + 
    137138                        ">"; 
  • http/passwd.cc

    r751fac6 r92c18c1  
    121121                std::string ton = u->get_display_name(); 
    122122                std::string to = u->get_delivery_email(); 
    123                 std::string from = std::string("Alue <") + 
     123                std::string from =  
     124                        config["alue-name"].as<std::string>() + 
     125                        " <" + 
    124126                        config["operator-email"].as<std::string>() + 
    125127                        ">"; 
  • http/recovery.cc

    r751fac6 r92c18c1  
    8888                        std::string to = u->get_delivery_email(); 
    8989                        std::string from =  
    90                                 std::string("Alue <") + 
     90                                config["alue-name"].as<std::string>() + 
     91                                " <" + 
    9192                                config["operator-email"].as<std::string>() + 
    9293                                ">";