Commit Graph

26 Commits

Author SHA1 Message Date
Jonas Bernoulli f31d1b065d Fix typos 2019-11-06 16:13:39 +01:00
djcb 99423234b8 mu: fix some compiler warnings 2017-06-24 12:20:16 +02:00
djcb 1494923472 mu: fix broken clear_links
clear_links as used for the --clear-links option had some broken
filename generation, causing garbage data at the end.

Clean up this old code, and fix this problem as a side-effect.

Fixes issue #951.
2016-11-19 16:30:09 +02:00
djcb 7526f118ba mu: some cosmetics / minor cleanup 2016-10-26 22:36:40 +03:00
djcb 9477071e63 mu: add '--lazy-check' option for indexing
Add an option --lazy-check to ignore any directories that don't have
their ctime changed since the last indexing operation.

There are a few corner-cases (such as editing a message outside mu's
control) where this might miss a change, but apart from that, makes
indexing in for a maildir (and its sub-maildirs) almost a no-op if there
were no changes.
2016-07-23 21:33:10 +03:00
djcb 3e6267fd05 mu-maildir: ignore backup/temporary files
Ignore backup/temporary files, i.e., files ending in ~ or #.

Fixes #855.
2016-06-05 19:29:53 +03:00
djcb 8d4b866383 Fix some compiler warnings 2016-02-14 12:13:11 +02:00
djcb b21eabf954 mu: overwrite duplicate target files
over write target files when moving (when they seem to be the
same). Should make the case where you have copies a bit smoother.
2015-12-24 16:06:51 +02:00
djcb 6df9322257 Fix typo near get_new_basename
And clear op the function a bit.
2015-11-18 15:55:34 +02:00
djcb 539bd9be19 Fix message file creation
Make sure we 0-pad the numeric parts in message file names; this was
breaking some unit test.
2015-11-18 09:50:36 +02:00
djcb a350e2047d Change format for filenames
It seems some tools try to interpret the filename of message files,
even though they shouldn't:
   "Do not try to extract information from unique names."

In particular, they seem to interpret the first part of the name (before
the first dot) as the # of seconds since the Unix epoch (ie.,
time(NULL)). That's not what mu/mu4e put there.

So, let's conform a bit more to the expected filename (as per the
maildir spec), so we're not confusing those tools.
2015-10-02 17:43:38 +03:00
djcb 7eb244b3b0 mu: don't use __FUNCTION__, use __func__
__FUNCTION__ is deprecated and gives compilation warnings. __func__ is
standardized in c99.
2015-04-22 21:06:31 +03:00
djcb 0364433cc1 * minor 2013-12-01 20:21:44 +02:00
djcb 7fe37334b5 * cosmetics 2013-06-24 22:44:36 +03:00
djcb 7cb3bb9e36 * lib: make renaming messages upon moving them optional 2013-05-25 19:27:54 +03:00
djcb 89bdaafb15 * create a new filename (basename) when copying 2013-05-22 00:06:10 +03:00
djcb 4174ac7ed2 * fix a few compiler warnings 2013-05-13 22:30:27 +03:00
djcb 855e81db99 * update copyright years 2013-03-30 11:32:07 +02:00
djcb 87e61b7a3e * mu-maildir: hide some innocent errors 2012-09-15 18:03:23 +03:00
djcb cf2b81c009 * lib: centralize MAX_PATH stuff 2012-08-03 18:43:59 +03:00
djcb e792c61f32 * mu4e: when moving messages, always reset the N flag
(since N (new) messages cannot have any other flags, you would loose
  e.g. the T flag when moving to trash; now, we remove the N flag, and the T
  flag remains)
2012-06-23 10:11:18 +03:00
djcb 4dadca3a8d * mu-maildir: preserve custom (non-standard) maildir file flags 2012-06-13 09:10:22 +03:00
djcb 895ab10a4b * optionally ignore invalid (unknown) message flag letters, update callers 2012-06-01 14:03:43 +02:00
djcb 7008e108ae * mu-maildir.c: fix compiler warning 2012-06-01 12:35:46 +02:00
djcb 9367f1ac6d * support '.noupdate' -- similar to '.noindex', maildirs containing
'.noupdate' will be ignored; however, they will _not_ be ignored when doing
  a full update (--rebuild)
2012-05-22 10:19:49 +03:00
djcb 46f10cfde9 * refactoring: split src/ into mu/ and lib/ 2012-05-21 09:25:53 +03:00