Open
Conversation
Author
|
Note: Just noticed that this approach somehow does not work when sending an email via "mail root" when having aliases set up. When sending a mail through "mail [email protected]" it works. I will try to figure out what the problem is there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I had the same problem as described in #75. It has bugged me quite a few times and I saw the work already done by jjakob in #96 and so I thought I'll give it a shot.
I have not coded C for a very long time, so I am not sure if this is the best way to do things. It works fine on my system now and I would be very happy if it could also help others. I'm happy to get feedback and would change the code as needed.
Basically this is the simplest form of fixing the error with cron etc.: If the
REPLACEFROMsetting is set in the config file (e.g.REPLACEFROM [email protected]) then the header-from will always be replaced with the mail address passed in the config (even if there is no header-from existent at all). The old header-from (e.g. "From: root") is not saved anywhere.PS: Not sure if I made the changes right in
dma.8, never worked with that before.