Re: Selective remote mail deletion
B.Hoffmann wrote:
> On Fri, 2006-03-17 at 16:52 -0600, Ron Johnson wrote:
>>
>> Depending on how comfortable you are with the command line, you
>> could run this program:
>>
>> $ python popdel.py <your.ISP's.pop> <your_username>
>>
>> It asks you for a password, then displays From, Subj & Date and
>> asks you if you want to delete it.
>>
>
> Hi Ron, I am getting following error running it:
>
>
> File "popdel.py", line 18
> from_pattern = re.compile("^from\:")
> ^
> SyntaxError: invalid syntax
>
>
> Any ideas?
>
>
> Kind Regards,
> B.Hoffmann
>
> Linux User #398054
I don't see that anyone told you what's wrong with the script. Add a
closing parenthesis to the line above, line 17, that currently looks like:
M.pass_(getpass.getpass('POP password: ')
to make it look like this:
M.pass_(getpass.getpass('POP password: '))
Justin
Reply to: