Re: my email

2012-08-01 Thread BJ Swope
I would also recommend changing your birthday as well ;) -- The end of democracy and the defeat of the American Revolution will occur when government falls into the hands of lending institutions and moneyed incorporations. -- Thomas Jefferson The whole world is a comedy to those that think, a

Re: Inconsistent SMTP/Gmail connection drop

2011-08-05 Thread BJ Swope
The best tool to debug this is tcpdump. Running a packet capture whilst sending the mail will most likely shed the most light on the subject. -- -- http://mail.python.org/mailman/listinfo/python-list

Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

2011-02-16 Thread BJ Swope
Imap is not on port 443. IIRC, it's late and I'm to lazy to even google it right now, but it's port 143 isn't it. On Wed, Feb 16, 2011 at 11:58 PM, Andrea Gavana andrea.gav...@gmail.comwrote: Hi All, I apologize in advance if I'm going to write very stupid things, my expertise in

Passing Variable(s) as kwargs

2010-12-06 Thread BJ Swope
Hello All. I am trying to use values, retrieved from a config file, as kwargs and not having any luck. Well at least I think that's what I'm trying to do ;) Any suggestions would be most appreciated. Here's the exception: Traceback (most recent call last): File

Re: Passing Variable(s) as kwargs

2010-12-06 Thread BJ Swope
It's complaining that the 'minute' argument which you're passing to 'add_cron_job' is '*/run_interval_quantity', which the scheduler doesn't understand. -- Hey, what do you know, there's a forest amongst all those trees... key_words = '*/%d' % (run_interval_quantity)

Python does not allow a variable named pass

2010-04-11 Thread BJ Swope
I am trying to automate access to a web page that has forms based authentication. The password field is named pass which python is not going to like. Other than asking the website owner to change the name of the field how can I go about passing that field in the form post? dev:~$ python Python

Re: Python does not allow a variable named pass

2010-04-11 Thread BJ Swope
urllib.urlencode({'pass' : 'foo'}) 'pass=foo' --- Giampaolo http://code.google.com/p/pyftpdlib http://code.google.com/p/psutil -- http://mail.python.org/mailman/listinfo/python-list Thank you! -- http://mail.python.org/mailman/listinfo/python-list

Re: Spam from gmail (Was: fascism)

2010-02-25 Thread BJ Swope
If you like, but I tend to interpret meta- as idempotent. It's easier on my aspirin budget. -- Robert Kern And here I thought it was little blue pills for idempotentcy... Life is a sexually transmitted disease with a 100% fatality rate. -- brazzy Auburn fans are like slinkys... not

TypeError Exception in email lib

2010-02-15 Thread BJ Swope
File /usr/lib/python2.5/email/_parseaddr.py, line 142, in mktime_tz if data[9] is None: TypeError: 'NoneType' object is unsubscriptable I'm parsing a bunch of spam and using the date field from the spams for a date-time stamp. I've fixed the lib on my box to place the call inside a

Re: TypeError Exception in email lib

2010-02-15 Thread BJ Swope
On Mon, Feb 15, 2010 at 2:31 PM, Stephen Hansen apt.shan...@gmail.com wrote: On Mon, Feb 15, 2010 at 10:53 AM, BJ Swope bigbluesw...@gmail.com wrote:  File /usr/lib/python2.5/email/_parseaddr.py, line 142, in mktime_tz    if data[9] is None: TypeError: 'NoneType' object is unsubscriptable

Re: TypeError Exception in email lib

2010-02-15 Thread BJ Swope
On Mon, Feb 15, 2010 at 2:47 PM, BJ Swope bigbluesw...@gmail.com wrote: On Mon, Feb 15, 2010 at 2:31 PM, Stephen Hansen apt.shan...@gmail.com wrote: On Mon, Feb 15, 2010 at 10:53 AM, BJ Swope bigbluesw...@gmail.com wrote:  File /usr/lib/python2.5/email/_parseaddr.py, line 142, in mktime_tz

Re: TypeError Exception in email lib

2010-02-15 Thread BJ Swope
On Mon, Feb 15, 2010 at 3:42 PM, MRAB pyt...@mrabarnett.plus.com wrote: BJ Swope wrote: [snip] def clean_stale_mail():    msg_date1= the_email.get('Date') What is the value of 'msg_date1' at this point?    msg_date2 = email.utils.parsedate_tz(msg_date1) What is the value of 'msg_date2

Re: ftplib retrlines timeout

2009-12-16 Thread BJ Swope
I've had experiences with some python mail servers that time out connections if data from the socket is not sent to the application within the timeout parameter. I have seen a python app on FreeBSD that would timeout a connection after 600 seconds if freebsd did not receive at least 32 kb of data

Re: ftplib retrlines timeout

2009-12-16 Thread BJ Swope
If it works like I've seen other python based network apps that have app timeouts, and Brandon's post seemed to indicate that his timed out during the readline portion of the FTP transfer. Auburn fans are like slinkys... not really good for anything but they still bring a smile to your face

Re: Split string but ignore quotes

2009-09-29 Thread BJ Swope
Would the csv module be appropriate? On 9/29/09, Scooter slbent...@gmail.com wrote: I'm attempting to reformat an apache log file that was written with a custom output format. I'm attempting to get it to w3c format using a python script. The problem I'm having is the field-to-field matching.

Re: Dynamic Form

2009-09-24 Thread BJ Swope
1. Did you try the headers for no-caching of the page? 2. If you wish to avoid dupes in a DB, Primary Keys are the tool to prevent duplicates. On Thu, Sep 24, 2009 at 11:01 AM, victorsubervi victorsube...@gmail.comwrote: in line... On Wed, Sep 23, 2009 at 9:13 PM, BJ Swope bigbluesw

Re: Dynamic Form

2009-09-23 Thread BJ Swope
What is your code not doing? Are you winding up with duplicate data in the DB? Is your web browser re-submitting the form with the same data if you refresh the screen? Is your web browser pre-filling the fields of the form due to caching? I don't understand what's not working On Wed, Sep 23,

Re: Dynamic Form

2009-09-22 Thread BJ Swope
If you are trying to avoid the browser caching the pages so that they fetch a new copy of the page every time, add the following 2 meta tags to the header of the html page: META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE META HTTP-EQUIV=PRAGMA CONTENT=NO-CACHE Those don't guarantee that the

Re: Why does this group have so much spam?

2009-09-04 Thread BJ Swope
And I would kindly appreciate it if you fellas wouldn't go solving this little spam problem! Selling Anti-Spam industry leading appliances has managed to put me in a rather nice house and I'd hate to lose it just because you fellas went and solved the problem! ;) On Thu, Sep 3, 2009 at 11:24

Re: How to get Exif data from a jpeg file

2009-05-18 Thread BJ Swope
On Sun, May 17, 2009 at 4:17 AM, Arnaud Delobelle arno...@googlemail.com wrote: Daniel Fetchinson fetchin...@googlemail.com writes: I need to get the creation date from a jpeg file in Python.  Googling brought up a several references to apparently defunct modules.  The best way I have

Re: smtplib problem with newly rebuilt Debian/lenny system

2009-03-30 Thread BJ Swope
try s=smtplib.SMTP('127.0.0.1') instead. I'm guessing that it's trying to bind to the IPv6 or some other non IPv4 localhost instance. On Wed, Mar 18, 2009 at 11:25 AM, cassiope f...@u.washington.edu wrote: A hard drive failure forced me to rebuild my main system. Just a few things haven't

Re: Obtaining SMTP address of a sender and receiver of an outlook mail

2008-12-03 Thread BJ Swope
If you have access to the AD server that hosts those DNs you can use python's ldap module to retrieve the smtp attribute for the DN you've just parsed from the message. On Wed, Dec 3, 2008 at 2:06 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I am trying to use python for

Re: Open a List of Files

2008-01-08 Thread BJ Swope
On Jan 8, 2008 6:03 AM, Fredrik Lundh [EMAIL PROTECTED] wrote: BJ Swope wrote: given a list such as ['messages', 'recipients', 'viruses'] how would I iterate over the list and use the values as variables and open the variable names a files? I tried for outfile in ['messages

Re: Open a List of Files

2008-01-08 Thread BJ Swope
On Jan 8, 2008 7:22 AM, Hrvoje Niksic [EMAIL PROTECTED] wrote: Fredrik Lundh [EMAIL PROTECTED] writes: BJ Swope wrote: the code looks ok. please define not working. Yep, defining not working is always helpful! :) I want to have all 3 files open at the same time. I will write

Re: Open a List of Files

2008-01-08 Thread BJ Swope
On Jan 8, 2008 9:34 PM, Terry Jones [EMAIL PROTECTED] wrote: I think you should revisit this decision. Something like Fredrik's code is the way to go. It has multiple advantages: - It's much shorter. - It's arguably easier to add/remove to/from. - It has less risk of error (much less

Open a List of Files

2008-01-07 Thread BJ Swope
given a list such as ['messages', 'recipients', 'viruses'] how would I iterate over the list and use the values as variables and open the variable names a files? I tried for outfile in ['messages', 'recipients', 'viruses']: filename = os.path.join(Host_Path, outfile) outfile =

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread BJ Swope
On 1/24/07, Tim Williams [EMAIL PROTECTED] wrote: On 24/01/07, py [EMAIL PROTECTED] wrote: I would love for anybody to comment on this code with regard to redundancy/efficiency/wordiness or whatever else. for instance, do i understand correctly that i cant have a try: else: without an

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread BJ Swope
Sweet! -- http://mail.python.org/mailman/listinfo/python-list

Re: Monitoring number of smtp bytes sent through python e-mail socket

2006-12-05 Thread BJ Swope
BTW, I noticed a bunch of new line characters in your test message. If you ever send mail to a qmail server it will be rejected because rfc 821 says that new line characters cannot occur without a carriage return. So change all those \n's to \r\n's ;) -- We are all slave to our own paradigm. --

Slicing Issues

2006-05-21 Thread BJ Swope
Given this set of data (88 characters wide) in a file... 067AARON WAY 3004300252599A 098 067017 129 672 067ABBA CT 30518000882000902A 025 11 0670163227 365 670 067ABBEY HILL RD 3002400010299A 004 12 067027 276 667 067ABBEY LN SW3004700495099A 052 067036 093 659 067ABBEY

Re: Slicing Issues

2006-05-21 Thread BJ Swope
On 5/21/06, Heiko Wundram [EMAIL PROTECTED] wrote: Am Sonntag 21 Mai 2006 22:52 schrieb BJ Swope: district_combo=line[85:3]This returns the slice from character 85 to character 3 in the string, readforwards. Basically, as Python slices are forgiving (because the borders are actually illogical

Re: Problem with FTPLib and incomplete files on some downloads

2006-01-20 Thread BJ Swope
Just guessing but are the files binary yet you are downloading them without declaring binary?On 1/16/06, Peter A.Schott [EMAIL PROTECTED] wrote:I download a lot of 4-6 KB files and regularly run into issues with files that don't get downloaded all the way or otherwise get corrupt.I do something

Re: Python CGI

2005-12-01 Thread BJ Swope
Here's a snippet of code I use in a CGI I use... I check to see if the params has any data, if it does then return that data and some other data that comes from the params. If params is empty, then draw a different page that says give me some data. if len(params): return params,inc_fields

Re: Pywin32: How to import data into Excel?

2005-11-08 Thread BJ Swope
On 11/8/05, Dmytro Lesnyak [EMAIL PROTECTED] wrote: Hello, I need to import some big data into Excel from my Python script. I have TXT file (~7,5 Mb). I'm using Pywin32 library for that, but if I first try to read the TXT file and then save the values one by one like I have to

Re: Vim capable IDE?

2005-10-18 Thread BJ Swope
On 18 Oct 2005 07:16:11 -0700, Chris Lasher [EMAIL PROTECTED] wrote: A marriage of the twowould seem like the best of both worlds.Chris The pessimists would say the worst of both worlds ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-25 Thread BJ Swope
So says Chris from his webmail account... On 8/25/05, Chris Head [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: [snip] ... and generally these web based message boards (i.e. forums I assume you mean) have none of the useful tools that