Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorporate log file timestamp into subject line when mailing log #221

Open
cgzones opened this issue Aug 23, 2018 · 1 comment
Open

incorporate log file timestamp into subject line when mailing log #221

cgzones opened this issue Aug 23, 2018 · 1 comment
Labels

Comments

@cgzones
Copy link
Member

cgzones commented Aug 23, 2018

From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=431601:

Often logs don't include year information, and once a log is emailed, 
the original file timestamps are lost.

I propose an enhancement that would grab the file timestamp and 
incorporate it into the subject line. Something like:

Subject: /var/log/syslog/mail.log [2006-06-02]


Under some circumstances, when using the "dateext" directive, the date 
extension will be present in the subject and meet this requirement, but 
it appears inconsistently (see my other bug report) and the above could 
work consistently regardless of whether "dateext" was in use.

Which file timestamp (mtime, ctime?) should be used for this purpose is 
another matter...

 -Tom
@kdudka
Copy link
Member

kdudka commented Aug 23, 2018

I think this would need to be optional so that we do not break consumers of the current format of subject.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants