simonrob / email-oauth2-proxy

An IMAP/POP/SMTP proxy that transparently adds OAuth 2.0 authentication for email clients that don't support this method.
Apache License 2.0
785 stars 84 forks source link

Please document how to specify --config path in the plist file #225

Closed geeohgeegeeoh closed 7 months ago

geeohgeegeeoh commented 7 months ago

I'd like to move the emailproxy.config to a ~/.config/email-oauth2-proxy/emailproxy.config location. Can you please document what flags and arguments can be put in the plist file?

simonrob commented 7 months ago

The .plist file just contains the commands to run the proxy, so the documentation is the same as that already given in the readme.

If you deselect then re-select the Start at login option when running with the preferred config file path, the .plist file should be updated automatically for you.

If you meant documentation about the format of the file itself, see Apple's articles, or try a tool like Launch Control.

geeohgeegeeoh commented 7 months ago

So basically, whatever command line arguments you specify to run the command will be written into the plist file?

Easy! Thanks. Close the issue, nothing to see here.

G

On Mon, 22 Jan 2024, 4:28 pm Simon Robinson, @.***> wrote:

The .plist file just contains the commands to run the proxy, so the documentation is the same as that already given in the readme.

If you deselect them re-select the Start at login option when running with the preferred config file path, the .plist file should be updated automatically for you.

If you meant documentation about the format of the file itself, see Apple's articles https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html, or try a tool like Launch Control https://www.soma-zone.com/LaunchControl/.

— Reply to this email directly, view it on GitHub https://github.com/simonrob/email-oauth2-proxy/issues/225#issuecomment-1903343638, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABORQ7CQ2R3S223RP3NLV3LYPYBKVAVCNFSM6AAAAABCEKXECOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBTGM2DGNRTHA . You are receiving this because you authored the thread.Message ID: @.***>

geeohgeegeeoh commented 7 months ago
<key>ProgramArguments</key>
    <array>
        <string>/opt/homebrew/opt/python@3.11/bin/python3.11</string>
        <string>/Users/<someusername>/Source/email-oauth2-proxy/emailproxy.py</string>
        <string>--config-file</string>
        <string>/Users/<someusername>/.config/email-oauth2-proxy/emailproxy.config</string>
    </array>

(for completeness, what the configuration looks like in the .plist once you add commandline arguments.)