Skip to content

Commit

Permalink
1. README
Browse files Browse the repository at this point in the history
2. fix _filename_or_args
  • Loading branch information
chhsiao1981 committed Jan 31, 2024
1 parent 82fbac9 commit 2f64f77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# pl_mail

A ChRIS Plugin for sending email.
A ChRIS Plugin for sending email.

* rcpt: Comma separated receipients. It can be specified with `-r`, `--rcpt`, or in `[inputdir]/rcpt`
* title: Title of the email. It can be specified with `-t`, `--title`, or in `[inputdir]/title`
* content: Content of the email. It can be specified with `-c`, `--content`, or in `[inputdir]/content`.
* sender: Sender of the email (default: `[email protected]`). It can be specified in `[inputdir]/sender`, or with `-s`, `--sender`.
* mailserver: Mail server (default: `postfix.postfix.svc.k8s.galena.fnndsc`). It can be speicified in `[inputdir]/mailserver`, or with `-m`, `--mailserver`.
2 changes: 1 addition & 1 deletion mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _args_or_filename(arg, filename, err_msg):
return f.read().strip()


def _filename_or_args(filename, arg, err_msg):
def _filename_or_args(arg, filename, err_msg):
if os.path.exists(filename):
with open(filename, 'r') as f:
return f.read().strip()
Expand Down

0 comments on commit 2f64f77

Please sign in to comment.