Bret Busby | 6 Jun 2013 19:08
Favicon

How to stop tab key from changing To email address

Hello.

I have, in the last couple of hours, sent a set of email messages which 
together, comprised a somewhat bigger message.

With the first of the messages in which I typed in the To email 
address, when I pressed the <TAB> key, to tab from the To field to the 
CC field, pressing the <TAB> key, caused the To email address to change, 
and it addedthe ccTLD component to the domain name component of the To
email address, and, may have changed the name (as in, as an example, but 
not quite the actual text, from "senator" to "secretary").

I did not fully realise what had happened, until I had sent the email 
message, at which time, the message had been sent to the wrong name 
at the wrong address.

The message, and, the set of emails, are contentious, and may place me 
and my household, in danger, due to the email message having gone to the 
incorrect email address.

How do I stop the <TAB> key from altering text, such as changing the 
email address?

I assume that it is an "auto-completeon" bug/feature.

And, in this context, it is physically dangerous.

Please advise how to stop the problem of the <TAB> key changing text.

Thank you in anticipation.
(Continue reading)

Stefan E. Mueller | 6 Jun 2013 09:39
Picon
Favicon

S/MIME question OSX

I have a problem with signing emails in alpine 2.0 on OSX 10.6.8 
(obtained from MacPorts). Whenever I try to sign an email I want to send, 
I get the message

"[Couldn't find the certificate needed to sign.]"

I have followed the instructions to import the keys ot the 
.alpine-smime/-directory. IMAP (with ssl) is working, and I can see the 
signing information of signed emails I received in my inbox typing "^E".

Running alpine in debug mode, I see that at a certain time there is a call 
to

get_cert_for(my.email@...)

which a few steps later results indeed in the message

q_status_message(Couldn't find the certificate needed to sign.)

The string in the get_cert_for() call ("my.email@...") is 
identical to the email-address in my "From:"-header, and also the 
key-files in the .alpine-smime/-directories have the same name (plus the 
.key or the .crt at the end). I have verified that my certificate is 
indeed issued for this address (with "keychain->Certificate Assistant").

Also it seems that alpine manages to import ca-certificates from 
/System/Library/OpenSSL/certs, because in the debugging info, I get

get_ca_store(): adding cacerts from /System/Library/OpenSSL/certs

(Continue reading)

McGraw, Robert P | 4 Jun 2013 16:55
Picon
Favicon

Folder-Collections question

I am running Alpine-2.00 on a RedHat client.

I have set up alpine to IMAP connect to our exchange server using:

inbox-path={exchange.purdue.edu/user=rmcgraw/ssl/IMAP}INBOX

I then set it up to see all the IMAP folders with:

folder-collections=pmail {exchange.purdue.edu/ssl/user=rmcgraw}[]

This all works just fine, I see my INBOX and all the folders but I do not see the sub folders of folders. 

It this possible with Alpine? If so what do I need to set to make this happen.

Thanks

Robert

_____________________________________________________________________
Robert P. McGraw, Jr.
Manager, Computer System                    EMAIL: rmcgraw-olO2ZdjDehc3uPMLIKxrzw@public.gmane.org
Purdue University                            ROOM: MATH-807
Department of Mathematics                   PHONE: (765) 494-6055
150 N. University Street                      
West Lafayette, IN 47907-2067            

<div>
<div>
<div>
<div>I am running Alpine-2.00 on a RedHat client.</div>
<div><br></div>
<div>I have set up alpine to IMAP connect to our exchange server using:</div>
<div><br></div>
<div><span class="Apple-tab-span">inbox-path={exchange.purdue.edu/user=rmcgraw/ssl/IMAP}INBOX</span></div>
<div><br></div>
<div>I then set it up to see all the IMAP folders with:</div>
<div><br></div>
<div><span class="Apple-tab-span">folder-collections=pmail {exchange.purdue.edu/ssl/user=rmcgraw}[]</span></div>
<div><br></div>
<div>This all works just fine, I see my INBOX and all the folders but I do not see the sub folders of folders.&nbsp;</div>
<div><br></div>
<div>It this possible with Alpine? If so what do I need to set to make this happen.</div>
<div><br></div>
<div>Thanks</div>
<div><br></div>
<div>Robert</div>
<div><br></div>
<div>
<div>
<div><span class="Apple-style-span">_____________________________________________________________________</span></div>
<div>
<div>Robert P. McGraw, Jr.</div>
<div>Manager, Computer System&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EMAIL:&nbsp;<a href="mailto:rmcgraw@...">rmcgraw@...</a>
</div>
<div>Purdue University&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ROOM: MATH-807</div>
<div>Department of Mathematics&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PHONE: (765) 494-6055</div>
<div>150 N. University Street&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
<div>West Lafayette, IN 47907-2067&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
</div>
</div>
<div><br></div>
</div>
</div>
</div>
</div>
Uri Shmueli | 1 Jun 2013 16:27
Picon
Picon
Favicon

restoring a folder?


Good morning,

The contents of my 'sentmail' folder has disappeared (maybe accidentally
deleted?) Is there any way of restoring it?
Your advice will be greatly appreciared.

Sincerely,

Uri Shmueli
--------------------------------------------------------------------
Eduardo Chappa | 31 May 2013 10:00
Picon
Favicon

Help debuging a problem

Hello,

   I am trying to figure out a problem in Alpine, and I found the problem 
related to how a shell interprets the "!" character. For example, the 
commands "echo x!y" and "echo x!ls" give the following output

> echo x!y
bash: !y: event not found
> echo x!ls
echo xls
xls

  I get similar output in the tcsh shell. Another curiosity is that

>echo 'x!y'

produces a different output depending on the shell; namely, "x!y" in bash, 
while "y: Event not found." in tcsh.

What I need to know is if any of you execute these commands in your 
computer if you get similar output.

I know this does not look like an Alpine issue, but it is related to an 
issue I found in Alpine, and I would like to fix it properly, and is the 
reason why I am asking for you help. When I find the proper fix, it will 
be include in Alpine 2.11.

Thank you for any feedback you can provide.

--

-- 
Eduardo
http://patches.freeiz.com/alpine/
Velcro Leaf | 23 May 2013 17:10
Picon
Favicon

crash when mailbox accessed by another program

I recently updated my FreeBSD machine from version 7.4 to 9.1, along with all the ports.  The current
alpine port is "alpine-2.00_3".

Previously when using alpine, if another program (say, webmail or a mobile device pulling mail off the
server) accessed the mailbox, alpine would simply go into read-only mode.  Now, it crashes outright,
saying "User signal 2" and dropping straight to a command line.

Any suggestions for how to track down the problem?

Mike Miller | 20 May 2013 21:01
Picon

how to send message with attachment from crontab?

I wanted to do this using Alpine, but I figured out how to do it using 
mutt (info below).  I still want to know if Alpine can do this.

I want my system to send me an email message with an attachment at a 
certain time of day.  I see that Alpine has this option:

-attach file        Send mail with the listed file as an attachment.

The problem I'm is that Alpine does not seem to work non-interactively. 
So Alpine always appears on the screen waiting for me to send the message.

Is there a way to make Alpine just send the message without interaction? 
If not, I can't use it from a crontab.

I found a way to do it with mutt:

some_process | mutt -s "my subject" -a file_to_attach -- my_address

The output of "some_process" becomes the message body.

I was seeing some inconsistency in the way mutt is handling a text/plain 
'file_to_attach':  It sometimes uses the wrong charset and alters the 
appearance of the file (specifically messing up the degree symbol °). 
I'd rather have it always use base64 encoding like Alpine does with the 
same file, but I don't know how to fix that.

More below on what I'm actually doing in case any of you are interested.

Mike

--------------------------------------------------------------------------

What I'm doing with Google Calendar

I use Google Calendar and I am having gcalcli send me my schedule 
("agenda") every evening to remind me of appointments and meetings for the 
next several days.  So the command is...

gcalcli agenda "$DATE"

...where $DATE represents the desired start date (5 days of output is 
given).  The output is ANSI color coded.  To get output for five days 
starting tomorrow, I do this:

gcalcli agenda "$(date -d tomorrow)"

To remove the color I can do this:

gcalcli --nc agenda "$(date -d tomorrow)"

However, the color is informative.  My wife's calendar entries are mixed 
in with mine, but mine are in cyan and hers are in green.  Holidays and 
weather info are in magenta.  I can use grep to retain the cyan and 
magenta parts of the output along with the date info (36 is cyan and 35 is 
magenta)...

gcalcli agenda "$(date -d tomorrow)" | grep -P '\e\[0;36m|\e\[0;35m|^[FMSTW]'

...and I can add back in the the removed line between dates...

gcalcli agenda "$(date -d tomorrow)" | grep -P '\e\[0;36m|\e\[0;35m|^[FMSTW]' | perl -pe 's/^([FMSTW])/\n$1/'

...or I can do that while also removing the ANSI color:

gcalcli agenda "$(date -d tomorrow)" | grep -P '\e\[0;36m|\e\[0;35m|^[FMSTW]' | perl -pe 's/\e.*?m//g ; s/^([FMSTW])/\n$1/'

Doing it that way had some benefits, but I have decided that I'll just 
stick with output for myself alone and without the weather info by using 
the --cals owner option:

gcalcli --nc --cals owner agenda "$(date -d tomorrow)"

Alpine won't display ANSI color (it used to do that), but if the ANSI 
color is in an attachment, then it works if I view attachments using less 
with the -R option.  I had two lines in /etc/mailcap that evoked "less" 
with no options, so I added -SR as options to less (I also have those in 
my bash aliases, but that seems to be ignored by mailcap):

text/plain; less -SR '%s'; needsterminal
text/*; less -SR '%s'; needsterminal

I want to see my calendar info two ways in these email notifications: 
(1) the no-color calendar in the message body showing only my own 
appointments and (2) the ANSI-color calendar in an attachment showing 
everything (e.g., my wife's appointments, weather, holidays).

This script is doing exactly what I want, even when called from cron, but 
see the note below about cron:

-----------begin script on next line-----------------------
#!/bin/bash

RECIPIENT=$(whoami)

TMPFILE=$(mktemp /tmp/delete_me.XXXXXX) || exit 1

gcalcli agenda "$(date -d tomorrow)" > $TMPFILE
gcalcli --nc --cals owner agenda "$(date -d tomorrow)" | mutt -s "Schedule for Tomorrow" -a $TMPFILE -- $RECIPIENT

rm -f $TMPFILE
----------end script on previous line----------------------

At first that script was working differently from cron than from the 
command line.  I got some help from this web page and fixed it:

http://www.logikdev.com/2010/02/02/locale-settings-for-your-cron-job/

I had to add this line to /etc/environment:

LANG=en_US.UTF-8

Then I had to restart cron:

sudo service cron restart

After that it worked perfectly.

For reasons I cannot explain, mutt used to do this when called from the 
command line or from cron:

Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="delete_me.KRE97M"

That looked OK in Alpine, but mutt had turned the degree symbols (°) to 
double question marks:

Tue May 21  12:00am  Forecast for Minneapolis, MN (70?? | 50??)

For some reason the attachents are now looking perfect in Alpine with 
proper degree characters and this encoding and charset info:

Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: attachment; filename="delete_me.Ohil3z"
Content-Transfer-Encoding: quoted-printable

I don't know what caused mutt to change, but it might have been the file 
extension:  I was using .txt at first and now I am using a random number 
string.

Best,
Mike
I wanted to do this using Alpine, but I figured out how to do it using 
mutt (info below).  I still want to know if Alpine can do this.

I want my system to send me an email message with an attachment at a 
certain time of day.  I see that Alpine has this option:

-attach file        Send mail with the listed file as an attachment.

The problem I'm is that Alpine does not seem to work non-interactively. 
So Alpine always appears on the screen waiting for me to send the message.

Is there a way to make Alpine just send the message without interaction? 
If not, I can't use it from a crontab.

I found a way to do it with mutt:

some_process | mutt -s "my subject" -a file_to_attach -- my_address

The output of "some_process" becomes the message body.

I was seeing some inconsistency in the way mutt is handling a text/plain 
'file_to_attach':  It sometimes uses the wrong charset and alters the 
appearance of the file (specifically messing up the degree symbol °). 
I'd rather have it always use base64 encoding like Alpine does with the 
same file, but I don't know how to fix that.

More below on what I'm actually doing in case any of you are interested.

Mike

--------------------------------------------------------------------------

What I'm doing with Google Calendar

I use Google Calendar and I am having gcalcli send me my schedule 
("agenda") every evening to remind me of appointments and meetings for the 
next several days.  So the command is...

gcalcli agenda "$DATE"

...where $DATE represents the desired start date (5 days of output is 
given).  The output is ANSI color coded.  To get output for five days 
starting tomorrow, I do this:

gcalcli agenda "$(date -d tomorrow)"

To remove the color I can do this:

gcalcli --nc agenda "$(date -d tomorrow)"

However, the color is informative.  My wife's calendar entries are mixed 
in with mine, but mine are in cyan and hers are in green.  Holidays and 
weather info are in magenta.  I can use grep to retain the cyan and 
magenta parts of the output along with the date info (36 is cyan and 35 is 
magenta)...

gcalcli agenda "$(date -d tomorrow)" | grep -P '\e\[0;36m|\e\[0;35m|^[FMSTW]'

...and I can add back in the the removed line between dates...

gcalcli agenda "$(date -d tomorrow)" | grep -P '\e\[0;36m|\e\[0;35m|^[FMSTW]' | perl -pe 's/^([FMSTW])/\n$1/'

...or I can do that while also removing the ANSI color:

gcalcli agenda "$(date -d tomorrow)" | grep -P '\e\[0;36m|\e\[0;35m|^[FMSTW]' | perl -pe 's/\e.*?m//g ; s/^([FMSTW])/\n$1/'

Doing it that way had some benefits, but I have decided that I'll just 
stick with output for myself alone and without the weather info by using 
the --cals owner option:

gcalcli --nc --cals owner agenda "$(date -d tomorrow)"

Alpine won't display ANSI color (it used to do that), but if the ANSI 
color is in an attachment, then it works if I view attachments using less 
with the -R option.  I had two lines in /etc/mailcap that evoked "less" 
with no options, so I added -SR as options to less (I also have those in 
my bash aliases, but that seems to be ignored by mailcap):

text/plain; less -SR '%s'; needsterminal
text/*; less -SR '%s'; needsterminal

I want to see my calendar info two ways in these email notifications: 
(1) the no-color calendar in the message body showing only my own 
appointments and (2) the ANSI-color calendar in an attachment showing 
everything (e.g., my wife's appointments, weather, holidays).

This script is doing exactly what I want, even when called from cron, but 
see the note below about cron:

-----------begin script on next line-----------------------
#!/bin/bash

RECIPIENT=$(whoami)

TMPFILE=$(mktemp /tmp/delete_me.XXXXXX) || exit 1

gcalcli agenda "$(date -d tomorrow)" > $TMPFILE
gcalcli --nc --cals owner agenda "$(date -d tomorrow)" | mutt -s "Schedule for Tomorrow" -a $TMPFILE -- $RECIPIENT

rm -f $TMPFILE
----------end script on previous line----------------------

At first that script was working differently from cron than from the 
command line.  I got some help from this web page and fixed it:

http://www.logikdev.com/2010/02/02/locale-settings-for-your-cron-job/

I had to add this line to /etc/environment:

LANG=en_US.UTF-8

Then I had to restart cron:

sudo service cron restart

After that it worked perfectly.

For reasons I cannot explain, mutt used to do this when called from the 
command line or from cron:

Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="delete_me.KRE97M"

That looked OK in Alpine, but mutt had turned the degree symbols (°) to 
double question marks:

Tue May 21  12:00am  Forecast for Minneapolis, MN (70?? | 50??)

For some reason the attachents are now looking perfect in Alpine with 
proper degree characters and this encoding and charset info:

Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: attachment; filename="delete_me.Ohil3z"
Content-Transfer-Encoding: quoted-printable

I don't know what caused mutt to change, but it might have been the file 
extension:  I was using .txt at first and now I am using a random number 
string.

Best,
Mike
Dan Mahoney, System Admin | 17 May 2013 21:26

Backend mailbox manipulation/parsing tools?

Hey all,

This isn't strictly alpine related, but as the people on this list tend to 
be some very power-user mail types, I'll ask it.

I use alpine, and other clients.  On alpine, when I want to take an 
action, like report a mail to spamassassin, I use the "pipe" command.

However, as I'm also using iDevices and IMAP (Dovecot), I'm trying to come 
up with ways to control mail flow from those devices.

Specifically, I think that by creating special mailboxes that do things, I 
can dynamically build procmailrc parts, report spam and ham, and other 
cool bits.  So, for example, I'd like to build a "threadkill" folder, 
which would mute a mailing list thread, but let everything else hit my 
inbox.

So here's the question for the group.  What I'm really looking for is a 
tool that can work with a mailbox (UW's "mailutil" might have been such a 
tool), in a dovecot/imap/alpine friendly access format, act on messages in 
a folder, and delete/move.   Ideally I'd do this in perl, and would just 
be looking for a general "handle one message" tool.

Does anyone know of anything like this?  The  gnu mailutils seem like 
overkill and overly complex.  Parsing the raw mailbox doesn't let me 
really control flags and message moving.  UW's mailutil does SOME of this, 
but doesn't seem to know about the various locks (it's not very 
multi-access friendly).

I'm listening!

-Dan

--

-- 

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------

JtWdyP | 15 May 2013 06:17

can't figure out how to imap gmail with alpine 2.00 (ala opensuse)


I've used alpine exclusively as my mail client ever since I gave upon pine. And
pine ever since I gave up on mailx... Even so, I'm not really an expert using
it. It's more like I can't stand any other email client enough to learn to use
it... And that goes double for web mail interfaces.

So when my not so computer literate daughter wanted me to help her with her
gmail account, I said I could probably get the job done with alpine.

She wanted everything from a certain sender backed up offline, and dumped into
a separate folder that she wouldn't need to look at. She wanted her sent mail
archived offline. And almost everything else deleted... When I asked her if
she wanted future emails from that same former friend blocked, she asked if
they could go directly to the same folder without her having to look at them,
I said I could probably get that done too.

Of course I knew I'd have to use gmail's web interface to create the filter
and probably to create the folder to move Mr. wonderful's emails to.

That part of the plan worked. But I wanted to use alpine to copy the messages
to the offline folders I told her I'd keep on my computer until she decided
what she really wanted to do with the stuff.

I found the settings in her gmail account and enabled imap access.

I'd been using my opensuse Linux installation so I went ahead and created a
user account on that to set up her alpine in. And I did some web searching on
configuring imap clients to use gmail. 

First thing I tried with alpine was defining a collection list via "msla" And
using this as a server setting: (except that I used her actual gmail address)

imap.gmail.com/ssl/novalidate-cert/user=handle@...

It took a long time, but the connection timed out.

Next I tried the method I use on my gmx.com imap account and added an
incoming-folder. I noted that the web interface listed the INBOX as "Inbox" So
I tried:

gmail-inbox {imap.gmail.com:993/novalidate-cert/user=handle@.../service=imap/ssl}Inbox,

When that too was unable to connect, I tried: 

gmail-inbox {imap.gmail.com:993/novalidate-cert/user=handle@.../service=imap/ssl}inbox,

Then Finally I tried it as:
gmail-inbox {imap.gmail.com:993/novalidate-cert/user=handle@.../service=imap/ssl}INBOX,

But All I get is:
       [Can't connect to gmail-imap.l.google.com,993: Connection timed out]

What am I doing wrong???

--

-- 
|  ~^~   ~^~
|  <?>   <?>       
|      ^                JtWdyP
|    \___/         

kqt4at5v | 10 May 2013 23:18
Picon

conditional cursor positioning

I found in an older post that adding _CURSORPOS_ to my signature would get the cursor to jump to the bottom so
as not to offend the anti-topposting people
Is there a way to get this to only jump to the bottom with reply and not with compose

Richard

James Freer | 30 Apr 2013 09:22
Picon

Composing - Cc required

It seems that it does automatically send a copy to All Mail but not the Inbox. 
Would this be something to do with Gmail's label method?

james

---------- Forwarded message ----------
Date: Tue, 30 Apr 2013 08:15:42 +0100 (BST)
From: James Freer <jessejazza3.uk@...>
To: alpine-info <at> u.washington.edu
Cc: jessejazza3.uk@...
Subject: Composing - Cc required

Alpine set up on imap gmail using linux xubuntu. Read the server directly which 
i find by far the best method of reading mail when one considers one's six 
month upgrades of linux.

Each time i compose an email i have to put in my own email in Cc otherwise i 
don't get a copy in the Inbox although there is one in the Sent box. I was 
wondering if i've overlooked something on setup or if there's a better way. 
Downloading headers with a local Inbox doesn't seem the way to go to me 
although i do miss not having the Threads (but i just go back to the Gmail UI 
if Threads/conversations get very long as they do on some of these 'lists').

thanks
james

Gmane