This file is indexed.

/usr/bin/geary-attach is in geary 0.12.0-1ubuntu1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 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
#!/bin/bash

# This is a wrapper script to attach several files to an email in Geary.
# Written by Viko Adi Rahmawan <vikoadi@gmail.com>
# License: 3-clause BSD

#TODO: define a Gettext domain

# Disable history substitution on "!" symbols so we can have them in strings
set +H

if [ -z "$1" ] || [ "$1" = '-h' ] || [ "$1" = '--help' ]; then
    echo $"Usage: $0 /path/to/file [/path/to/another/file...]
Relative paths are also supported."
    exit 1 # so that calling without parameters is counted as a failure
fi

#we dont do file checking as geary is clever enough
ARG="mailto:?attachment=$1" #add first file
shift
while [ -n "$1" ]; do
    ARG="$ARG&attachment=$1" #add more file if 
    shift
done

if [ -n "$ARG" ]; then
    # Finally execute geary
    geary "${ARG}"
else
    exit 1
fi