simplify mass-mailing to openstreetmap user accounts
This commit is contained in:
parent
3330acbfb8
commit
934f826b9d
5 changed files with 122 additions and 0 deletions
24
osm-massmail/info.txt
Normal file
24
osm-massmail/info.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
How to use these scripts:
|
||||
|
||||
1) generate a list of OSM usernames, that should be the target of a mail
|
||||
|
||||
2) retrieve the user id for each username (via the shell script)
|
||||
|
||||
3) edit the mail text in the python script
|
||||
|
||||
4) run the following command:
|
||||
( \
|
||||
cat html_header.inc; cat FILE_WITH_USERS_AND_IDS | while read line; \
|
||||
do username="$(echo "$line" | cut -f 1)"; \
|
||||
user_id="$(echo "$line" | cut -f 2)"; \
|
||||
./generate_send_message_url.py "$username" "$user_id"; \
|
||||
done; \
|
||||
cat html_footer.inc \
|
||||
) >mail_links.html
|
||||
|
||||
5) open the html file in your favourite browser
|
||||
|
||||
6) login to your openstreetmap account
|
||||
|
||||
7) click on each of the links in the local html file to send a single message
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue