Changeset e044cc70b8bbba183fdf396ddbc00b2407eb5bea

Show
Ignore:
Timestamp:
08/28/10 23:00:50 (18 months ago)
Author:
Antti-Juhani Kaijanaho <antti-juhani@…>
Children:
8fab37d78032b4009b127dc2d5c06b71a627ebd5
Parents:
92c18c14e163e2ab3200ccad6c6c0e6ee5c3e1a6
git-committer:
Antti-Juhani Kaijanaho <antti-juhani@…> (08/28/10 23:00:50)
Message:

Add a subject tag to email distribution

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • db/group.cc

    r4c34ee2 re044cc7  
    7070 
    7171                msg::msg::ptr nm(new msg::msg(*m)); 
     72                { 
     73                        std::string subject = nm->get_field("subject", false); 
     74                        util::strip_crlf(subject); 
     75                        std::string tag = "["; tag += the_name; tag += "]"; 
     76                        if (subject.find(tag) == std::string::npos) 
     77                                nm->replace_field("Subject", 
     78                                                  tag + " " + subject); 
     79                } 
    7280                nm->replace_field("To", 
    7381                                  name() + "@" +