-
Notifications
You must be signed in to change notification settings - Fork 0
/
gravatarhash.1
68 lines (68 loc) · 1.86 KB
/
gravatarhash.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.\" Copyright (c) 2014 Tristan Le Guern <tleguern@bouledef.eu>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.\" The following requests are required for all man pages.
.\"
.Dd $Mdocdate: August 19 2014 $
.Dt GRAVATARHASH 1
.Os
.Sh NAME
.Nm gravatarhash
.Nd Generate an avatar URL from an email address
.Sh SYNOPSIS
.Nm
.Op Fl fs
.Op Fl d Cm default
.Op Fl h Cm md5 | Cm sha256
.Op Fl p Cm dns | Cm gravatar | Cm libravatar
.Ar email
.Sh DESCRIPTION
The
.Nm
utility processes the given
.Ar email
address into an URL pointing to an avatar image.
.Pp
Three providers are currently supported:
.Bl -bullet -compact
.It
Gravatar (https://secure.gravatar.com/);
.It
Libravatar (https://www.libravatar.org/);
.It
Self hosted libravatar (SRV DNS query).
.El
The default is to do a DNS query first and fallback to Gravatar if the
query fails.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl d
Specify what to do if the avatar doesn't exist. Can be 404, mm, blank,
retro or absolutely anything.
.It Fl f
Enable the forcedefault flag.
.It Fl h
Use either
.Xr md5
or
.Xr sha256
for the hash creation.
.It Fl p
Only use the specified avatar provider.
.It Fl s
Asks for the HTTPS URL.
.El
.Sh SEE ALSO
.Xr md5 1