How to split value where is comma ?

2016-09-07 Thread Asad ur Rehman
Here is my view.py

import os.path
import commands

def call_report(request):
 
a = commands.getstatusoutput('/usr/local/freeswitch/bin/fs_cli -x "show 
calls"')
return HttpResponse(a)


When i run this command it gives output which you can see...


0uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,hostname,sent_callee_name,sent_callee_num,b_uuid,b_direction,b_created,b_created_epoch,b_name,b_state,b_cid_name,b_cid_num,b_ip_addr,b_dest,b_presence_id,b_presence_data,b_callstate,b_callee_name,b_callee_num,b_callee_direction,b_sent_callee_name,b_sent_callee_num,call_created_epoch
 7135c05c-7511-11e6-a09e-89a1f4981d2c,outbound,2016-09-07 
11:40:45,1473262845,sofia/external/12036325207,CS_EXECUTE,Outbound 
Call,12036325207,,12036325207,,,ACTIVE,9047125683,9047125683,RECV,7135c05c-7511-11e6-a09e-89a1f4981d2c,vb-pmedia,
 75a9d3ee-7511-11e6-a115-89a1f4981d2c,outbound,2016-09-07 
11:40:53,1473262853,sofia/external/12036325259,CS_EXECUTE,Outbound 
Call,12036325259,,12036325259,,,ACTIVE,9047125683,9047125683,RECV,75a9d3ee-7511-11e6-a115-89a1f4981d2c,vb-pmedia,
 7841c6c0-7511-11e6-a139-89a1f4981
 d2c,outbound,2016-09-07 
11:40:57,1473262857,sofia/external/16189973135,CS_EXECUTE,Outbound 
Call,16189973135,,16189973135,,,ACTIVE,3473788006,3473788006,RECV,7841c6c0-7511-11e6-a139-89a1f4981d2c,vb-pmedia,
 78582a82-7511-11e6-a141-89a1f4981d2c,outbound,2016-09-07 
11:40:57,1473262857,sofia/external/16185392123,CS_EXECUTE,Outbound 
Call,16185392123,,16185392123,,,ACTIVE,3473788006,3473788006,RECV,78582a82-7511-11e6-a141-89a1f4981d2c,vb-pmedia,
 79eda1ec-7511-11e6-a161-89a1f4981d2c,outbound,2016-09-07 
11:41:00,1473262860,sofia/external/12037584114,CS_EXECUTE,Outbound 
Call,12037584114,,12037584114,,,ACTIVE,3473788006,3473788006,RECV,79eda1ec-7511-11e6-a161-89a1f4981d2c,vb-pmedia,
 7a02bb90-7511-11e6-a169-89a1f4981d2c,outbound,2016-09-07 
11:41:00,1473262860,sofia/external/13346775290,CS_EXECUTE,Outbound 
Call,13346775290,,13346775290,,,ACTIVE,3473788006,3473788006,RECV,7a02bb90-7511-11e6-a169-89a1f4981d2c,vb-pmedia
 , 7a1fa002-7511-11e6-a179-89a1f4981d2c,outbound,2016-09-07 
11:41:00,1473262860,sofia/external/15154483189,CS_EXECUTE,Outbound 
Call,15154483189,,15154483189,,,ACTIVE,3473788006,3473788006,RECV,7a1fa002-7511-11e6-a179-89a1f4981d2c,vb-pmedia,
 7a20d864-7511-11e6-a181-89a1f4981d2c,outbound,2016-09-07 
11:41:00,1473262860,sofia/external/12036325257,CS_EXECUTE,Outbound 
Call,12036325257,,12036325257,,,ACTIVE,9047125683,9047125683,RECV,7a20d864-7511-11e6-a181-89a1f4981d2c,vb-pmedia,
 7a354cf4-7511-11e6-a191-89a1f4981d2c,outbound,2016-09-07 
11:41:00,1473262860,sofia/external/13348725798,CS_EXECUTE,Outbound 
Call,13348725798,,13348725798,,,ACTIVE,9047125683,9047125683,RECV,7a354cf4-7511-11e6-a191-89a1f4981d2c,vb-pmedia,
 7e90e128-7511-11e6-a1d4-89a1f4981d2c,outbound,2016-09-07 
11:41:07,1473262867,sofia/external/13345880337,CS_EXECUTE,Outbound 
Call,13345880337,,13345880337,,,ACTIVE,9047125683,9047125683,RECV,7e90e128-7511-11e6-a1d4-89a1f49
 81d2c,vb-pmedia, 
7e9c3514-7511-11e6-a1e8-89a1f4981d2c,outbound,2016-09-07 
11:41:08,1473262868,sofia/external/12036325256,CS_EXECUTE,Outbound 
Call,12036325256,,12036325256,,,ACTIVE,9047125683,9047125683,RECV,7e9c3514-7511-11e6-a1e8-89a1f4981d2c,vb-pmedia,
 7f3cdc62-7511-11e6-a1ff-89a1f4981d2c,outbound,2016-09-07 
11:41:09,1473262869,sofia/external/13344992844,CS_EXECUTE,Outbound 
Call,13344992844,,13344992844,,,ACTIVE,9047125683,9047125683,RECV,7f3cdc62-7511-11e6-a1ff-89a1f4981d2c,vb-pmedia,
 82179454-7511-11e6-a228-89a1f4981d2c,outbound,2016-09-07 
11:41:13,1473262873,sofia/external/16185392157,CS_EXECUTE,Outbound 


But i want to get output like this


0uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,hostname,sent_callee_name,sent_callee_num,b_uuid,b_direction,b_created,b_created_epoch,b_name,b_state,b_cid_name,b_cid_num,b_ip_addr,b_dest,b_presence_id,b_presence_data,b_callstate,b_callee_name,b_callee_num,b_callee_direction,b_sent_callee_name,b_sent_callee_num,call_created_epoch
 7135c05c-7511-11e6-a09e-89a1f4981d2c,outbound,2016-09-07 
11:40:45,1473262845,sofia/external/12036325207,CS_EXECUTE,Outbound 
Call,12036325207,,12036325207,,,ACTIVE,9047125683,9047125683,RECV,7135c05c-7511-11e6-a09e-89a1f4981d2c,vb-pmedia,
 75a9d3ee-7511-11e6-a115-89a1f4981d2c,outbound,2016-09-07 11:40:53,
1473262853,
sofia/external/1203632525,CS_EXECUTE,
Outbound Call,
12036325259,
,12036325259,
,
,ACTIVE,
9047125683,
9047125683,
RECV,
75a9d3ee-7511-11e6-a115-89a1f4981d2c,
vb-pmedia,7841c6c0-7

Re: How to split value where is comma ?

2016-09-07 Thread Peter Pearson
On Wed, 7 Sep 2016 08:51:36 -0700 (PDT), Asad ur Rehman wrote:
[snip]
> sofia/external/1203632525,CS_EXECUTE,
> Outbound Call,
> 12036325259,
> ,12036325259,
> ,
> ,ACTIVE,
> 9047125683,
> 9047125683,
> RECV,
> 75a9d3ee-7511-11e6-a115-89a1f4981d2c,
> vb-pmedia,7841c6c0-7511-11e6-a139-89a1f4981d2c,
>  outbound,2016-09-07 11:40:57,1473262857,sofia/external/16189973135,
>
> where is a comma there should start new line ... How can i do it ?

Is your question "Given a string that may contain some commas, how
do I insert a newline after each comma"?   (Note that that is *not*
what you show, but from what you show I can't tell what you want.)

-- 
To email me, substitute nowhere->runbox, invalid->com.
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: How to split value where is comma ?

2016-09-07 Thread Joaquin Alzola
> where is a comma there should start new line ... How can i do it ?

Use the split

a.split(",")
for x in a:
print(x)

This email is confidential and may be subject to privilege. If you are not the 
intended recipient, please do not copy or disclose its content but contact the 
sender immediately upon receipt.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-07 Thread D'Arcy J.M. Cain
On Wed, 7 Sep 2016 16:04:40 +
Joaquin Alzola  wrote:
> > where is a comma there should start new line ... How can i do it ?  
> 
> Use the split
> 
> a.split(",")
> for x in a:
> print(x)

Seems overly complex.

print(a.replace(',', '\n'))

> This email is confidential and may be subject to privilege. If you
> are not the intended recipient, please do not copy or disclose its
> content but contact the sender immediately upon receipt.

Do you realize how stupid it is to put this on a message sent all around
the world?

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:da...@vex.net
VoIP: sip:da...@vex.net
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-08 Thread Robin Becker

On 08/09/2016 03:54, D'Arcy J.M. Cain wrote:

On Wed, 7 Sep 2016 16:04:40 +
Joaquin Alzola  wrote:

..

This email is confidential and may be subject to privilege. If you
are not the intended recipient, please do not copy or disclose its
content but contact the sender immediately upon receipt.


Do you realize how stupid it is to put this on a message sent all around
the world?



I have worked places where they put stuff like this at the bottom of emails sent 
to the person sitting next to them :)

-raising entropy-ly yrs-
Robin Becker

--
https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-08 Thread John Gordon
In  Joaquin Alzola 
 writes:

> Use the split

> a.split(",")
> for x in a:
> print(x)

This won't work.  split() returns a list of split elements but the
original string remains unchanged.

You want something like this instead:

newlist = a.split(",")
for x in newlist:
print(x)

-- 
John Gordon   A is for Amy, who fell down the stairs
gor...@panix.com  B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-08 Thread Larry Hudson via Python-list

On 09/08/2016 07:57 AM, John Gordon wrote:

In  Joaquin Alzola 
 writes:


Use the split



a.split(",")
for x in a:
print(x)


This won't work.  split() returns a list of split elements but the
original string remains unchanged.

You want something like this instead:

newlist = a.split(",")
for x in newlist:
print(x)



Even easier...

for x in a.split(','):
print(x)

--
 -=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list


RE: How to split value where is comma ?

2016-09-08 Thread Joaquin Alzola


https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-08 Thread Rustom Mody
On Friday, September 9, 2016 at 1:36:24 AM UTC+5:30, Larry Hudson wrote:
> On 09/08/2016 07:57 AM, John Gordon wrote:
> > In  Joaquin Alzola writes:
> >
> >> Use the split
> >
> >> a.split(",")
> >> for x in a:
> >> print(x)
> >
> > This won't work.  split() returns a list of split elements but the
> > original string remains unchanged.
> >
> > You want something like this instead:
> >
> > newlist = a.split(",")
> > for x in newlist:
> > print(x)
> >
> 
> Even easier...
> 
> for x in a.split(','):
>  print(x)

In all probability, what is required is just: a.split(','); no for, no print

And unfortunately none of the answers (that I see) describe the spectrum of
what one may really want
 a.split(',')
 set(a.split(','))

Less likely (in this case) but important for a learner to be aware of:
 Counter(a.split(',')

And if the original 'a' looked something like
>>> a="p:1,q:2,r:42"

then you probably want something like:

>>> {k:v for item in a.split(',') for k,v in [item.split(':')]}
{'q': '2', 'p': '1', 'r': '42'}
>>>
In all cases the print is irrelevant and unnecessary

And if we insist on interpreting the OP request for replacing comma by newline
(almost always a misconceived request), one can do:


>>> a="p,q,r"
>>> str(a.replace(',','\n'))
'p\nq\nr'

Sure one can go one step further and do:
>>> print str(a.replace(',','\n'))
p
q
r

But this is almost always not what the requester wants (even if he thinks it is)

[Personal note: When I was a kid I thought that doctors removed fever by 
sticking
a thermometer into one’s mouth.
Those who teach that programming needs to start with writing print statements
are the same except for not having the excuse of being kids]

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-08 Thread Rustom Mody
On Friday, September 9, 2016 at 11:51:25 AM UTC+5:30, Rustom Mody wrote:
> And if the original 'a' looked something like
> >>> a="p:1,q:2,r:42"
> 
> then you probably want something like:
> 
> >>> {k:v for item in a.split(',') for k,v in [item.split(':')]}
> {'q': '2', 'p': '1', 'r': '42'}
> >>>

Well if the a did look like
>>> a="a:1,b:2,c:42"

what we would need is likely to be
>>> {k:int(v) for item in a.split(',') for k,v in [item.split(':')]}
{'a': 1, 'c': 42, 'b': 2}

Likely, but not necessary -- eg we would not want leading zeroes in a 
phone number to disappear
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-09 Thread Chris Angelico
On Fri, Sep 9, 2016 at 4:20 PM, Rustom Mody  wrote:
> [Personal note: When I was a kid I thought that doctors removed fever by 
> sticking
> a thermometer into one’s mouth.
> Those who teach that programming needs to start with writing print statements
> are the same except for not having the excuse of being kids]

I agree. People should learn that print is not a statement any more,
it's a function.

And then use it. Use it often, use it early. Know what your program is doing.

Practicality beats pure functional programming?

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: How to split value where is comma ?

2016-09-11 Thread Joaquin Alzola

>I have worked places where they put stuff like this at the bottom of emails 
>sent to the person sitting next to them :) -raising entropy-ly yrs- Robin 
>Becker

Cannot do anything about it. It is not on my MTA client and it is added by the 
company server :(

If it depended on my I will remove it but I can not do that.
This email is confidential and may be subject to privilege. If you are not the 
intended recipient, please do not copy or disclose its content but contact the 
sender immediately upon receipt.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-11 Thread Chris Angelico
On Thu, Sep 8, 2016 at 7:27 PM, Joaquin Alzola
 wrote:
>>I have worked places where they put stuff like this at the bottom of emails 
>>sent to the person sitting next to them :) -raising entropy-ly yrs- Robin 
>>Becker
>
> Cannot do anything about it. It is not on my MTA client and it is added by 
> the company server :(
>
> If it depended on my I will remove it but I can not do that.

Haven't you been reading what we've been saying? COMPLAIN. Go to
whoever you can in the company and muster up support for the removal.
Tell your bosses how stupid it makes the company look. Or just use a
different mail server.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-11 Thread Andrea D'Amore

On 2016-09-08 09:27:20 +, Joaquin Alzola said:

Cannot do anything about it. It is not on my MTA client and it is added 
by the company server :(


If it depended on my I will remove it but I can not do that.
This email is confidential and may be subject to privilege. If you are 
not the intended recipient, please do not copy or disclose its content 
but contact the sender immediately upon receipt.


At least use a signature (conventionally marked by double dash, space, 
newline) so the part that's automatically added by the mail system is 
clearly separated from the body of your message.


--
Andrea

--
https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-12 Thread Chris Angelico
On Tue, Sep 13, 2016 at 12:00 AM, jmp  wrote:
> On 09/11/2016 02:12 PM, Chris Angelico wrote:
>>
>> On Thu, Sep 8, 2016 at 7:27 PM, Joaquin Alzola
>>  wrote:

 I have worked places where they put stuff like this at the bottom of
 emails sent to the person sitting next to them :) -raising entropy-ly yrs-
 Robin Becker
>>>
>>>
>>> Cannot do anything about it. It is not on my MTA client and it is added
>>> by the company server :(
>
>
> [snip]
>
>> Tell your bosses how stupid it makes the company look.
>>
>> ChrisA
>>
>
> That could get someone into troubles. I would not follow that advice before
> considering the probable outcomes.

Yes. Consider the probable outcomes before doing it, but still do it.
If you're more important to the company than the stupid-looking
boiler-plate, it will be fired rather than you. And if you learn that
pseudo-legalese boiler-plate is more important than you are... you
probably don't want to work there anyway.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-12 Thread jmp

On 09/11/2016 02:12 PM, Chris Angelico wrote:

On Thu, Sep 8, 2016 at 7:27 PM, Joaquin Alzola
 wrote:

I have worked places where they put stuff like this at the bottom of emails 
sent to the person sitting next to them :) -raising entropy-ly yrs- Robin Becker


Cannot do anything about it. It is not on my MTA client and it is added by the 
company server :(


[snip]


Tell your bosses how stupid it makes the company look.

ChrisA



That could get someone into troubles. I would not follow that advice 
before considering the probable outcomes.


I'd rather go for the change of mail server.

jm

--
https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-12 Thread Grant Edwards
On 2016-09-12, jmp  wrote:
> On 09/11/2016 02:12 PM, Chris Angelico wrote:
>> On Thu, Sep 8, 2016 at 7:27 PM, Joaquin Alzola
>>  wrote:
 I have worked places where they put stuff like this at the bottom of 
 emails sent to the person sitting next to them :) -raising entropy-ly yrs- 
 Robin Becker
>>>
>>> Cannot do anything about it. It is not on my MTA client and it is added by 
>>> the company server :(
>
> [snip]
>
>> Tell your bosses how stupid it makes the company look.
>>
>> ChrisA
>>
>
> That could get someone into troubles.

Well, you need to be a bit diplomatic about it:

  "Just FYI, people have told me that they think our boilerplate
   disclaimer makes it seem that the company is naive and lacks an
   understanding of how the Internet works and the legalities
   involved..."

-- 
Grant Edwards   grant.b.edwardsYow! Is something VIOLENT
  at   going to happen to a
  gmail.comGARBAGE CAN?

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to split value where is comma ?

2016-09-12 Thread alister
On Mon, 12 Sep 2016 14:30:32 +, Grant Edwards wrote:

> On 2016-09-12, jmp  wrote:
>> On 09/11/2016 02:12 PM, Chris Angelico wrote:
>>> On Thu, Sep 8, 2016 at 7:27 PM, Joaquin Alzola
>>>  wrote:
> I have worked places where they put stuff like this at the bottom of
> emails sent to the person sitting next to them :) -raising
> entropy-ly yrs- Robin Becker

 Cannot do anything about it. It is not on my MTA client and it is
 added by the company server :(
>>
>> [snip]
>>
>>> Tell your bosses how stupid it makes the company look.
>>>
>>> ChrisA
>>>
>>>
>> That could get someone into troubles.
> 
> Well, you need to be a bit diplomatic about it:
> 
>   "Just FYI, people have told me that they think our boilerplate
>disclaimer makes it seem that the company is naive and lacks an
>understanding of how the Internet works and the legalities
>involved..."

Tag on

"and they are not sure the want to do business with us because of it"

that should make someone look at it first rather than simply dismiss it 
out of hand



-- 
Real Users are afraid they'll break the machine -- but they're never
afraid to break your face.
-- 
https://mail.python.org/mailman/listinfo/python-list


What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-08 Thread Ben Finney
Joaquin Alzola  writes:

>  world?
>
> Cannot do anything.

That's not true; you can do more than we.

> Added by the MTA of the company not by my client.

Right. So, here are things you can do (that we cannot) about this:

* Complain, with reasoned explanation, to the management responsible for
  deciding whether that nonsense continues to be added to every message.

  If they haven't heard the complaint before, they will no longer have
  that excuse. If they have heard the complaint before, yours will add
  to the weight of evidence that this is not wanted.

* Switch to a different mail service, one which does not add that
  nonsense to your email.

  Yes, this is inconvenient for you. But it's impossible for us to do on
  your behalf, so you are in a position of more power than us.

* Complain again to the management responsible for the ongoing decision
  to place nonsense on your email, that you have been forced to use a
  different mail system in order not to appear contemptuous of the
  communities in which you participate.

  If you are participating for reasons of benefit to the organisation,
  point out that their ongoing decision is making that more difficult
  for their employees.

These are all powers you have; please don't feel that you can do
nothing.

-- 
 \  “Isn't it enough to see that a garden is beautiful without |
  `\  having to believe that there are fairies at the bottom of it |
_o__) too?” —Douglas Adams |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list


RE: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-08 Thread Joaquin Alzola
Hi Ben

Thanks for the advice.

> * Complain

Basically what all comes down is to complain. I wonder if in a company of 
80,000 people I will manage to change that behaviour.
This email is confidential and may be subject to privilege. If you are not the 
intended recipient, please do not copy or disclose its content but contact the 
sender immediately upon receipt.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-08 Thread Chris Angelico
On Fri, Sep 9, 2016 at 7:17 AM, Joaquin Alzola
 wrote:
> Hi Ben
>
> Thanks for the advice.
>
>> * Complain
>
> Basically what all comes down is to complain. I wonder if in a company of 
> 80,000 people I will manage to change that behaviour.
> This email is confidential and may be subject to privilege. If you are not 
> the intended recipient, please do not copy or disclose its content but 
> contact the sender immediately upon receipt.
>

You are one out of eighty thousand. I am zero out of eighty thousand.
Short of suing the company or something of that nature, I have no
chance of affecting it. You _do_ have a chance, exactly as per Ben's
advice.

There is one option among Ben's suggestions that doesn't amount to "complain":

> * Switch to a different mail service, one which does not add that
>   nonsense to your email.

This amounts to "subvert". Now, if it's dead simple for you to remove
the disclaimer, the ball lands in the court of those wanting it on all
outgoing emails: they can either complain at you for omitting it, or
decide that it's not worth it. Again, this is a marked improvement;
and if you're bothered by the difficulty of changing a large and
bureaucratic organization, it's probably the easiest solution.

ChrisA

This email is overconfident and may be subject to grammar. If you are
not the intended sender, please do not confuse yourself for me but
contact the recipient immediately to report that you have lost your
marbles.
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-08 Thread Lew Pitcher
On Thursday September 8 2016 17:17, in comp.lang.python, "Joaquin Alzola"
 wrote:

> Hi Ben
> 
> Thanks for the advice.
> 
>> * Complain
> 
> Basically what all comes down is to complain. I wonder if in a company of
> 80,000 people I will manage to change that behaviour.

Why don't you, at least, include a "signature" line at the end of /your/ text.
That way, the automatically-added "confidentiality clause" will end up
appended to the signature. Since many news readers discard or suppress
display of the signature, the "confidentiality clause" won't be as much of an
issue.

> This email is 
> confidential and may be subject to privilege. If you are not the intended
> recipient, please do not copy or disclose its content but contact the sender
> immediately upon receipt.

A signature begins with a line consisting only of two hyphens followed by a
space. Any lines that follow that line are considered to be part of the
signature.

-- 
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-08 Thread Grant Edwards
On 2016-09-08, Joaquin Alzola  wrote:

> Basically what all comes down is to complain. I wonder if in a
> company of 80,000 people I will manage to change that behaviour.

Perhaps others have complained. If enough people complain, maybe
they'll do something.

After all, that boilerplate just makes the corporation look stupid and
incompetent.  Any email that leaves the corporate network must be
assumed to be visible to world+dog.  Anybody who thinks differently is
deluded and should not be allowed access to information that is
"confidential and subject to privledge".

But, I'm sure there's a lawyer somewhere who's trying to cover his
ass regardless of how foolish it looks...

> This email is confidential and may be subject to privilege. If you
> are not the intended recipient, please do not copy or disclose its
> content but contact the sender immediately upon receipt.

-- 
Grant Edwards   grant.b.edwardsYow! I'm pretending that
  at   we're all watching PHIL
  gmail.comSILVERS instead of RICARDO
   MONTALBAN!

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-08 Thread Random832
On Thu, Sep 8, 2016, at 18:13, Grant Edwards wrote:
> After all, that boilerplate just makes the corporation look stupid and
> incompetent.  Any email that leaves the corporate network must be
> assumed to be visible to world+dog.  Anybody who thinks differently is
> deluded and should not be allowed access to information that is
> "confidential and subject to privledge".

If every lawyer in the world benefits from the interpretation that this
sort of notice is legally effective (since tomorrow it may be they who
accidentaly send privileged information), who will argue in court that
it's not? The reality is more complex, and it appears that it may only
apply if the accidental recipient is a lawyer. I really can't say for
sure, since _I'm_ not a lawyer, but posted without further comment:

http://apps.americanbar.org/litigation/committees/technology/articles/winter2013-0213-do-email-disclaimers-really-work.html
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-08 Thread Chris Angelico
On Fri, Sep 9, 2016 at 11:05 AM, Dennis Lee Bieber
 wrote:
> I suspect, like the last two companies I've worked for -- corporate IT
> policy is to block any access to non-corporate email systems. (Heck, my
> current company is so paranoid that it adds "EXT:" to the subject of
> incoming emails that did not originate from another employee!
>
> I haven't checked to see if GMAIL on a Samsung tablet can get through
> if using the corporate "guest" WiFi system. Pretty sure if I tether to my
> Blackberry phone it would work.

The most common way to access Gmail is HTTP, so it would be difficult
to mess with the emails as they go through. (You could block it, I
guess, but it'd have to be some sort of IP address blacklist - you
can't just say "no access to port 25 or 110".) And yes, if you tether
to your phone, you should get past the problems. That might be a
_little_ inconvenient though.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-08 Thread Jussi Piitulainen
Grant Edwards writes:

> On 2016-09-08, Joaquin Alzola  wrote:
>
>> Basically what all comes down is to complain. I wonder if in a
>> company of 80,000 people I will manage to change that behaviour.
>
> Perhaps others have complained. If enough people complain, maybe
> they'll do something.
>
> After all, that boilerplate just makes the corporation look stupid and
> incompetent.  Any email that leaves the corporate network must be
> assumed to be visible to world+dog.  Anybody who thinks differently is
> deluded and should not be allowed access to information that is
> "confidential and subject to privledge".

I read Lebara's "Vision" and "Mission" and I remember that whenever
Lebara says anything, they end it with that rude disclaimer. I don't
want to get in touch with Lebara. That's how stupid it is.

> But, I'm sure there's a lawyer somewhere who's trying to cover his
> ass regardless of how foolish it looks...

As if Lebara's real mission is to cover their lawyers' asses.

>> This email is confidential and may be subject to privilege. If you
>> are not the intended recipient, please do not copy or disclose its
>> content but contact the sender immediately upon receipt.

Spammers should use a disclaimer like that. Then people would not dare
to delete the spam without first confirming to the spammer that they
read their spam. Or not.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-09 Thread Rustom Mody
On Friday, September 9, 2016 at 2:37:48 AM UTC+5:30, Ben Finney wrote:
> Joaquin Alzola writes:
> > Added by the MTA of the company not by my client.
> 
> Right. So, here are things you can do (that we cannot) about this:
> * Switch to a different mail service, one which does not add that
>   nonsense to your email.

Here is a recent action of google that has received at the moment 337,048
petitions:
https://www.change.org/p/google-inc-google-put-palestine-on-your-maps

Do you believe that Google is more ethical than Lebara?

Ok you didn't suggest to use gmail (ie google) specifically

So what do you suggest to people (like myself) who’s primary email is gmail
and are incensed with such actions??
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-09 Thread Steve D'Aprano
On Fri, 9 Sep 2016 04:59 pm, Rustom Mody wrote:

> On Friday, September 9, 2016 at 2:37:48 AM UTC+5:30, Ben Finney wrote:
>> Joaquin Alzola writes:
>> > Added by the MTA of the company not by my client.
>> 
>> Right. So, here are things you can do (that we cannot) about this:
>> * Switch to a different mail service, one which does not add that
>>   nonsense to your email.
> 
> Here is a recent action of google that has received at the moment 337,048
> petitions:
> https://www.change.org/p/google-inc-google-put-palestine-on-your-maps
> 
> Do you believe that Google is more ethical than Lebara?

Hell no!

http://img0.joyreactor.com/pics/post/comics-google-facebook-245504.jpeg

But in this specific case, Google is not entirely in the wrong re Palestine.
It *is* a disputed area, and Google cannot satisfy everyone no matter what
they do.

If you search for "Palestine" in Google Maps, you get a map which (at least
in Australia) clearly shows the West Bank and Gaza Strip as disputed
territories:

https://www.google.com.au/maps/place/Palestine/

More here:

https://www.theguardian.com/technology/2016/aug/10/google-maps-accused-remove-palestine

http://opennews.kzhu.io/map-disputes/?_ga=1.48243875.420098949.1397702661



> Ok you didn't suggest to use gmail (ie google) specifically
> 
> So what do you suggest to people (like myself) who’s primary email is
> gmail and are incensed with such actions??

Whatever you do, don't use Yahoo Mail or AOL unless there is *absolutely* no
other alternative. They are actively hostile to mailing lists and even
worse for good email practice than Gmail.

I don't know about others, but most ISPs in Australia offer at least one
email address per customer. So although there aren't many *great*
alternatives to Gmail, there are some good and so-so alternatives:


* run your own mail server (easy enough that I can do it)
* your work or school email
* your ISP email
* Outlook.Com (Hotmail)





-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-09 Thread D'Arcy J.M. Cain
On Thu, 08 Sep 2016 18:27:44 -0400
Random832  wrote:
> If every lawyer in the world benefits from the interpretation that
> this sort of notice is legally effective (since tomorrow it may be
> they who accidentaly send privileged information), who will argue in
> court that it's not? The reality is more complex, and it appears that
> it may only apply if the accidental recipient is a lawyer. I really

I often wonder if these automatic disclaimers actually remove any
protection that they might have if they were used judiciously.  If they
had any validity wouldn't the fact that they are attached to every
email, even ones obviously meant for the public, give someone an
argument that they don't really apply?

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:da...@vex.net
VoIP: sip:da...@vex.net
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-09 Thread Grant Edwards
On 2016-09-08, Random832  wrote:
> On Thu, Sep 8, 2016, at 18:13, Grant Edwards wrote:
>> After all, that boilerplate just makes the corporation look stupid and
>> incompetent.  Any email that leaves the corporate network must be
>> assumed to be visible to world+dog.  Anybody who thinks differently is
>> deluded and should not be allowed access to information that is
>> "confidential and subject to privledge".
>
> If every lawyer in the world benefits from the interpretation that this
> sort of notice is legally effective (since tomorrow it may be they who
> accidentaly send privileged information), who will argue in court that
> it's not?

Anybody who benefits from it not being effective -- like the NYT
reporter who broke a front page story based on a misdirected email
(described in the article to which you linked).

-- 
Grant Edwards   grant.b.edwardsYow! Is this sexual
  at   intercourse yet??  Is it,
  gmail.comhuh, is it??

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-09 Thread Steve D'Aprano
On Fri, 9 Sep 2016 08:13 am, Grant Edwards wrote:

> After all, that boilerplate just makes the corporation look stupid and
> incompetent.  

I wish that were true.

Unfortunately, in the corporate world, it *doesn't* make them look stupid
and incompetent. It makes them look conventional, careful, diligent and
responsible, and depending on how it is worded, perhaps even a little
scary:

"We say that we care about the confidentiality of what we do. Don't
mess with us, because we have a lawyer and aren't afraid to use it!"

To a certain type of mindset, failure to include that boilerplate would look
stupid and incompetent. Even if it is a legal bluff, it may discourage some
people from misusing the email or forwarding it on, a bit like the legal
equivalent of fake security cameras that look like the real thing but don't
actually work.

And I doubt it is being driven by lawyers, who surely know how dubious this
is. Its not lawyers who insist on adding restraint of trade and non-compete
clauses that they know won't stand up in court, and I doubt it is lawyers
insisting on this boiler plate. But then lawyers will also know that
there's no (legal) harm done by including the message: within fairly broad
limits, they can *say* anything they like.

"If you are not the intended recipient, stop reading immediately and
seek medical attention. If you read this email without approval, you
will suffer a severe and irreversible brain embolism."

And besides, I wouldn't be *entirely* sure that it is nothing but a bluff,
particularly when wealthy corporations are involved. Privacy and
confidentiality are intangibles where the result can depend on all sorts of
factors, such as how deep the pockets of the plaintiff are, and whether the
government of the day wants to defend or attack freedom of speech and/or
privacy. Or even outright legal fraud, which is how we got corporations
considered to be legal persons.



-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.

-- 
https://mail.python.org/mailman/listinfo/python-list