Evolution changes names of attachments

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Evolution changes names of attachments

Gnome Evolution - General mailing list
Hello and good evening!

I'm using evolution on my Linux PC

evolution: 3.36.4-0ubuntu1
ubuntu Version 20.04.1 LTS, Mate 1.24.0, Kernel Linux 5.4.0-51 generic
x86_64

When storing attachments, their names will be changed!
Example: original:>one two three.jpg<, new:>one_two_three.jpg<

All empty fields will be changed in underlines.

What can I do?

Thank you for your help
Werner

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution changes file names of attachments (underscores instead of spaces)

theapplepie@differentmail.com
> evolution: 3.36.4-0ubuntu1
> ubuntu Version 20.04.1 LTS, Mate 1.24.0, Kernel Linux 5.4.0-51
> generic
> x86_64
>
> When storing attachments, their names will be changed!
> Example: original:>one two three.jpg<, new:>one_two_three.jpg<
>
> All empty fields will be changed in underlines.
>
> What can I do?

I have the same problem and was about to email to the list but had no
time yet. I am eager to know more about this behaviour and whether the
replacing of spaces in the file name with underscores (underline, low
line, or low dash) can be turned off in some way.

3.36.4-0ubuntu1, Ubuntu 20.04.1 LTS
(It also happened with previous Evolution versions, though.)

Thanks in advance!

Dan

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution changes file names of attachments (underscores instead of spaces)

Gnome Evolution - General mailing list
On Thu, 2020-10-29 at 12:16 +0100, [hidden email] wrote:
evolution: 3.36.4-0ubuntu1
ubuntu Version 20.04.1 LTS, Mate 1.24.0, Kernel Linux 5.4.0-51
generic
x86_64

When storing attachments, their names will be changed!
Example: original:>one two three.jpg<, new:>one_two_three.jpg<

All empty fields will be changed in underlines.

What can I do?

I have the same problem and was about to email to the list but had no
time yet. I am eager to know more about this behaviour and whether the
replacing of spaces in the file name with underscores (underline, low
line, or low dash) can be turned off in some way.

3.36.4-0ubuntu1, Ubuntu 20.04.1 LTS
(It also happened with previous Evolution versions, though.)

I'm sure someone will correct me, but  space ( as well as a host of others ) in filenames are a pain in the arse on 
any Unix based (Unix, AIX, Linux, BSD) based OS, which means it takes lots of special code to handle.  Translation 
of "special"  characters like  spaces, &, *, etc  is a simple operation which eliminates lots code ( and therefore lots 
of bugs ).

Additionally,  if you try to handle  one two three.jpg  from the command line,  you will have to resort to quoting or 
regular expression matching to access the file.    Otherwise you get results like:

ls one two three.jpg
ls: cannot access 'one': No such file or directory
ls: cannot access 'two': No such file or directory
three.jpg

verses

ls one_two_three.jpg
one_two_three.jpg



_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution changes file names of attachments (underscores instead of spaces)

Pete Biggs

>
> I'm sure someone will correct me, but  space ( as well as a host of others ) in filenames are a pain in the arse on
> any Unix based (Unix, AIX, Linux, BSD) based OS, which means it takes lots of special code to handle.  Translation
> of "special"  characters like  spaces, &, *, etc  is a simple operation which eliminates lots code ( and therefore lots
> of bugs ).

Yes, spaces are a real pain and if you do a search on something like
"spaces underscore" virtually everything is "how do I replace spaces
with an underscore", not the other way round.

Nevertheless, spaces are a valid character in filenames and it seems
not quite right to replace them without warning, no matter how much
pain it saves!

P.


_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution changes file names of attachments (underscores instead of spaces)

Adam Tauno Williams
In reply to this post by Gnome Evolution - General mailing list
On Thu, 2020-10-29 at 08:50 -0500, Japhering, Anonymous via evolution-
list wrote:

> On Thu, 2020-10-29 at 12:16 +0100, [hidden email]
> wrote:
> > > evolution: 3.36.4-0ubuntu1
> > > When storing attachments, their names will be changed!
> > > Example: original:>one two three.jpg<, new:>one_two_three.jpg<
> > > All empty fields will be changed in underlines.
> > > What can I do?
> I'm sure someone will correct me, but  space ( as well as a host of
> others ) in filenames are a pain in the arse on
> any Unix based (Unix, AIX, Linux, BSD) based OS, which means it takes
> lots of special code to handle.  Translation

I will correct you - I develop ETL & WebDAV stuff - filenames with
spaces and "special" characters are not a problem on UNIX systems.  Not
at all.

They can be a real annoyance for things like shell scripts which
manipulate files based on name AND assume characters have meaning.  
They aren't a problem anywhere else [ just stop writing shell scripts
].

> of "special"  characters like  spaces, &, *, etc  is a simple
> operation which eliminates lots code ( and therefore lots
> of bugs )

Nope.

> Additionally,  if you try to handle  one two three.jpg  from the
> command line,  you will have to resort to quoting or
> regular expression matching to access the file.

If you aren't quoting filenames you have a serious security problem.  

On modern systems tab completion will do this for you.

On the other hand, I don't have any issues with Evolution changing the
filename.  What's that sensitive to filenames?  Technically, however,
the client shouldn't manipulate the payload of the message.

--
Adam Tauno Williams <mailto:[hidden email]> GPG D95ED383
OpenGroupware Developer <http://www.opengroupware.us/>

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution changes file names of attachments (underscores instead of spaces)

Gnome Evolution - General mailing list
On Thu, 2020-10-29 at 11:24 -0400, Adam Tauno Williams wrote:
> Technically, however, the client shouldn't manipulate the payload of
> the message.

        Hi,
I'd say Evolution only tries to avoid problems with some "reserved"
characters, being it wild cards (?*) or the directory separators (\/)
or event the colon (:), being it on Windows. And any unprintable
characters. Maybe it's too aggressive here, it can skip at least the
space.

I do not have any strong opinion here. If anyone of you would like to
file a ticket for it [1], I can change it. I only want to have the
ticket for some history and a place where to claim potential follow up
issues with any such change. Would it be just the space, or more
letters? The current set is: " /'\"`&();|<>$%{}!#" (with backslash,
colon, question mark and the star added for Windows).

        Bye,
        Milan

[1] https://gitlab.gnome.org/GNOME/evolution/issues/new

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution changes file names of attachments (underscores instead of spaces)

Gnome Evolution - General mailing list
On Thu, 2020-10-29 at 19:01 +0100, Milan Crha via evolution-list wrote:
The current set is: " /'\"`&();|<>$%{}!#" (with backslash,
colon, question mark and the star added for Windows).

Personally I'd like to at least have an option to include space in the set as I prefer not to have spaces in my filenames and it is quite useful to have filenames that are being imported to my system automatically cleaned.

Even more ideal would be to make the entire set configurable with a corresponding replacement set - not everything should be replaced with an underscore, you might want some chars simply stripped out (eg single quote and double quote)

RogerCO 

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution changes file names of attachments (underscores instead of spaces)

theapplepie@differentmail.com
> > The current set is: " /'\"`&();|<>$%{}!#" (with backslash,
> > colon, question mark and the star added for Windows).
>
> Personally I'd like to at least have an option to include space in
> the
> set as I prefer not to have spaces in my filenames and it is quite
> useful to have filenames that are being imported to my system
> automatically cleaned.
>
> Even more ideal would be to make the entire set configurable with a
> corresponding replacement set - not everything should be replaced
> with
> an underscore, you might want some chars simply stripped out (eg
> single
> quote and double quote)
> The current set is: " /'\"`&();|<>$%{}!#" (with backslash,
> colon, question mark and the star added for Windows).

Finally I found time to reply. A ticket is filed (
https://gitlab.gnome.org/GNOME/evolution/-/issues/1208).

I agree with Roger: it would be great to have an option to choose the
behaviour or have it turned off by default!

Thanks in advance for looking into this!

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list