mirror of
https://github.com/modoboa/modoboa-postfix-autoreply.git
synced 2026-04-25 00:25:51 +03:00
[GH-ISSUE #49] Autoreply only for direct message and not alias #27
Labels
No labels
bug
bug
enhancement
enhancement
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-postfix-autoreply-modoboa#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @twagener on GitHub (Sep 27, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa-postfix-autoreply/issues/49
It would be great to check if the original mail goes to a alias-list or is only for me. So auto reply won't answer for a mail which was not only for me and was sent to an alias
@twagener commented on GitHub (Oct 2, 2017):
i made it working for me... if anyone needs this - change it like this:
i added the original_recipient option in
env/lib/python2.7/site-packages/modoboa_postfix_autoreply/management/commands
`def add_arguments(self, parser):
"""Add extra arguments to command line."""
parser.add_argument(
"--debug", action="store_true", dest="debug", default=True
)
parser.add_argument("sender", type=unicode)
parser.add_argument("recipient", type=unicode, nargs="+")
parser.add_argument("original_recipient", type=unicode)
and modified the master.cf from postfix like this:
autoreply unix - n n - - pipe flags= user=vmail:vmail argv=/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py autoreply $sender $mailbox $original_recipient