Bug 1019528

Summary: alpine inbox-path variable doesnt work, missing /etc/pine.conf
Product: [Fedora] Fedora Reporter: Simon A. Erat <erat.simon>
Component: alpineAssignee: Joshua Daniel Franklin <joshuadfranklin>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jima, joshuadfranklin, pwouters, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-23 13:32:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot of bugfix attempt none

Description Simon A. Erat 2013-10-16 00:39:07 UTC
Created attachment 812717 [details]
screenshot of bugfix attempt

Description of problem:
Alpine keeps creating ~/mail, regardless i had changed that in ~/.pinerc
Issue probably is: cant change default as /etc/pine.conf doesnt exist.


Version-Release number of selected component (if applicable):
Alpine 2.03 (LFD 1266 2009-07-14) built Wed Feb 13 20:56:29 UTC 2013 on buildvm-11.phx2.fedoraproject.org


How reproducible:
rm -r ~/mail
alpine

Steps to Reproduce:
1. delete ~/mail
2. start alpine
3. folder gets created, eventhough .pinerc's inbox-path is set to $HOME/other/path

Actual results:
~/mail gets created, but should not

Expected results:
$HOME/other/path should be used as defined in ~/.pinerc
OR -- in the MISSING (how did the rpm compile successfully???)
/etc/pine.conf[.fixed]

Additional info: (see screenshot i
-----------------------------------
:) ~ $ alpine -conf|grep -i /pine
#      /etc/pine.conf -- system wide pine configuration
+ ~ $ alpine -conf|grep -i inbox-
inbox-path=
+ ~ $ grep inbox- .pinerc 
inbox-path=$HOME/other/path
+ ~ $ rpm -ql alpine|grep pine.c
/etc/pine.conf
/etc/pine.conf.fixed
✔ ~ $ ls /etc/pin*
/etc/pinforc
✔ ~ $

Comment 1 Joshua Daniel Franklin 2013-10-23 13:32:30 UTC
Hi,

/etc/pine.conf and /etc/pine.conf.fixed are "ghost" files in the RPM SPEC:

%ghost %config(noreplace) %{_sysconfdir}/pine.conf
%ghost %config(noreplace) %{_sysconfdir}/pine.conf.fixed

This means it's normal to be missing, but if there is a system defined pine.conf it won't be replaced.


In any case, it sounds like you want to set both the INBOX and local mail directory paths in /etc/pine.conf which would be something like this:

inbox-path=~/otherinbox
mail-directory=~/mydir/
folder-collections=local ~/mydir/[], ... {IMAP etc...}

Please read over the alpine docs regarding the subtle differences between each.

I also recommend trying alpine-2.10 which was recently packaged for F20:
http://koji.fedoraproject.org/koji/buildinfo?buildID=441044

The RPM installs and works on F19 in my testing, e.g:

yum localinstall alpine-2.10-3.fc20.x86_64.rpm 

Alternatively you can build from src (also downloadable from koji).