From: SourceForge.net <no...@so...> - 2010-08-09 10:40:38
|
Feature Requests item #604281, was opened at 2002-09-04 03:10 Message generated for change (Comment added) made by nikosch You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=456913&aid=604281&group_id=49630 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Priority: 5 Private: No Submitted By: Devin Bayer (mal0rd) Assigned to: Brandon Knitter (knitterb) Summary: fix dots at beginning of file Initial Comment: When backing up subdirs of a Maildir (which begin with a dot) the resultant archive begins with a dot, making it invisible. Please don't save files that begin with a dot; instead chop the dot off. ---------------------------------------------------------------------- Comment By: Nikolaus Schulz (nikosch) Date: 2010-08-09 12:40 Message: Fixed in archivemail 0.8.0. ---------------------------------------------------------------------- Comment By: Scott Kuhl (skuhl) Date: 2004-09-11 05:30 Message: Logged In: YES user_id=941561 I don't know where documentation on the maildir structure is, but in general, if a mailbox starts with a dot, you should probably just strip off that dot in the archive name. I'm no python coder, but here is a patch that works good enough for me (this patch could very well break something that I'm missing). In version 0.6.1 this patch applies to around line 999: --- archivemail 2002-10-30 16:54:55.000000000 -0700 +++ /home/skuhl/bin/archivemail 2004-09-10 21:25:30.000000000 -0600 @@ -999,7 +999,8 @@ if mailbox_name[:7].lower() == 'imap://': final_archive_name = mailbox_name.split('/')[-1] + parsed_suffix else: - final_archive_name = mailbox_name + parsed_suffix + stripped_dot = re.sub("^\.", "", os.path.basename(mailbox_name)) + final_archive_name = os.path.dirname(mailbox_name) + stripped_dot + parsed_suffix if options.output_dir: final_archive_name = os.path.join(options.output_dir, os.path.basename(final_archive_name)) ---------------------------------------------------------------------- Comment By: Brandon Knitter (knitterb) Date: 2003-10-29 03:46 Message: Logged In: YES user_id=11101 If there are folders with a dot and without a dot (say in IMAP), a simple removal of the dot could have an unforseeable impact. I'm not familiar with maildir completely. Can you provide documentation on fht maildir structure? Sorry, I'm just taking this project over. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=456913&aid=604281&group_id=49630 |