5 Commits

Author SHA1 Message Date
4cb77488bc Bump the version to 0.7.13. 2024-09-23 21:34:04 +02:00
6f8e688a46 Merge branch 'master' of github.com:dspiljar/mboxgrep 2024-09-23 16:04:20 +02:00
d8f44235f5 Fix Automake to include AUTHORS.md. 2024-09-23 14:37:53 +02:00
6e9600426a Minor update to the man and info pages
Sync the examples section, refer to RFC 4155 for the mbox mailbox
format, and add URLs to Gitea and Github.
2024-09-23 13:15:05 +02:00
b4d3034c8c Minor update to the man and info pages
Sync the examples section, refer to RFC 4155 for the mbox mailbox
format, and add URLs to Gitea and Github.
2024-09-23 12:59:51 +02:00
7 changed files with 56 additions and 28 deletions

View File

@@ -1,2 +1,2 @@
SUBDIRS = doc src SUBDIRS = doc src
EXTRA_DIST = contrib COPYING.md INSTALL.md NEWS.md README.md TODO.md EXTRA_DIST = contrib COPYING.md INSTALL.md NEWS.md README.md TODO.md AUTHORS.md

View File

@@ -1,5 +1,12 @@
# Changes of mboxgrep # Changes of mboxgrep
## Changes in 0.7.13
- Improve the readability of this file.
- Failure to lock a file (mbox) is now a fatal error.
- Fix Autoconf on Windows.
- Code refactoring, mostly of mbox-related functions.
## Changes in 0.7.12a ## Changes in 0.7.12a
- Fix Automake macros to include the license file and others. - Fix Automake macros to include the license file and others.

View File

@@ -1,5 +1,5 @@
# mboxgrep - scan mailbox for messages matching a regular expression # mboxgrep - scan mailbox for messages matching a regular expression
# Copyright (C) 2000 - 2003, 2023 Daniel Spiljar # Copyright (C) 2000 - 2003, 2023 - 2024 Daniel Spiljar
# #
# Mboxgrep is free software; you can redistribute it and/or modify it # Mboxgrep is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
# Process this file with autoconf to produce a configure script. # Process this file with autoconf to produce a configure script.
# Yawn. # Yawn.
AC_INIT([mboxgrep], [0.7.12a], [dspiljar@datatipp.se], [mboxgrep], [https://www.mboxgrep.org/]) AC_INIT([mboxgrep], [0.7.13], [dspiljar@datatipp.se], [mboxgrep], [https://www.mboxgrep.org/])
#AM_INIT_AUTOMAKE #AM_INIT_AUTOMAKE
AM_INIT_AUTOMAKE([foreign]) AM_INIT_AUTOMAKE([foreign])
AC_LANG([C]) AC_LANG([C])

View File

@@ -1,4 +1,4 @@
.TH MBOXGREP 1 "21 May 2023" .TH MBOXGREP 1 "23 September 2024"
.SH NAME .SH NAME
mboxgrep \- displays email messages matching a pattern mboxgrep \- displays email messages matching a pattern
.SH SYNOPSIS .SH SYNOPSIS
@@ -10,7 +10,7 @@ mboxgrep \- displays email messages matching a pattern
This manual page refers to This manual page refers to
.B mboxgrep .B mboxgrep
version version
.BR 0.7.12a . .BR 0.7.13 .
.PP .PP
.B mboxgrep .B mboxgrep
scans a scans a
@@ -97,10 +97,26 @@ Search $MAIL for messages from Dirty Harry:
mboxgrep '^From:.*callahan@sanfranciscopolice\\.org' $MAIL mboxgrep '^From:.*callahan@sanfranciscopolice\\.org' $MAIL
.TP .TP
\(bu \(bu
Re-mail to George messages that mention his name:
.PP
mboxgrep --pipe="/usr/lib/sendmail george" --ignore-case george ~/Mail/*
.TP
\(bu
Display all messages contained in folder ~/Mail/incoming, except those Display all messages contained in folder ~/Mail/incoming, except those
that appear to originate from AOL: that appear to originate from AOL:
.PP .PP
mboxgrep -v 'Received:.*aol\\.com' ~/Mail/incoming mboxgrep -v 'Received:.*aol\\.com' ~/Mail/incoming
.TP
\(bu
Do a case-insensitive scan of ~/Mail/incoming for messages with subject
``Weekly News'' and write them to folder ~/Mail/archive:
.PP
mboxgrep -o ~/Mail/archive -H -i '^Subject: Weekly News' ~/Mail/incoming
.TP
\(bu
Count all messages stored in folder spam, ignoring duplicates:
.PP
mboxgrep -nd -c . spam
.SH BUGS .SH BUGS
Report them to address below. Report them to address below.
.SH SEE ALSO .SH SEE ALSO
@@ -108,7 +124,8 @@ grep(1),
regex(7), regex(7),
perlre(1), perlre(1),
mbox(5), mbox(5),
RFC 2822 RFC 2822,
RFC 4155
.SH DEDICATION .SH DEDICATION
Mboxgrep is dedicated in loving memory of Vicky, my cat who died of Mboxgrep is dedicated in loving memory of Vicky, my cat who died of
tumor on Sep 12, 2002. tumor on Sep 12, 2002.
@@ -116,7 +133,11 @@ tumor on Sep 12, 2002.
You haven't been long with us, but you gave us a lot of joy and all your You haven't been long with us, but you gave us a lot of joy and all your
big heart that stopped ticking too early. I will never forget you. Sleep big heart that stopped ticking too early. I will never forget you. Sleep
well, little friend. well, little friend.
.SH URL .SH HOMEPAGE
http://www.mboxgrep.org/ https://www.mboxgrep.org/
.SH GIT
https://git.datatipp.se/dspiljar/mboxgrep
.PP
https://github.com/dspiljar/mboxgrep
.SH AUTHOR .SH AUTHOR
Daniel Spiljar <dspiljar AT datatipp.se> Daniel Spiljar <dspiljar@datatipp.se>

View File

@@ -9,10 +9,10 @@ END-INFO-DIR-ENTRY
 
File: mboxgrep.info, Node: Top, Up: (dir) File: mboxgrep.info, Node: Top, Up: (dir)
This file documents 'mboxgrep' (version 0.7.12a), a mailbox scanning This file documents 'mboxgrep' (version 0.7.13), a mailbox scanning
utility. utility.
Copyright (C) 2000, 2001, 2002, 2003 Daniel Spiljar Copyright (C) 2000 - 2003, 2024 Daniel Spiljar
* Menu: * Menu:
@@ -250,17 +250,17 @@ Sleep well, little friend.
 
Tag Table: Tag Table:
Node: Top197 Node: Top197
Node: Introduction597 Node: Introduction591
Node: Invoking1466 Node: Invoking1460
Node: Miscellaneous1828 Node: Miscellaneous1822
Node: File locking2113 Node: File locking2107
Node: Regexp selection2750 Node: Regexp selection2744
Node: Output control3302 Node: Output control3296
Node: Search scope selection4342 Node: Search scope selection4336
Node: Mailbox type selection4583 Node: Mailbox type selection4577
Node: Examples4904 Node: Examples4898
Node: Bugs5728 Node: Bugs5722
Node: To Vicky6146 Node: To Vicky6140
 
End Tag Table End Tag Table

View File

@@ -5,8 +5,8 @@
@setchapternewpage odd @setchapternewpage odd
@set EDITION 0.7 @set EDITION 0.7
@set VERSION 0.7.12a @set VERSION 0.7.13
@set UPDATED 21 May 2023 @set UPDATED 23 September 2024
@dircategory Mail @dircategory Mail
@direntry @direntry
@@ -19,7 +19,7 @@
This file documents @code{mboxgrep} (version @value{VERSION}), a This file documents @code{mboxgrep} (version @value{VERSION}), a
mailbox scanning utility. mailbox scanning utility.
Copyright (C) 2000, 2001, 2002, 2003 Daniel Spiljar Copyright (C) 2000 - 2003, 2024 Daniel Spiljar
@end ifinfo @end ifinfo
@menu @menu

View File

@@ -1,6 +1,6 @@
/* /*
mboxgrep - scan mailbox for messages matching a regular expression mboxgrep - scan mailbox for messages matching a regular expression
Copyright (C) 2000 - 2003, 2006, 2023 Daniel Spiljar Copyright (C) 2000 - 2003, 2006, 2023 - 2024 Daniel Spiljar
Mboxgrep is free software; you can redistribute it and/or modify it Mboxgrep is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@
#define MBOXGREP_H #define MBOXGREP_H
#define APPNAME "mboxgrep" #define APPNAME "mboxgrep"
#define VERSION "0.7.12a" #define VERSION "0.7.13"
#define BUGREPORT_ADDR "dspiljar AT datatipp.se" #define BUGREPORT_ADDR "dspiljar@datatipp.se"
#define HOST_NAME_SIZE 256 #define HOST_NAME_SIZE 256