[issue21360] mailbox.Maildir should ignore files named with a leading dot

2019-10-06 Thread Abhilash Raj


Abhilash Raj  added the comment:

David: How do you propose we move forward on this? 

Should we provide a switch to keep the original behaviour (which is off by 
default) so if there is someone depending on this bug, they could still 
continue to do it with relatively small change?

It is a change of behaviour, so probably isn't going to be back ported if it 
gets merged in 3.9 window.

--
nosy: +maxking

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21360] mailbox.Maildir should ignore files named with a leading dot

2019-02-12 Thread Zackery Spytz


Zackery Spytz  added the comment:

I've created a PR for this issue.

--
nosy: +ZackerySpytz
versions: +Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21360] mailbox.Maildir should ignore files named with a leading dot

2015-02-11 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21360
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21360] mailbox.Maildir should ignore files named with a leading dot

2015-01-02 Thread Vincent Davis

Changes by Vincent Davis vinc...@vincentdavis.com:


--
nosy: +Vincentdavis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21360
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21360] mailbox.Maildir should ignore files named with a leading dot

2014-12-31 Thread A.M. Kuchling

Changes by A.M. Kuchling a...@amk.ca:


--
nosy:  -akuchling

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21360
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21360] mailbox.Maildir should ignore files named with a leading dot

2014-05-14 Thread R. David Murray

R. David Murray added the comment:

I wonder if changing this would break any working programs.  I'd like to think 
not, but it is certainly possible for someone to be actually depending this bug.

--
components: +email
nosy: +akuchling, barry, r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21360
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21360] mailbox.Maildir should ignore files named with a leading dot

2014-04-26 Thread Lars Wirzenius

New submission from Lars Wirzenius:

The maildir format specification
(see http://cr.yp.to/proto/maildir.html) is clear that files named with leading 
dots should be ignore:

  Unless you're writing messages to a maildir, the format of a unique 
  name is none of your business. A unique name can be anything that 
  doesn't contain a colon (or slash) and doesn't start with a dot. Do not
  try to extract information from unique names.

Test case:

liw@havelock$ find Maildir -ls
89212064 drwxrwxr-x   5 liw  liw  4096 Apr 26 23:03 Maildir
89212074 drwxrwxr-x   2 liw  liw  4096 Apr 26 23:03 Maildir/cur
89212094 drwxrwxr-x   2 liw  liw  4096 Apr 26 23:03 Maildir/tmp
89212084 drwxrwxr-x   2 liw  liw  4096 Apr 26 23:03 Maildir/new
89135230 -rw-rw-r--   1 liw  liw 0 Apr 26 23:03 
Maildir/new/.foo
liw@havelock$ python -c 'import mailbox
maildir = mailbox.Maildir(Maildir)
print maildir.keys()
'
['.foo']
liw@havelock$ 

The correct output would be the empty list.

mutt -f Maildir correctly shows now messages in that folder.

--
components: Library (Lib)
messages: 217221
nosy: liw
priority: normal
severity: normal
status: open
title: mailbox.Maildir should ignore files named with a leading dot
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21360
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com